Comments (3)
clear the database and Reinstall irods, now I can use ils and iput normally. But /usr/sbin/irodsTestPutGet always cause:
Error: cannot open data object for writing ["/zone1/home/rods/post_install_test.1713667257490298.txt"]
from irods.
It's hard to say from here what may have happened. If it's possible to try again from the start, please confirm that the iRODS administrator password is being entered correctly. Of course, please do not post any of that information here. :)
You mentioned clearing the database and re-installing iRODS. I would also say to make sure that you clear out a few key directories after uninstalling iRODS because these are not done automatically:
- /var/lib/irods
- /etc/irods
- /tmp/irods
I'm wondering whether a client environment from a past installation exists or existed in /var/lib/irods/.irods and perhaps interfered with the setup.
And now, a story: I tried this out myself using Centos 7 and Postgres 14.8 in the irods_testing_environment (https://github.com/irods/irods_testing_environment) and was able to run the setup script successfully. There were, however, a few hiccups, so I'm going to document what happened for posterity. If you want to follow along using the testing environment, you'll notice that Centos 7/Postgres 14.8 project does not exist, but it's pretty easy to add - especially if you just want to set things up manually.
Anyway, I encountered an issue when trying to communicate with the database (way before the put/get test):
-------------------------------------------
Database Type: postgres
ODBC Driver: PostgreSQL
Database Host: 9c197e3af943
Database Port: 5432
Database Name: ICAT
Database User: irods
-------------------------------------------
Please confirm [yes]:
Database password:
Error encountered running setup_irods:
Traceback (most recent call last):
File "/var/lib/irods/scripts/irods/database_connect.py", line 206, in get_database_connection
conn = pyodbc.connect(connection_string, ansi=True)
pyodbc.OperationalError: ('08001', '[08001] [unixODBC]SCRAM authentication requires libpq version 10 or above\n (101) (SQLDriverConnect)')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/var/lib/irods/scripts/setup_irods.py", line 525, in main
test_mode=options.test_mode)
File "/var/lib/irods/scripts/setup_irods.py", line 123, in setup_server
database_interface.setup_database_config(irods_config)
File "/var/lib/irods/scripts/irods/database_interface.py", line 176, in setup_database_config
if database_already_in_use_by_irods(irods_config):
File "/var/lib/irods/scripts/irods/database_interface.py", line 73, in database_already_in_use_by_irods
with contextlib.closing(database_connect.get_database_connection(irods_config)) as connection:
File "/var/lib/irods/scripts/irods/database_connect.py", line 240, in get_database_connection
sys.exc_info()[2])
File "/var/lib/irods/scripts/irods/six.py", line 671, in reraise
raise value.with_traceback(tb)
File "/var/lib/irods/scripts/irods/database_connect.py", line 206, in get_database_connection
conn = pyodbc.connect(connection_string, ansi=True)
irods.exceptions.IrodsError: pyodbc encountered an error connecting to the database:
('08001', '[08001] [unixODBC]SCRAM authentication requires libpq version 10 or above\n (101) (SQLDriverConnect)')
After jumping through some hoops (configuring the PostgreSQL yum repository and installing the version 14 packages as described here: https://www.postgresql.org/download/linux/redhat/) I was able to install a later version of the postgresql packages and proceed past this error. After that, I used pretty much all of the "default" answers (see https://docs.irods.org/4.3.1/getting_started/installation/#catalog-service-provider) and everything worked fine, including the put/get test.
from irods.
Thanks Alan, everything goes well now.
from irods.
Related Issues (20)
- Automating Data Removal HOT 1
- OpenedDataObjInp object and data object path HOT 3
- irsync creates target collection when using -l option HOT 3
- Investigate multiple replicas of the same data object with the identical physical paths
- The unit test cases under the unit_test directory failed during execution. HOT 5
- Permissions of removed users and groups stay in database
- Revisit logging in network manager
- (icommands) `showQuotas()` and `showUserUsage()` in `iquota.cpp` define and set local variable `printCount` but never use it
- `plugins/rule_engines/irods_rule_language/src/parser.cpp:ActionsToStrings`: value of `n` is never used.
- Revisit `consteval` workaround
- `writeLine(...)` to a path with a data object does not write to it HOT 3
- irrelevant info in `iclienthints` s document HOT 2
- non-admin user can execute iclienthints command HOT 4
- Investigate removal of `iapitest` command from production builds HOT 10
- incomplete iquery syntax hangs HOT 1
- Current working directory status information stays same after a new login to another zone HOT 18
- Enable microservice test plugin build by default for `Debug` configurations
- Consider enabling unit tests by default for `Debug` configurations
- Enable filesystem atomic operations unit test by default for `Debug` configurations
- Enable filesystem atomic operations unit test if `IRODS_ENABLE_ALL_TESTS` is true
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from irods.