Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Permission Error with Orientdb on Openshift #55

Open
p5cred opened this issue Oct 22, 2018 · 2 comments
Open

Permission Error with Orientdb on Openshift #55

p5cred opened this issue Oct 22, 2018 · 2 comments

Comments

@p5cred
Copy link

p5cred commented Oct 22, 2018

I deployed an orientdb container onto openshift and am having an issue with opening the orient console. When I go into the bin folder within the orient container I run ./console.sh to start the orientdb console and I get this error:

bash-4.4$ ./console.sh Exception in thread "main" com.orientechnologies.common.exception.OSystemException: Cannot access to the input stream. Check permissions of running process at com.orientechnologies.common.console.TTYConsoleReader.(TTYConsoleReader.java:113) at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:168)

If anyone has had a similar issue to this or has any insight on how to resolve this issue any ideas would be appreciated.

Or if there needs to be more clarification on this question, please let me know.
Thanks

@clouds56
Copy link

clouds56 commented Dec 9, 2018

The same error here.
I'm using the Docker image here https://hub.docker.com/_/orientdb/ with tag latest (3.0.11).

If creating container with non-root user (pass -u 1000:1000), it would throw the same exception at the time running docker exec -it -u 1000:1000 <container_id> /orientdb/bin/console.sh)

@clouds56
Copy link

clouds56 commented Dec 9, 2018

After some investigating, I found that it would access home folder for history file.
https://github.com/orientechnologies/orientdb/blob/3.0.11/core/src/main/java/com/orientechnologies/common/console/TTYConsoleReader.java#L550
You should make sure $HOME/.orientdb accessible

Or you could config system properties of JVM through docker's environment variables.

docker create/run -e JAVA_OPTS='-Duser.home=/orientdb/databases' [other options] orientdb

The folder /orientdb/databases and /orientdb/log are both acceptable while the former one is persist via volume, and the latter would be clear with the container.

There may some other issues related to permissions, one of them might be /orientdb/backup is owned by root:root by default. I think this is an issue of packaging prebuilt release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants