Seafile 10 Permission denied: 'default-non-register.jpg'

I’ll never understand why someone distributes all this non-working shit.
Trying to setup Seafile 10 like explained in instructions.
But setup-seafile-mysql.sh ends with:
Error: Failed to prepare seahub avatars dir: [Errno 13] Permission denied: ‘default-non-register.jpg’

First thing, someone was nice enough to share their work for people like you and me to use for free. They did us a favor, or at least did me a favor. If you don’t think they also did you a favor then you should remember that nobody is forcing you to use it. Starting a request for help with negativity usually isn’t effective, and is usually not welcome in any community.

Second thing, looks like a permissions issue on a file. I’m guessing you didn’t do the the chown -R seafile step from the install instructions.

https://manual.seafile.com/deploy/using_mysql/#creating-user-seafile

As TomServo said above, it’s a setup permissions issue. The software itself is brilliant.

Do the following command:
sudo chown -R seafile /opt/seafile

If you are willing to re-setup, I would use the haiwen script from github:

I would be happy to give you a run-down on how to set it up with this, and where all of the passwords are stored for if you need them.

Kind regards,
Mitch


Successfully created seafile admin

Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
root@ubuntu22:~#
root@ubuntu22:/opt/seafile# /opt/seafile/seafile-server-10.0.1/seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again
root@ubuntu22:/opt/seafile#
root@ubuntu22:~# ls -l /opt/seafile
total 32
drwx------ 2 seafile seafile 4096 Apr 9 20:51 ccnet
drwx------ 3 seafile seafile 4096 Apr 9 20:51 conf
drwxr-xr-x 2 seafile seafile 4096 Apr 9 20:51 installed
drwxrwxr-x 2 seafile seafile 4096 Apr 9 20:51 logs
drwxrwxr-x 2 seafile seafile 4096 Apr 9 20:51 pids
drwx------ 7 seafile seafile 4096 Apr 9 20:51 seafile-data
drwxr-xr-x 7 seafile seafile 4096 Apr 9 20:51 seafile-server-10.0.1
lrwxrwxrwx 1 seafile seafile 21 Apr 9 20:51 seafile-server-latest → seafile-server-10.0.1
drwxr-xr-x 3 seafile seafile 4096 Apr 9 20:51 seahub-data
root@ubuntu22:~#

It does not work on Debian12, it does not work on Ubuntu22, it does not work on Ubuntu20.
Now I know, why people use Nextcloud

root@ubuntu20:/opt/seafile/seafile-server-10.0.1# ./seahub.sh start

LC_ALL is not set in ENV, set to en_US.UTF-8
Starting seahub at port 8000 …
Error:Seahub failed to start.
Please try to run “./seahub.sh start” again

It says that it’s supported on Ubuntu and Deb.
https://help.seafile.com/syncing_client/install_linux_client/

Try deleting the /opt/seafile folder (I’m assuming that you don’t have anything in it) and use the setup script mentioned previously.

  • go to the designated script
  • select raw
  • copy the URL

Then use the following commands:

  • wget ‘link’ ‘seafile-##_##’
  • bash ‘Seafile-##_##’
  • Go through the installation steps

If you don’t want to delete, please go to the:
/opt/seafile/conf folder

  • nano seahub_settings.py

  • change the daemon to false

  • save the configuration settings

  • post the logs on here

I had it setup on Ubuntu 22 and 20 when I was trialing it. Happy to setup a demo one on Deb for testing.