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

500 error when loading js asset #17844

Closed
nerdoc opened this issue Jul 30, 2021 · 3 comments
Closed

500 error when loading js asset #17844

nerdoc opened this issue Jul 30, 2021 · 3 comments
Labels
answered For when a question was asked and we referred to forum or answered it.

Comments

@nerdoc
Copy link

nerdoc commented Jul 30, 2021

Using Matomo version 4.3.1

I wanted to update Matomo, but after the klick on te update link and login, the Dashboard stays empty.

Expected Behavior

Matomo should load normally and load widgets - or update.

Current Behavior

After login, Matomo shows an empty page:
grafik
In the browser console it says:
GET https://analytics.nerdocs.at/index.php?module=Proxy&action=getCoreJs&cb=556b45688935c0968089623b67ce77c5
grafik

on the CLI, a console core:update tells me that everything is up to date. diagnostics:run tells me that some files are missing, but only files like

Missing file: /var/www/virtual/nerdoc/analytics.nerdocs.at/core/Updates/0.2.10.php                                                                                                      
Missing file: /var/www/virtual/nerdoc/analytics.nerdocs.at/core/Updates/0.2.12.php                                                                                                      
Missing file: /var/www/virtual/nerdoc/analytics.nerdocs.at/core/Updates/0.2.13.php     
...

500 error page says:

The ui asset with 'href' = ...node_modules/angular-cookies/angular-cookies.min.js is not readable

Possible Solution

I went into node_modules/angular-cookies and did a

wget https://raw.githubusercontent.com/angular/bower-angular-cookies/master/angular-cookies.min.js

So I downloaded a current js file from that as workaround. And promptly, Matomo worked again.

But why was this directory empty? BTW, node_modules/angular-mocks is empty too. But that's probably ok.

Steps to Reproduce (for Bugs)

Context

Trying to make an upgrade to 4.4.0, as the link in the upgrade mail says.

  • Matomo Version: 4.3.1
  • PHP Version: PHP 7.3.29
  • Server Operating System: CentOS (Uberspace.de)
  • Additionally installed plugins:
    no I know of.
  • Browser: Firefox/Linux
  • Operating System: Manjaro Linux
@nerdoc nerdoc added the Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. label Jul 30, 2021
@nerdoc nerdoc changed the title 500 error when loading asset 500 error when loading js asset Jul 30, 2021
@nerdoc
Copy link
Author

nerdoc commented Jul 30, 2021

FYI: Upgrade went well after this workaround.

@tsteur
Copy link
Member

tsteur commented Aug 1, 2021

angular-mocks should usually have a few files too but they might not be used. It sounds like during the last update something went wrong somehow or maybe someone deleted some files on the server by accident? Someone deleting files could be the case if it was working initially after the previous update and then now stopped working.

Great that it worked after this update. I'll close this error for now but feel free to comment if this happens again and we'll reopen it.

@tsteur tsteur closed this as completed Aug 1, 2021
@tsteur tsteur added answered For when a question was asked and we referred to forum or answered it. and removed Potential Bug Something that might be a bug, but needs validation and confirmation it can be reproduced. labels Aug 1, 2021
@nerdoc
Copy link
Author

nerdoc commented Aug 2, 2021

No, noone changed anything besides me in this Server, and i wasn't logged in since last update. So must:be been an error during update. Can't give more info as it already is done... I'll reopen if after next update sth. similar happens.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered For when a question was asked and we referred to forum or answered it.
Projects
None yet
Development

No branches or pull requests

2 participants