Opened 5 years ago

Closed 5 years ago

#2161 closed enhancement (invalid)

check if rasdaman user can access files in RASDATA

Reported by: Bang Pham Huu Owned by: Dimitar Misev
Priority: major Milestone: 10.0
Component: server Version: 9.8
Keywords: Cc:
Complexity: Medium

Description

For example if /opt/rasdaman/data cannot be opened by rasdaman user, then rasserver cannot be started and it showed the error which is hard to understand (it looks like Sqlite error).

[ERROR] - 2019-08-08 12:02:03,995, SQL query failed "PRAGMA journal_mode=WAL; PRAGMA busy_timeout=600000", database error 14: unable to open database file
[ERROR] - 2019-08-08 12:02:04,010, rasdaman server error 206: Base DBMS error 14: unable to open database file
 [INFO] - 2019-08-08 12:02:04,010: rasserver terminated.

It could be better to check permission for rasdaman user when running start_rasdaman.sh or somewhere to show the clearer problem.

Change History (1)

comment:1 by Dimitar Misev, 5 years ago

Resolution: invalid
Status: newclosed

Please provide exact steps on how to reproduce the problem, as I can't reproduce it.

I have this (only accessible by root)

-rw------- 1 root    root    929792 Aug 16 11:41 RASBASE

and get this error, which is good:

[ERROR] - 2019-08-16 12:14:08,104, reladminif/sqlitewrapper.cc:326: 
Connect unsuccessful; wrong connect string '/d/rasdata/RASBASE'? 
Reason: unable to open database file
Note: See TracTickets for help on using tickets.