Seafile - installation failure

:uk:/:us:

Hello to everyone!

And happy new year 2020 !
I am new to Yunohost and was wondering if someone could help me out on an issue I am encountering installing the Seafile application.

My YunoHost server

Hardware: VPS bought online
YunoHost version: 3.6.5.3
I have access to my server : through the webadmin and through SSH. The error I described occurred as I was connected through the webadmin.
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no

Description of my issue

I try to install Seafile and the installation fails, as I am getting an error message indicating an unexpected error occurred.
The installation log can be found here :
https://paste.yunohost.org/raw/bakidanazo

Thanks in advance for your help !

Cheers,

Eric


:fr

Bonjour à tous,

Et bonne année 2020 !
Je débute avec Yunohost et me demandais si quelqu’un pouvait m’aider sur un problème que je rencontre dans l’installation de l’application Seafile.

Mon serveur YunoHost

Matériel: VPS acheté en ligne
Version de YunoHost: 3.6.5.3
J’ai accès à mon serveur : Par la webadmin et par SSH. L’erreur que je décris s’est manifestée alors que j’étais connecté par la webadmin.
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

J’essaie d’installer Seafile et l’installation échoue ; je reçois un message d’erreur indiquant : “‘Une erreur inattendue est survenue : shell command return code: 1’”

Le log de l’installation est disponible ici :
https://paste.yunohost.org/raw/bakidanazo

Merci d’avance de votre aide !

Eric

Bonjour,
Je ne suis pas sûr de pouvoir t’aider, mais as-tu essayé de regarder si tu trouves plus d’infos dans les journaux :

2020-01-11 09:53:09,296: WARNING - See “systemctl status seahub.service” and “journalctl -xe” for details.

Deux autres pistes, peut-être :
1 - ton domaine choisi est-il uniquement dédié à Seafile ?
2 - ce message d’erreur concernant les locales :

2020-01-11 09:53:09,298: WARNING - janv. 11 09:53:03 www.unger.fr seahub.sh[4424]: LC_ALL is not set in ENV, set to fr_FR.UTF-8

Bon week-end !

Hello,

Can you try to reinstall seafile with this following command:

yunohost app install -n seafile

And after the install (which will fail but the app won’t be removed), we might be more able to invesitage why it fail.

Can you give me the content of /var/log/seafile/seahub.log and /var/log/seafile/seahub.init.log.

Hi Josue,

Thanks for your response.
I went ahead and installed the application via SSH as you asked me to. As expected, the installation failed again.
Unfortunately, the seahub.log file turns out to be empty. And there is no seahub.init.log file in the /var/log/seafile folder.

ssh

Any thoughts?

Cheers,

Eric

Can you try these command and give me the result:

cd /opt/yunohost/seafile/
sudo -u seafile /opt/yunohost/seafile/seafile-server-latest/seahub.sh start

And also:

systemctl status seafile

Hello Josue,

Thanks for your help.
Here are the screen captures:

Cheers,

Eric

And what is the result of:

tail -n 50 /var/log/seafile/controller.log
tail -n 50 /var/log/seafile/seafile.log
tail -n 50 /var/log/seafile/seafile.init.log
tail -n 50 /var/log/seafile/ccnet.log

Here it is:
tail -n 50 /var/log/seafile/controller.log


tail -n 50 /var/log/seafile/seafile.log

tail -n 50 /var/log/seafile/seafile.init.log

tail -n 50 /var/log/seafile/ccnet.log

Cheers,
Eric

Hello,

Sorry for the late answer.

Can you try this command:

systemctl restart seafile
ls /opt/yunohost/seafile/pids

Hello Josue-
Thanks for your response.
Here is the outcome:
image
Thanks in advance for your help on resolving this matter.
Cheers,
Eric

Can you try now : systemctl restart seahub

There you go:

Eric

Thanks,

What is the result of this pgrep -f "seafile-controller -c " ?

Hello-
There you go:
image
Cheers,
Eric

Can you try to restart your server.

If this don’t fix it what is the result of this:

ps -aux | grep seafile-controller

And this

sudo -u seafile -s
cd
bash -x /opt/yunohost/seafile/seafile-server-latest/seahub.sh start

Hello Josue-

I have restarted the server multiple times before, to no avail. I have thus restarted the server following your request and reran the installation command you indicated at the begginning of this thread:

yunohost app install -n seafile

It failed, once again:

Notice how the error occurs right after the warning indicating the path already contains a folder: should the folder be deleted prior to the installation?

Anyhow, these are the results of the commands you suggested:

As you can see below, the sudo command fails :

I thus ran a “su” command instead of sudo, and ran the seahub.sh script, which also failed, as seen in the attached text file.seafile.odt (5.3 KB)

Thanks in advance for your help on this issue.

Cheers,

Eric

Well I didn’t ask to retry to install the apps. :confused:

Anyway… can you retry theses command (as root):

systemctl restart seafile
systemctl status seafile
ps -aux | grep seafile-controller
sudo -u seafile -s
cd
bash -x /opt/yunohost/seafile/seafile-server-latest/seahub.sh start
exit
systemctl status seahub

You can use this tools to share your result: https://paste.yunohost.org/

Well I didn’t ask to retry to install the apps.

Sorry, I thought that’s what you meant when you indicated that restarting the server “might fix it”: knowing that the error was encountered while installing the application, re-installing the latter seemed the only way to determine whether the problem was indeed fixed or not.

systemctl restart seafile
systemctl status seafile
https://paste.yunohost.org/vofehonabe.rb

ps -aux | grep seafile-controller
https://paste.yunohost.org/cusetabobe.rb

sudo -u seafile -s
cd
bash -x /opt/yunohost/seafile/seafile-server-latest/seahub.sh start
https://paste.yunohost.org/papaquqejo.diff

exit
systemctl status seahub
https://paste.yunohost.org/leqijabipi.rb

Cheers,

Eric

Ok, now can you a new time check the content of /var/log/seafile/seahub.log and /var/log/seafile/seahub.init.log ?

Hello-

/var/log/seafile/ points to /opt/yunohost/seafile/logs
/opt/yunohost/seafile/logs/seahub.log is empty.
/opt/yunohost/seafile/logs/seahub.init.log does not exist.

https://paste.yunohost.org/puyixiliwe.rb

Cheers,

Eric