YunoHost-Apps / mastodon_ynh

Free, open-source social network for YunoHost
https://joinmastodon.org/
GNU Affero General Public License v3.0
84 stars 33 forks source link

I can't use the web UI anymore after upgrading to 4.2.8~ynh2 #450

Open sdfoersn490 opened 1 month ago

sdfoersn490 commented 1 month ago

Describe the bug

Hi guys, I can't use the web UI anymore after upgrading to 4.2.8~ynh2

Context

Steps to reproduce

Expected behavior

LDAP Login or Timeline view Note: Access via Apps like IceCubes is still working fine

Logs

No Errors in logs: https://paste.yunohost.org/raw/fatuzapola

How can I fix this?

sdfoersn490 commented 1 month ago

Looks like this happened during testing too: https://github.com/YunoHost-Apps/mastodon_ynh/pull/449#issuecomment-1987234420

Ni-Ti commented 1 month ago

Same issue here. :-/

tio-trom commented 1 month ago

Same here. I am happy that it seems a solution is on the way https://github.com/YunoHost-Apps/mastodon_ynh/pull/449#pullrequestreview-2080867406 - thank you guys!

yodahome commented 1 month ago

Same issue here, but it is inconsistent between browsers where I've been logged in prior to the upgrade. On some I get the UI but without any working icons. On some I get the screen shown above and can't even log in. Using Mastodon via Apps works. Seems like some style or template stuff isn't working.

sdfoersn490 commented 3 weeks ago

Is there any quick fix for this? :/

Photowalk commented 3 weeks ago

Same here. Hope there will be a quick fix. Thx!

PraetorIM commented 1 week ago

Same here. No solution for over one month???

Refused to execute script from 'https://.../packs/js/common-b94cebf75788414c0723.js' because its MIME type ('text/html') is not executable, and strict MIME type checking is enabled. (same for other js- an css-files)

isAAAc commented 4 days ago

same here too, i tried yunohost app upgrade -F mastodon but no change

panomaki commented 4 days ago

I have no way to test or reproduce here, but if any of the above have the possibility to check whether upgrading to the testing 4.2.9 release via

sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing --debug

would solve this, and report back, that would maybe speed up merging that version into main and hopefully solve this problem.

sdfoersn490 commented 4 days ago

Hi @panomaki,

I upgraded to the test branch, but unfortunately this doesn't solve the issue :/

Bildschirmfoto 2024-06-27 um 13 28 54

Logfile: https://paste.yunohost.org/raw/huvogibefi

PraetorIM commented 4 days ago

The update went through without an error message, but the error still occurs (as with @sdfoersn490).

A new Mastodon installation (on the same server) is not affected by the error and runs without any problems. So something must have gone wrong with the last update.

panomaki commented 4 days ago

Thanks for trying. It looks similar to #341, so it'd be interesting to see what

ls -lah /var/www/mastodon/live/public/packs/css/

shows. If it looks like mentioned in this comment (https://github.com/YunoHost-Apps/mastodon_ynh/issues/341#issuecomment-1294011231), an option could be to recompile the assets:

cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=$PATH:/opt/rbenv/versions/mastodon/bin bin/bundle exec rails assets:precompile

(If the permissions look differently, so not owned by mastodon:www-data, fix that first)

sdfoersn490 commented 4 days ago

ls -lah /var/www/mastodon/live/public/packs/css/

total 548K
drwxr-x--- 2 mastodon www-data 4.0K May 29 00:35 .
drwxr-x--- 6 mastodon www-data 4.0K May 29 00:35 ..
-rw-r----- 1 mastodon www-data 5.6K Feb 26 18:38 common-a729b6b0.css.br
-rw-r----- 1 mastodon www-data 7.1K Feb 26 18:38 common-a729b6b0.css.map.br
-rw-r----- 1 mastodon www-data  42K Feb 26 18:38 contrast-ffdc2fd9.chunk.css.br
-rw-r----- 1 mastodon www-data  99K Feb 26 18:38 contrast-ffdc2fd9.chunk.css.map.br
-rw-r----- 1 mastodon www-data  42K Feb 26 18:38 default-df299a32.chunk.css.br
-rw-r----- 1 mastodon www-data  73K Feb 26 18:38 default-df299a32.chunk.css.gz
-rw-r----- 1 mastodon www-data  98K Feb 26 18:38 default-df299a32.chunk.css.map.br
-rw-r----- 1 mastodon www-data 2.1K Feb 26 18:38 mailer-47e61cac.chunk.css.br
-rw-r----- 1 mastodon www-data 2.4K Feb 26 18:38 mailer-47e61cac.chunk.css.gz
-rw-r----- 1 mastodon www-data 3.8K Feb 26 18:38 mailer-47e61cac.chunk.css.map.br
-rw-r----- 1 mastodon www-data  43K Feb 26 18:38 mastodon-light-7cb52d19.chunk.css.br
-rw-r----- 1 mastodon www-data 102K Feb 26 18:38 mastodon-light-7cb52d19.chunk.css.map.br

sudo -u mastodon RAILS_ENV=production PATH=/opt/rbenv/versions/mastodon/bin bin/bundle exec rails assets:precompile leads to:

sh: 1: node: not found
sh: 1: nodejs: not found
Node.js not installed. Please download and install Node.js https://nodejs.org/en/download/
Exiting!

same as mentioned here

but node -v says: v20.15.0

isAAAc commented 3 days ago
root@krashboyz:~# ls -lah /var/www/mastodon/live/public/packs/css/
total 448K
drwxrwx---+ 2 mastodon www-data 4.0K May 29 14:28 .
drwxrwx---+ 6 mastodon www-data 4.0K May 29 14:28 ..
-rw-rw----+ 1 mastodon www-data  42K Mar 12 00:39 contrast-ffdc2fd9.chunk.css.br
-rw-rw----+ 1 mastodon www-data  99K Mar 12 00:39 contrast-ffdc2fd9.chunk.css.map.br
-rw-rw----+ 1 mastodon www-data  42K Mar 12 00:39 default-df299a32.chunk.css.br
-rw-rw----+ 1 mastodon www-data  98K Mar 12 00:39 default-df299a32.chunk.css.map.br
-rw-rw----+ 1 mastodon www-data 3.8K Mar 12 00:39 mailer-47e61cac.chunk.css.map.br
-rw-rw----+ 1 mastodon www-data  43K Mar 12 00:39 mastodon-light-7cb52d19.chunk.css.br
-rw-rw----+ 1 mastodon www-data 102K Mar 12 00:39 mastodon-light-7cb52d19.chunk.css.map.br
root@krashboyz:~# cd /var/www/mastodon/live && sudo -u mastodon RAILS_ENV=production PATH=$PATH:/opt/rbenv/versions/mastodon/bin  bin/bundle exec rails assets:precompile
rbenv: version `3.2.3' is not installed (set by /var/www/mastodon/live/.ruby-version)

EDIT: (but i'm not on testing branch)

isAAAc commented 1 day ago

link to #429