New server - java.io.EOFException

27 views
Skip to first unread message

Alex Bergsland

unread,
Feb 27, 2019, 2:42:08 PM2/27/19
to PicApport
This is probably just because some simple mistake I made.
I am running a web server in a vm and I am trying to get PicApport running on port 8585 (8080 is taken).
When I run the screen service I cannot find anything on webserverip:8585 so I tried running the jar-file directly with:
java -Xms512m -Xmx1024m -Duser.home=/mnt/picapport -jar /mnt/picapport/picapport-headless.jar
and noticed that it just stops and returns to console after
MSG  @ 20:22:29.180 Init: user.log.access=true

So I added debug log level:
java -Xms512m -Xmx1024m -Duser.home=/mnt/picapport -jar /mnt/picapport/picapport-headless.jar
and got a bit more info and it ends with
java.io.EOFException
log attached.

Any idea what my problem is?

Kind Regards
Alex Bergsland
picapport.004

PicApport

unread,
Feb 28, 2019, 3:30:06 AM2/28/19
to PicApport
Hi Alex,

it seems that PicAport has problems to read/write /mnt/picapport/.picapport/PicApport.lck
Delete PicApport.lck(It's just a semapore) and make sure that PicApport has read/write permissions for .picapport
Is is possible that you have copied the .lck File from an other system?
Eric

Alex Bergsland

unread,
Feb 28, 2019, 10:56:08 AM2/28/19
to PicApport
You are correct, now when you mention it I can read it from the logs, but it was not clear to me before.
/mnt/picapport/ is a nfs share from my server, I realized it unnecessary to run the whole application from there so I moved it to /opt/picapport as in the manual and ran it with sudo and it worked. The Photos directory will be on the server.

"..make sure that PicApport has read/write permissions for .picapport"
That means that the user starting picapport needs permission right?

Alex Bergsland

unread,
Feb 28, 2019, 10:57:07 AM2/28/19
to PicApport
.. and thank you for replying (and for PicApport :P)

E. Schreiner

unread,
Feb 28, 2019, 11:00:07 AM2/28/19
to PicApport
....That means that the user starting picapport needs permission right? Yes
Reply all
Reply to author
Forward
0 new messages