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

Systemctl cannot start orientdb #9080

Closed
aGiant opened this issue Dec 2, 2019 · 1 comment
Closed

Systemctl cannot start orientdb #9080

aGiant opened this issue Dec 2, 2019 · 1 comment
Labels
Milestone

Comments

@aGiant
Copy link

aGiant commented Dec 2, 2019

OrientDB Version: <3.0.25>

Java Version: <openjdk version "1.8.0_222">

OS: <Ubunt 18.04>

Expected behavior

Actual behavior

Steps to reproduce

https://computingforgeeks.com/how-to-install-and-configure-orientdb-on-ubuntu-18-04-lts/
<An SQL script to reproduce the problem or a JUnit test case will increase A LOT the chance to have a quick fix>

Errors:

Dec  2 14:55:40 llu-MS-7B17 systemd[1]: Started OrientDB Server.
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:            .
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:           .`        `
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:           ,      `:.
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:          `,`    ,:`
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:          .,.   :,,
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:          .,,  ,,,
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:     .    .,.:::::  ````                                 :::::::::     :::::::::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:     ,`   .::,,,,::.,,,,,,`;;                      .:    ::::::::::    :::    :::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:     `,.  ::,,,,,,,:.,,.`  `                       .:    :::      :::  :::     :::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:      ,,:,:,,,,,,,,::.   `        `         ``     .:    :::      :::  :::     :::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:       ,,:.,,,,,,,,,: `::, ,,   ::,::`   : :,::`  ::::   :::      :::  :::    :::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:        ,:,,,,,,,,,,::,:   ,,  :.    :   ::    :   .:    :::      :::  :::::::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:         :,,,,,,,,,,:,::   ,,  :      :  :     :   .:    :::      :::  :::::::::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:   `     :,,,,,,,,,,:,::,  ,, .::::::::  :     :   .:    :::      :::  :::     :::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:   `,...,,:,,,,,,,,,: .:,. ,, ,,         :     :   .:    :::      :::  :::     :::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:     .,,,,::,,,,,,,:  `: , ,,  :     `   :     :   .:    :::      :::  :::     :::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:       ...,::,,,,::.. `:  .,,  :,    :   :     :   .:    :::::::::::   :::     :::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:            ,::::,,,. `:   ,,   :::::    :     :   .:    :::::::::     ::::::::::
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:            ,,:` `,,.
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:           ,,,    .,`
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:          ,,.     `,                                              VELOCE
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:        ``        `.
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:                  ``                                       www.orientdb.com
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]:                  `
Dec  2 14:55:40 llu-MS-7B17 server.sh[5237]: removing old pid file /opt/orientdb/bin/orient.pid
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:233 INFO  Detected limit of amount of simultaneously open files is 4096,  limit of open files for disk cache will be set to 1536 [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:234 WARNI Value of limit of simultaneously open files is too small, recommended value is 262144 [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:239 INFO  Loading configuration from: /opt/orientdb/config/orientdb-server-config.xml... [OServerConfigurationLoaderXml]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:327 INFO  OrientDB Server v3.0.25 - Veloce (build ac37bbb108b048fa9a8fb17d094fc614cb61dce4, branch 3.0.x) is starting up... [OServer]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:353 INFO  33581928448 B/32026 MB/31 GB of physical memory were detected on machine [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:354 INFO  Soft memory limit for this process is set to -1 B/-1 MB/-1 GB [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:354 INFO  Hard memory limit for this process is set to -1 B/-1 MB/-1 GB [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:354 INFO  Path to 'memory' cgroup is '/' [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:356 INFO  Mounting path for memory cgroup controller is '/sys/fs/cgroup/memory' [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:356 INFO  cgroup soft memory limit is 9223372036854771712 B/8796093022207 MB/8589934591 GB [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:356 INFO  cgroup hard memory limit is 9223372036854771712 B/8796093022207 MB/8589934591 GB [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:356 INFO  Detected memory limit for current process is 33581928448 B/32026 MB/31 GB [ONative]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:357 INFO  JVM can use maximum 228MB of heap memory [OMemoryAndLocalPaginatedEnginesInitializer]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:357 INFO  Because OrientDB is running outside a container 12% of memory will be left unallocated according to the setting 'memory.leftToOS' not taking into account heap memory [OMemoryAndLocalPaginatedEnginesInitializer]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:357 INFO  OrientDB auto-config DISKCACHE=27,955MB (heap=228MB os=32,026MB) [orientechnologies]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:359 INFO  System is started under an effective user : `orientdb` [OEngineLocalPaginated]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:359 INFO  Allocation of 424916 pages. [OEngineLocalPaginated]
Dec  2 14:55:41 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:994 INFO  WAL maximum segment size is set to 18,131 MB [OrientDBDistributed]
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:41:994 INFO  Databases directory: /opt/orientdb/databases [OServer]
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:42:028 INFO  Direct IO for WAL located in /opt/orientdb/databases/OSystem is allowed with block size 4096 bytes. [OCASDiskWriteAheadLog]
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:42:028 INFO  Page size for WAL located in /opt/orientdb/databases/OSystem is set to 4096 bytes. [OCASDiskWriteAheadLog]Exception `10038555` in storage `plocal:/opt/orientdb/databases/OSystem`: 3.0.25 - Veloce (build ac37bbb108b048fa9a8fb17d094fc614cb61dce4, branch 3.0.x)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: java.nio.file.AccessDeniedException: /opt/orientdb/databases/OSystem/OSystem.wmr
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at java.nio.channels.FileChannel.open(FileChannel.java:287)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at java.nio.channels.FileChannel.open(FileChannel.java:335)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.<init>(OCASDiskWriteAheadLog.java:282)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.initWalAndDiskCache(OLocalPaginatedStorage.java:589)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:282)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:259)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:56)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OSystemDatabase.openSystemDatabase(OSystemDatabase.java:97)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OSystemDatabase.checkServerId(OSystemDatabase.java:174)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:162)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OSystemDatabase.<init>(OSystemDatabase.java:49)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1212)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OServer.activate(OServer.java:421)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OServerMain$1.run(OServerMain.java:48)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: 2019-12-02 14:55:42:029 INFO  - shutdown storage: OSystem... [OrientDBDistributed]Error during server execution
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: com.orientechnologies.orient.core.exception.ODatabaseException: Cannot open database 'OSystem'
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:268)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:56)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OSystemDatabase.openSystemDatabase(OSystemDatabase.java:97)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OSystemDatabase.checkServerId(OSystemDatabase.java:174)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OSystemDatabase.init(OSystemDatabase.java:162)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OSystemDatabase.<init>(OSystemDatabase.java:49)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OServer.initSystemDatabase(OServer.java:1212)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OServer.activate(OServer.java:421)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.server.OServerMain$1.run(OServerMain.java:48)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: Caused by: java.lang.RuntimeException: java.nio.file.AccessDeniedException: /opt/orientdb/databases/OSystem/OSystem.wmr
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.logAndPrepareForRethrow(OAbstractPaginatedStorage.java:5829)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:347)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.db.OrientDBEmbedded.openNoAuthorization(OrientDBEmbedded.java:259)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011... 8 more
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: Caused by: java.nio.file.AccessDeniedException: /opt/orientdb/databases/OSystem/OSystem.wmr
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at java.nio.channels.FileChannel.open(FileChannel.java:287)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at java.nio.channels.FileChannel.open(FileChannel.java:335)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.cas.OCASDiskWriteAheadLog.<init>(OCASDiskWriteAheadLog.java:282)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.storage.disk.OLocalPaginatedStorage.initWalAndDiskCache(OLocalPaginatedStorage.java:589)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:282)
Dec  2 14:55:42 llu-MS-7B17 server.sh[5237]: #011... 9 more
Dec  2 14:55:47 llu-MS-7B17 systemd[1]: orientdb.service: Main process exited, code=exited, status=1/FAILURE
Dec  2 14:55:47 llu-MS-7B17 systemd[1]: orientdb.service: Failed with result 'exit-code'.
@tglman
Copy link
Member

tglman commented Jun 1, 2020

Hi,

This seems just that the user that is used to run the OrientDB process does not have permission to access /opt/orientdb/databases/ folder or any inside it.

Just grant that permission.
Regards

@tglman tglman closed this as completed Jun 1, 2020
@tglman tglman added the question label Jun 1, 2020
@tglman tglman added this to the 3.0.x milestone Jun 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants