Flarum : failed update and failed restore

What type of hardware are you using: Old laptop or computer
What YunoHost version are you running: 12.0.13
What app is this about: Flarum

Describe your issue

I tried update flarum through the web admin and it failed*, and restoring the pre upgrade archive also fails…
Installing a fresh flarum works though, but i’m not sure if and how i can manually restore it from the tar backup.

*actually it succeeded but then flarum did not load and gave a generic error message

Share relevant logs or error messages

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

Still stuck with my broken flarum :frowning: anyone has any advice ?

Is there a chance that this would work ?

  • resintall a fresh flarum
  • copy the backuped database into the fresh install
  • profit

I would say “nothing to loose”.
Install a fresh copy
Open phpmyadmin, drop the content of the db, import the old db
Extract the install folder somewhere in the server, delete the content of /var/www/flarum (keep in mind the file ownership), cp the extracted install folder there and fix the file ownership.

1 Like

It worked ! It’s alive !
Actually i just had to copy back the /var/www/flarum/public/assets since everything else is included in the database. I had to change these files ownership to flarum:www-data to make it work, but i’m not sure which permissions to give it or even if those have been altered in the process.

Just to be sure, can someone show me the output of ls -lah /var/www/flarum/public/assets/ and maybe one line from ls -lah /var/www/flarum/public/assets/files ?

Thanks a lot

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.