Comments (13)
this worked for me
java -Djna.tdir=/home2/myaccount/public_html/tmp -jar photon-0.4.3.jar -listen-port 9999
thank you
from photon.
Which mount options are you using for /tmp
?
from photon.
where are the mount options?
from photon.
Can you post the content of your fstab?
cat /etc/fstab
Please redact any hardcoded credentials.
from photon.
/etc/fstab
Created by anaconda on Wed Jul 25 03:26:49 2018
Accessible filesystems, by reference, are maintained under '/dev/disk'
See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
UUID=567caf1c-2cc5-43ad-b55a-bf9695e865be / ext4 usrjquota=quota.user,jqfmt=vfsv0 1
UUID=7534e6ea-4c4f-4380-aa29-05d135d36f0c /boot ext4 defaults 1 2
UUID=a736d6cc-0d56-4bfe-b594-4225c29f56fc /tmp ext4 defaults 1 2
UUID=238d3570-8437-4cb7-9eb3-fe7ad03f8a47 swap swap defaults 0 0
/dev/sdb1 /home2 ext4 defaults 0 0
from photon.
That looks as expected. Could you check the permissions?
ls -lah /tmp
The directory itself should be owned by root and be readable/writeable for everybody:
drwxrwxrwt 20 root root 16K Jan 11 13:17 .
from photon.
its not a good idea.
how to set another path for temp?
from photon.
its not a good idea.
That's the default. Anything else is a recipe for disaster.
https://unix.stackexchange.com/a/71625
chown root:root /tmp
chmod 1777 /tmp
from photon.
still i have error.
java -jar photon-0.4.3.jar -listen-port 9999
2024-01-11 16:50:09,113 [main] WARN org.elasticsearch.node.Node - version [5.6.16-SNAPSHOT] is a pre-release version of Elasticsearch and is not suitable for production
2024-01-11 16:50:18,503 [main] WARN org.elasticsearch.bootstrap.Natives - unable to load JNA native support library, native methods will be disabled.
java.lang.UnsatisfiedLinkError: /tmp/jna--1394926960/jna1063817280630509643.tmp: /tmp/jna--1394926960/jna1063817280630509643.tmp: failed to map segment from shared object: Operation not permitted
at java.lang.ClassLoader$NativeLibrary.load(Native Method) ~[?:1.8.0_392]
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1934) ~[?:1.8.0_392]
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1817) ~[?:1.8.0_392]
at java.lang.Runtime.load0(Runtime.java:782) ~[?:1.8.0_392]
at java.lang.System.load(System.java:1100) ~[?:1.8.0_392]
at com.sun.jna.Native.loadNativeDispatchLibraryFromClasspath(Native.java:947) ~[photon-0.4.3.jar:?]
at com.sun.jna.Native.loadNativeDispatchLibrary(Native.java:922) ~[photon-0.4.3.jar:?]
at com.sun.jna.Native.(Native.java:190) ~[photon-0.4.3.jar:?]
at java.lang.Class.forName0(Native Method) ~[?:1.8.0_392]
at java.lang.Class.forName(Class.java:264) ~[?:1.8.0_392]
at org.elasticsearch.bootstrap.Natives.(Natives.java:45) ~[photon-0.4.3.jar:?]
at org.elasticsearch.bootstrap.BootstrapInfo.isMemoryLocked(BootstrapInfo.java:50) ~[photon-0.4.3.jar:?]
at org.elasticsearch.monitor.process.ProcessProbe.processInfo(ProcessProbe.java:130) ~[photon-0.4.3.jar:?]
at org.elasticsearch.monitor.process.ProcessService.(ProcessService.java:47) ~[photon-0.4.3.jar:?]
at org.elasticsearch.monitor.MonitorService.(MonitorService.java:46) ~[photon-0.4.3.jar:?]
at org.elasticsearch.node.Node.(Node.java:362) ~[photon-0.4.3.jar:?]
at de.komoot.photon.elasticsearch.Server$MyNode.(Server.java:64) ~[photon-0.4.3.jar:?]
at de.komoot.photon.elasticsearch.Server.start(Server.java:110) ~[photon-0.4.3.jar:?]
at de.komoot.photon.App.main(App.java:31) ~[photon-0.4.3.jar:?]
2024-01-11 16:50:31,138 [main] INFO de.komoot.photon.elasticsearch.Server - started elastic search node
2024-01-11 16:50:31,138 [main] INFO de.komoot.photon.App - Make sure that the ES cluster is ready, this might take some time.
2024-01-11 16:50:40,950 [main] INFO de.komoot.photon.App - ES cluster is now ready.
from photon.
I'd try to remove any remains from previous runs.
find /tmp -maxdepth 1 -name 'jna--*' -exec rm -rf "{}" \;
It might be also worth to investigate the default mount options used by your distribution:
mount | grep /tmp
from photon.
(base) root@ []# find /tmp -maxdepth 1 -name 'jna--*' -exec rm -rf "{}" ;]# mount | grep /tmp
(base) root@ [
/dev/sda5 on /tmp type ext4 (rw,nosuid,noexec,relatime,seclabel,data=ordered)
/dev/sda5 on /var/tmp type ext4 (rw,nosuid,noexec,relatime,seclabel,data=ordered)
/dev/sda5 on /home/virtfs/abbas/tmp type ext4 (rw,nosuid,noexec,relatime,seclabel,data=ordered)
/dev/sda5 on /home/virtfs/abbas/var/tmp type ext4 (rw,nosuid,noexec,relatime,seclabel,data=ordered)
(base) root@ [~]#
still same error
2024-01-11 17:15:19,995 [main] WARN org.elasticsearch.bootstrap.Natives - unable to load JNA native support library, native methods will be disabled.
java.lang.UnsatisfiedLinkError: /tmp/jna--1394926960/jna3660516763353728117.tmp: /tmp/jna--1394926960/jna3660516763353728117.tmp: failed to map segment from shared object: Operation not permitted
from photon.
noexec
is the culprit here.
You could try the mentioned workaround using -Djna.tmpdir=<path>
:
https://www.elastic.co/guide/en/elasticsearch/reference/current/executable-jna-tmpdir.html
from photon.
This seems resolved.
from photon.
Related Issues (20)
- Problems with the https://photon.komoot.io/ API HOT 1
- [Typeahead suggestion] Missing street numbers HOT 2
- layer=city does not work for some larger german cities HOT 2
- lang=en vs. lang=default HOT 1
- Make timeout configurable HOT 1
- No new search indices on Graphhopper servers since 9.7.2023 HOT 1
- City tag inconsistent HOT 3
- Does photon support s3 like elasticsearch?
- Combine tags with OR
- fail import from Nominatim 4.1 HOT 1
- language italian problems HOT 3
- Find results that match an osm_tag (Not filter after search). HOT 4
- Hosted docker version giving error (NoShardAvailableActionException) HOT 5
- Update netty dependency to recommended version HOT 1
- one of the gradle distributions does not run HOT 3
- Canadian postcodes seems slightly wrong
- state, county tag not available for all documents.
- layer=other ?
- "extensive usage will be throttled"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from photon.