树莓派用于Blynk的服务器,启动服务器时出现问题。

huangapple go评论67阅读模式
英文:

Raspberry pi server for Blynk, Problem with starting server

问题

抱歉,由于您要求只返回翻译好的部分,我将为您提供所需的翻译内容:

嗨,大家好。对不起,我的英语不太好。我在树莓派上运行服务器时遇到了问题,

我使用以下命令启动服务器:

pi@raspberrypi:~ $ java -jar server-0.41.12-java8.jar - dataFolder home/pi/Blynk

错误消息如下:

> Exception in thread “main” java.lang.RuntimeException: Error unpacking
> static files. at
> cc.blynk.utils.JarUtil.unpackStaticFiles(JarUtil.java:64) at
> cc.blynk.utils.properties.ServerProperties.(ServerProperties.java:34)
> at
> cc.blynk.utils.properties.ServerProperties.(ServerProperties.java:42)
> at
> cc.blynk.server.launcher.ServerLauncher.main(ServerLauncher.java:55)
> Caused by: java.nio.file.AccessDeniedException:
> /home/pi/static/report-email.html at
> java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
> at
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
> at
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
> at
> java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:245)
> at
> java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
> at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180) at
> cc.blynk.utils.JarUtil.unpackStaticFiles(JarUtil.java:49) … 3 more

此外,我有 Java 11.0.3,但服务器似乎在使用 Java 8。我认为这是因为我没有创建服务器,只是在配置服务器。我尝试卸载了 Java 并重新安装(8.0 版本)(使用 sudo 命令),但在运行 java -version 命令后仍然显示 11.0.3 版本。

英文:

Hy guys. Sorry for my bad english. I have problem with running server on Raspberry,

I use this command for starting server:

pi@raspberrypi:~ $ java -jar server-0.41.12-java8.jar - dataFolder home/pi/Blynk

and error message :

> Exception in thread “main” java.lang.RuntimeException: Error unpacking
> static files. at
> cc.blynk.utils.JarUtil.unpackStaticFiles(JarUtil.java:64) at
> cc.blynk.utils.properties.ServerProperties.(ServerProperties.java:34)
> at
> cc.blynk.utils.properties.ServerProperties.(ServerProperties.java:42)
> at
> cc.blynk.server.launcher.ServerLauncher.main(ServerLauncher.java:55)
> Caused by: java.nio.file.AccessDeniedException:
> /home/pi/static/report-email.html at
> java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
> at
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
> at
> java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
> at
> java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(UnixFileSystemProvider.java:245)
> at
> java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(AbstractFileSystemProvider.java:110)
> at java.base/java.nio.file.Files.deleteIfExists(Files.java:1180) at
> cc.blynk.utils.JarUtil.unpackStaticFiles(JarUtil.java:49) … 3 more

Also i have java 11.0.3 but server is on java 8 I think because I don’ make server I just configure server. I try deinstalled java and instal now (8.0) (command with sudo) but then write again 11.0.3. (command java -version)

答案1

得分: 0

一切你需要的就是以 ROOT 权限启动服务器。
在终端中输入 sudo pcmanfm
然后在终端中打开文件夹并运行服务器!

英文:

All what you need is start server as a ROOT.
In terminal write sudo pcmanfm.
Then open folder in terminal and run server!

huangapple
  • 本文由 发表于 2020年10月11日 16:24:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/64301977.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定