-
Notifications
You must be signed in to change notification settings - Fork 251
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
Cannot run program "/tmp/jave/ffmpeg-amd64-3.2.0" #236
Comments
Is that file existing in /tmp/jave/ folder? |
file exists in /tmp/jave/ folder, but i cant run it throw cmd , it shows Insufficient Permissions |
and i have chown 777 , but it not works |
Then you have to look at your server envrionemnt, |
i find that it fails in /tmp/ directory, but when i copied ffmpeg-amd54-3.2.0 to /data/ directory , it is executable. |
Jave uses the system temp location Line 57 So you can either set another temp location in the properties of the JVM, or implement you own |
We deploy on linux.This error occurs :
java.io.IOException: Cannot run program "/tmp/jave/ffmpeg-amd64-3.2.0": error=13, 权限不够 at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at java.lang.Runtime.exec(Runtime.java:593) at java.lang.Runtime.exec(Runtime.java:458) at ws.schild.jave.process.ProcessWrapper.execute(ProcessWrapper.java:103) at ws.schild.jave.process.ProcessWrapper.execute(ProcessWrapper.java:135) at com.alipay.zark.avatar.service.FileUploadServer.ffmpegExecut(FileUploadServer.java:464) at com.alipay.zark.avatar.service.FileUploadServer.generateBackgroundImage(FileUploadServer.java:686) at com.alipay.zark.avatar.service.FileUploadServer.afterProcess(FileUploadServer.java:340) at com.alipay.zark.avatar.service.FileUploadServer.onMessage(FileUploadServer.java:130) at org.java_websocket.server.WebSocketServer.onWebsocketMessage(WebSocketServer.java:703) at org.java_websocket.drafts.Draft_6455.processFrameText(Draft_6455.java:963) at org.java_websocket.drafts.Draft_6455.processFrame(Draft_6455.java:887) at org.java_websocket.WebSocketImpl.decodeFrames(WebSocketImpl.java:401) at org.java_websocket.WebSocketImpl.decode(WebSocketImpl.java:233) at org.java_websocket.server.WebSocketServer$WebSocketWorker.doDecode(WebSocketServer.java:1096) at org.java_websocket.server.WebSocketServer$WebSocketWorker.run(WebSocketServer.java:1077) Caused by: java.io.IOException: error=13, 权限不够 at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
The text was updated successfully, but these errors were encountered: