# ERROR ROOT - Dremio is exiting. Failure while starting services. java.lang.UnsatisfiedLinkError: /tmp/

**URL:** <https://community.dremio.com/t/error-root-dremio-is-exiting-failure-while-starting-services-java-lang-unsatisfiedlinkerror-tmp/10963>\
**Category:** Uncategorized\
**Created:** [September 4, 2023, 6:10pm UTC](https://community.dremio.com/t/error-root-dremio-is-exiting-failure-while-starting-services-java-lang-unsatisfiedlinkerror-tmp/10963 "2023-09-04T18:10:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jduarte1081](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jduarte1081](https://community.dremio.com/u/Jduarte1081)\
**Post date:** [September 4, 2023, 6:10pm UTC](https://community.dremio.com/t/error-root-dremio-is-exiting-failure-while-starting-services-java-lang-unsatisfiedlinkerror-tmp/10963/1 "2023-09-04T18:10:59Z")

</div>

Hello,

I have the following error when starting the Dremio service:

```auto
[main] ERROR ROOT - Dremio is exiting. Failure while starting services.
java.lang.UnsatisfiedLinkError: /tmp/librocksdbjni4923638441609242072.so: /tmp/librocksdbjni4923638441609242072.so: failed to map segment from shared object
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934)
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817)
        at java.lang.Runtime.load0(Runtime.java:782)
        at java.lang.System.load(System.java:1100)
        at org.rocksdb.NativeLibraryLoader.loadLibraryFromJar(NativeLibraryLoader.java:78)
        at org.rocksdb.NativeLibraryLoader.loadLibrary(NativeLibraryLoader.java:56)
        at org.rocksdb.RocksDB.loadLibrary(RocksDB.java:64)
        at org.rocksdb.RocksDB.<clinit>(RocksDB.java:35)
        at org.rocksdb.Options.<clinit>(Options.java:25)
        at com.dremio.datastore.ByteStoreManager.start(ByteStoreManager.java:206)
        at com.dremio.datastore.CoreStoreProviderImpl.start(CoreStoreProviderImpl.java:148)
        at com.dremio.datastore.LocalKVStoreProvider.start(LocalKVStoreProvider.java:187)
        at com.dremio.dac.cmd.upgrade.Upgrade.run(Upgrade.java:184)
        at com.dremio.dac.daemon.DremioDaemon.main(DremioDaemon.java:99)
        Suppressed: java.lang.IllegalStateException: #start was not invoked, so metadataManager is not available

```

**I already identified that it is because the /tmp directory has the noexec option active and it should be for security reasons.**

**My question is: Where can I change the destination of these temporary files?**

I didn’t find any information in the documentation.

---

<div class="post-metadata">

**Author:** ![balaji.ramaswamy](https://sea2.discourse-cdn.com/flex020/user_avatar/community.dremio.com/balaji.ramaswamy/32/843_2.png) [@balaji.ramaswamy](https://community.dremio.com/u/balaji.ramaswamy)\
**Post date:** [September 7, 2023, 4:55am UTC](https://community.dremio.com/t/error-root-dremio-is-exiting-failure-while-starting-services-java-lang-unsatisfiedlinkerror-tmp/10963/2 "2023-09-07T04:55:15Z")

</div>

@Jduarte1081 In your `dremio-env` file, add the below

```auto
DREMIO_JAVA_EXTRA_OPTS="-Djava.io.tmpdir=/path/to/tmp"

```

---

<div class="post-metadata">

**Author:** ![Jduarte1081](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jduarte1081](https://community.dremio.com/u/Jduarte1081)\
**Post date:** [September 11, 2023, 8:57am UTC](https://community.dremio.com/t/error-root-dremio-is-exiting-failure-while-starting-services-java-lang-unsatisfiedlinkerror-tmp/10963/3 "2023-09-11T08:57:22Z")

</div>

It’s works, thank you @balaji.ramaswamy !!
