YunoHost-Apps / outline_ynh

An open, extensible, wiki for your team built using React and Node.js
GNU Affero General Public License v3.0
19 stars 9 forks source link

Outline Update Failing (Outline from 0.67.2~ynh1 to 0.69.2.2~ynh1) #76

Closed mhfowler closed 9 months ago

mhfowler commented 1 year ago

I'm running yunohost on a digital ocean droplet, with yunohost version: 11.1.22 (stable)

I've tried to update Outline through the system update and its failing.

I actually wouldn't need to update, except I am currently seeing an error in outline when I try to export one of of my collections as markdown (and was hoping the update would fix this). The error I see when exporting the collection as markdown is: Failed • Unexpected close tag Line: 5 Column: 7 Char: > • You requested 4 mins ago • Markdown • 0 Bytes

Either a way to fix the export, or to fix the update (and hopefully thus fix the export), either would be appreciated.

When I try to update outline, it fails with an error message, and then hangs, and I need to reboot the server to do things in the yunohost admin interface again. This is the logs I can see:

Now upgrading outline...
Loading installation settings...
Backing up the app before upgrading (may take a while)...
'/var/www/outline/outlinestorage' wasn't deleted because it doesn't exist.
'/var/www/minio/mc/outlinestorage' wasn't deleted because it doesn't exist.
Stopping a systemd service...
Making sure dedicated system user exists...
Upgrading source files...
Updating outlinestorage MinIO bucket access policy...
Upgrading NGINX web server configuration...
Upgrading dependencies...
Building Yarn dependencies... This can be very long, be patient !
Fetching Yarn production dependencies... This can be very long, be patient !
Building... This can be very long, be patient !
[Error] Upgrade failed.
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
sh: 0: getcwd() failed: No such file or directory
This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`.

I've tried running sudo apt install --fix-broken and it yields: 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Interestingly, after the failed upgrade, the outline application no longer works, the domain just shows the nginx page:

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

I'm able to restore outline to its previous state by uninstalling outline through the admin interface, and then restoring it from its backup.

mhfowler commented 1 year ago

I've identified that its just one file in particular that is causing the error (had to manually add and remove files to figure this out). Although still not sure why this file is causing an error (maybe photos are too big or something? not sure how to fix though...)

Limezy commented 1 year ago

Could you please try to update to the v0.72 just released ? Thanks !

Limezy commented 9 months ago

I will close this issue since I didn't get any feedback. Sorry that it didn't work for you ! Don't hesitate to reopen if things are still not working on your side