YunoHost-Apps / librephotos_ynh

Librephotos package for YunoHost
https://github.com/LibrePhotos/librephotos
MIT License
5 stars 3 forks source link

Installation abort at "Setting up backend" with a broken pipe error #21

Closed stemy2 closed 3 years ago

stemy2 commented 3 years ago

Describe the bug

The installation process is blocked at the step "Setting up backend" during long long time then abort after a broken pipe in the connection. It happened every time i tried.

Context

Steps to reproduce

```
sudo yunohost app install librephotos
 ```

Expected behavior

Installation succeeds.

Logs

https://paste.yunohost.org/raw/icokepilaq

Jules-Bertholet commented 3 years ago

Did you install via SSH? "broken pipe" would mean an SSH timeout in that case. You can tweak your sshd config to keep the connection alive, but a simpler solution would just be to press Enter every so often at the terminal, to keep the connection alive.

tituspijean commented 3 years ago

Another "safe" way to run long commands is to use a screen.

apt install screen
screen
# It will create a new empty prompt
yunohost app install ...

If connection breaks: screen -R to reconnect to the screen after logging in again in SSH.


Compiling sources can be very resource-consuming too. It is possible some services get killed by the system in the process, including the SSH connection.

How much RAM do you have? Could you consider stopping some of your largest apps while installing Librephotos? Or adding a swap file?

stemy2 commented 3 years ago

You were right, installation was too heavy for my hardware.