You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/11/09 11:32:32 UTC
[GitHub] [pulsar] xuesongxs opened a new issue #12695: Unable to load the RocksDB shared library
xuesongxs opened a new issue #12695:
URL: https://github.com/apache/pulsar/issues/12695
**Describe the bug**
Pulsar v2.8.1
OS:BCLinux
```
17:04:55.267 [main] ERROR org.apache.bookkeeper.server.Main - Failed to build bookie server
java.io.IOException: Failed to load RocksDB JNI library
at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.<init>(KeyValueStorageRocksDB.java:97) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.<init>(KeyValueStorageRocksDB.java:88) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.lambda$static$0(KeyValueStorageRocksDB.java:62) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.bookie.storage.ldb.LedgerMetadataIndex.<init>(LedgerMetadataIndex.java:68) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.bookie.storage.ldb.SingleDirectoryDbLedgerStorage.<init>(SingleDirectoryDbLedgerStorage.java:169) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.bookie.storage.ldb.DbLedgerStorage.newSingleDirectoryDbLedgerStorage(DbLedgerStorage.java:150) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.bookie.storage.ldb.DbLedgerStorage.initialize(DbLedgerStorage.java:129) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.bookie.Bookie.<init>(Bookie.java:818) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.proto.BookieServer.newBookie(BookieServer.java:152) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.proto.BookieServer.<init>(BookieServer.java:120) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.server.service.BookieService.<init>(BookieService.java:52) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.server.Main.buildBookieServer(Main.java:304) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.server.Main.doMain(Main.java:226) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
at org.apache.bookkeeper.server.Main.main(Main.java:208) [org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
Caused by: java.lang.ExceptionInInitializerError
at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.<init>(KeyValueStorageRocksDB.java:95) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
... 13 more
Caused by: java.lang.RuntimeException: Unable to load the RocksDB shared library
at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:70) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
at org.rocksdb.RocksDB.<clinit>(RocksDB.java:38) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.<init>(KeyValueStorageRocksDB.java:95) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
... 13 more
Caused by: java.io.IOException: Permission denied
at java.io.UnixFileSystem.createFileExclusively(Native Method) ~[?:1.8.0_251]
at java.io.File.createTempFile(File.java:2024) ~[?:1.8.0_251]
at java.io.File.createTempFile(File.java:2070) ~[?:1.8.0_251]
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:88) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:79) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:57) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:67) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
at org.rocksdb.RocksDB.<clinit>(RocksDB.java:38) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
at org.apache.bookkeeper.bookie.storage.ldb.KeyValueStorageRocksDB.<init>(KeyValueStorageRocksDB.java:95) ~[org.apache.bookkeeper-bookkeeper-server-4.14.2.jar:4.14.2]
... 13 more
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] xuesongxs commented on issue #12695: Unable to load the RocksDB shared library
Posted by GitBox <gi...@apache.org>.
xuesongxs commented on issue #12695:
URL: https://github.com/apache/pulsar/issues/12695#issuecomment-964717170
> @xuesongxs Looks like permission issues? `Caused by: java.io.IOException: Permission denied`
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:88) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
When starting bookie, the librocksdbjni.so file will be copied to the /tmp directory. The current user does not have permission to write to the /tmp directory. This should be the reason.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] xuesongxs commented on issue #12695: Unable to load the RocksDB shared library
Posted by GitBox <gi...@apache.org>.
xuesongxs commented on issue #12695:
URL: https://github.com/apache/pulsar/issues/12695#issuecomment-964712565
> @xuesongxs Looks like permission issues? `Caused by: java.io.IOException: Permission denied`
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:88) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
When starting bookie, the librocksdbjni.so file will be copied to the /tmp directory. The current user does not have permission to write to the /tmp directory. This should be the reason.
From: lipenghui
Date: 2021-11-09 23:58
To: apache/pulsar
CC: xuesongxs; Mention
Subject: Re: [apache/pulsar] Unable to load the RocksDB shared library (Issue #12695)
@xuesongxs Looks like permission issues? Caused by: java.io.IOException: Permission denied
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] github-actions[bot] commented on issue #12695: Unable to load the RocksDB shared library
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #12695:
URL: https://github.com/apache/pulsar/issues/12695#issuecomment-1052937553
The issue had no activity for 30 days, mark with Stale label.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] codelipenghui commented on issue #12695: Unable to load the RocksDB shared library
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #12695:
URL: https://github.com/apache/pulsar/issues/12695#issuecomment-964287615
@xuesongxs Looks like permission issues? `Caused by: java.io.IOException: Permission denied`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] xuesongxs removed a comment on issue #12695: Unable to load the RocksDB shared library
Posted by GitBox <gi...@apache.org>.
xuesongxs removed a comment on issue #12695:
URL: https://github.com/apache/pulsar/issues/12695#issuecomment-964712565
> @xuesongxs Looks like permission issues? `Caused by: java.io.IOException: Permission denied`
at org.rocksdb.NativeLibraryLoader.loadLibraryFromJarToTemp(NativeLibraryLoader.java:88) ~[org.rocksdb-rocksdbjni-6.10.2.jar:?]
When starting bookie, the librocksdbjni.so file will be copied to the /tmp directory. The current user does not have permission to write to the /tmp directory. This should be the reason.
From: lipenghui
Date: 2021-11-09 23:58
To: apache/pulsar
CC: xuesongxs; Mention
Subject: Re: [apache/pulsar] Unable to load the RocksDB shared library (Issue #12695)
@xuesongxs Looks like permission issues? Caused by: java.io.IOException: Permission denied
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@pulsar.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org