in my last post: Office preview not working i posted a problem with office preview not working. the “solution” was that i have unpacked the tar-file again. seems that i have messed up some file access rights or so.
in the meantime i have updated to the final release of seafile pro server 6.0.2. now the preview was not longer working. i have tried different things again. tried to set logging to debug-level but can’t find any hints in the logs.
now i have again unpacked the tar file as user “seafile”. and now some magic:
seafile/seahub is running as user seafile (group www-data). i have unpacked the tar file as user seafile.
i use a small start-script as user root:
cd seafile-server-latest sudo -u seafile ./seafile.sh start sudo -u seafile ./seahub.sh start-fastcgi
seafile and seahub are coming up. i can use the clients and use my browser to access seafile. everything seems to work.BUT office preview is NOT working.
now comes some magic: if i change to user seafile and start
su - seafile cd seafile-server-latest ./seafile.sh start ./seahub.sh start-fastcgi
everything is up AND office preview is now working!
it makes no difference, if i am root and change to seafile-server-latest and call both start-commands by hand.