Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
sdfoersn490 opened this issue May 29, 2024 · 22 comments
Closed

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

sdfoersn490 opened this issue May 29, 2024 · 22 comments

Comments

@sdfoersn490
Copy link

sdfoersn490 commented May 29, 2024

Describe the bug

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

Context

  • Hardware: VPS bought online
  • YunoHost version: 11.2.12 (stable)
  • I have access to my server: Through SSH & through the webadmin
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
  • Using, or trying to install package version/branch: 4.2.8~ynh2

Steps to reproduce

  • *If you performed a command from the CLI, the command itself is enough.
    sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh --debug

  • *If the error occurs in your browser, explain what you did:
    All I see is this:

Bildschirmfoto 2024-05-29 um 08 53 24

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
Copy link
Author

Looks like this happened during testing too:
#449 (comment)

@Ni-Ti
Copy link

Ni-Ti commented May 29, 2024

Same issue here. :-/

@tio-trom
Copy link

Same here. I am happy that it seems a solution is on the way #449 (review) - thank you guys!

@yodahome
Copy link

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
Copy link
Author

Is there any quick fix for this? :/

@Photowalk
Copy link

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

@PraetorIM
Copy link

PraetorIM commented Jun 24, 2024

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
Copy link

isAAAc commented Jun 27, 2024

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

@panomaki
Copy link
Contributor

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
Copy link
Author

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
Copy link

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
Copy link
Contributor

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 (#341 (comment)), 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
Copy link
Author

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
Copy link

isAAAc commented Jun 28, 2024

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
Copy link

isAAAc commented Jun 30, 2024

link to #429

@PraetorIM
Copy link

Upgrading to the testing 4.2.10 release via
sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing --debug
solved the problem.

@sdfoersn490
Copy link
Author

Upgrading to the testing 4.2.10 release via sudo yunohost app upgrade mastodon -u https://github.com/YunoHost-Apps/mastodon_ynh/tree/testing --debug solved the problem.

Can confirm, upgrading to the 4.2.10 testing branch fixed the issue for me too!
Strange that 4.2.9 didn't fix it but this one did.

Not relevant for this ticket, but maybe for 4.2.10 testing: I got some warnings during the upgrade:

2024-07-05 19:29:49,331: WARNING - warning Pattern ["strip-ansi@^6.0.1"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity/node_modules/strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping.
2024-07-05 19:29:49,332: WARNING - warning Pattern ["string-width@^4.1.0"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
2024-07-05 19:29:49,332: WARNING - warning Pattern ["strip-ansi@^6.0.0"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-strip-ansi-cjs-6.0.1-9e26c63d30f53443e9489495b2105d37b67a85d9-integrity/node_modules/strip-ansi-cjs" as pattern ["strip-ansi-cjs@npm:strip-ansi@^6.0.1"]. This could result in non-deterministic behavior, skipping.
2024-07-05 19:29:49,332: WARNING - warning Pattern ["string-width@^4.2.3"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
2024-07-05 19:29:49,332: WARNING - warning Pattern ["string-width@^1.0.2 || 2 || 3 || 4"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
2024-07-05 19:29:49,332: WARNING - warning Pattern ["string-width@^4.2.0"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-string-width-cjs-4.2.3-269c7117d27b05ad2e536830a8ec895ef9c6d010-integrity/node_modules/string-width-cjs" as pattern ["string-width-cjs@npm:string-width@^4.2.0"]. This could result in non-deterministic behavior, skipping.
2024-07-05 19:29:49,333: WARNING - warning Pattern ["wrap-ansi@^7.0.0"] is trying to unpack in the same destination "/var/www/mastodon/.cache/yarn/v6/npm-wrap-ansi-cjs-7.0.0-67e145cff510a6a6984bdf1152911d69d2eb9e43-integrity/node_modules/wrap-ansi-cjs" as pattern ["wrap-ansi-cjs@npm:wrap-ansi@^7.0.0"]. This could result in non-deterministic behavior, skipping.

2024-07-05 19:29:50,483: DEBUG - [4/6] Linking dependencies...
2024-07-05 19:29:50,496: WARNING - warning " > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0-0 || ^16.0.0 || ^17.0.0".
2024-07-05 19:29:50,497: WARNING - warning " > [email protected]" has incorrect peer dependency "react@^0.14.9 || ^15.3.0 || ^16.0.0".
2024-07-05 19:29:50,497: WARNING - warning " > [email protected]" has incorrect peer dependency "react@^0.14.0 || ^15.0.0 || ^16.0.0".
2024-07-05 19:29:50,498: WARNING - warning " > [email protected]" has incorrect peer dependency "react@^15.0.0 || ^16.0.0".
2024-07-05 19:29:50,498: WARNING - warning " > [email protected]" has incorrect peer dependency "react-dom@^15.0.0 || ^16.0.0".
2024-07-05 19:29:50,499: WARNING - warning " > [email protected]" has incorrect peer dependency "react@^15.3.0 || ^16.0.0 || ^17.0.0".
2024-07-05 19:29:50,500: WARNING - warning "react-swipeable-views > react-swipeable-views-utils > [email protected]" has incorrect peer dependency "react@^16.3.0".

However, the building process was completed without any errors.

@isAAAc
Copy link

isAAAc commented Jul 6, 2024

better on firefox yes, but not on chromium : https://masto.krashboyz.org/ is still buging

@tio-trom
Copy link

tio-trom commented Jul 6, 2024

better on firefox yes, but not on chromium : https://masto.krashboyz.org/ is still buging

On my Chromium all looks good. Make sure you clear your browser's cache.

@isAAAc
Copy link

isAAAc commented Jul 6, 2024

@tio-trom : correct ! thx :)

@blindi0815
Copy link

Can confirm. Issue solved after upgrading fdrom 4.2.8 to 4.2.10-ynh1

@tio-trom
Copy link

tio-trom commented Jul 7, 2024

Same here updating to 4.2.10-ynh1 fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants