Failed to fopen() pidfile /opt/seafile/pids/ccnet.pid: Permission denied

I see an error in ccnet.log:
-Failed to fopen() pidfile /opt/seafile/pids/ccnet.pid: Permission denied

What does to error tell me?
How should the permissions for these PID files be?
When i look the current settings all PID files are owned by root:root

i am hesitating of changing them, however in the mean time i’ve set up a new Seafile server, ( newer version), and these PID files are owned by seafile.

Seafile stopped working after running the seaf-gc.sh script as sudo

Kind Regards
Gerard

Solved:
pid files should be owned by the seafile user

Please close topic ( or should i do that myself ??)

Just mark your answer as solved.