Skip to content

Javascript error after image upgrade #124

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

Closed
Dagur opened this issue Feb 21, 2021 · 18 comments
Closed

Javascript error after image upgrade #124

Dagur opened this issue Feb 21, 2021 · 18 comments

Comments

@Dagur
Copy link

Dagur commented Feb 21, 2021

linuxserver.io

Pulled a new image and now the UI is broken


Expected Behavior

Successful upgrade

Current Behavior

Error in http://192.168.88.56:6789/combined.js?lib/jquery.min.js+lib/bootstrap.min.js+lib/raphael.min.js+lib/elycharts.min.js+fasttable.js+index.js+util.js+downloads.js+edit.js+status.js+messages.js+history.js+upload.js+config.js+feed.js (line 8727)
Uncaught TypeError: Cannot read property 'length' of undefined

Steps to Reproduce

  1. Stop docker image
  2. rm docker image
  3. dockre pull linuxserver/nzbget
  4. run docker image

Environment

OS: raspi
CPU architecture: arm64 (armhf)
How docker service was installed:

Distro repo

Command used to create docker container (run/create/compose/screenshot)

$ docker pull linuxserver/nzbget

$ docker run -d --name="nzbget" --restart=always -v /home/sabuser/nzbget:/config -v /home/sabuser/downloads:/downloads -v /etc/localtime:/etc/localtime:ro -p 6789:6789 -e PUID=1003 -e PGID=1003  linuxserver/nzbget

Docker logs

n/a

Sonarr can't communicate with nzbget anymore either:

Unable to communicate with nzbget. Unable to connect to NzbGet. Error getting response stream (ReadDoneAsync2): ReceiveFailure: 'http://192.168.88.56:6789/jsonrpc'
@github-actions
Copy link

Thanks for opening your first issue here! Be sure to follow the bug or feature issue templates!

@Dagur
Copy link
Author

Dagur commented Feb 22, 2021

I'm just guessing, but it might have something to do with this nzbget/nzbget#736

I pulled an older image and everything works fine now.

@U8208306949
Copy link

I too am receiving something similar since docker update on rPi (armhf). Docker images till v21.0-ls70 and before working fine, later images throw following error:

_Error in http://192.168.99.103:6789/combined.js?lib/jquery.min.js+lib/bootstrap.min.js+lib/raphael.min.js+lib/elycharts.min.js+fasttable.js+index.js+util.js+downloads.js+edit.js+status.js+messages.js+history.js+upload.js+config.js+feed.js (line 3488)

Uncaught TypeError: Cannot read property 'length' of undefined_

@tobbenb
Copy link
Member

tobbenb commented Mar 3, 2021

Might help if you supply full container logs. We do ask for it for a reason.

@Dagur
Copy link
Author

Dagur commented Mar 3, 2021

It was empty for me

@tobbenb
Copy link
Member

tobbenb commented Mar 3, 2021

docker logs containername doesn't provide any output? Then your container shouldn't be running.

@Dagur
Copy link
Author

Dagur commented Mar 3, 2021

There were no errors. I could see the startup info

@tobbenb
Copy link
Member

tobbenb commented Mar 3, 2021

This is the last time I ask for the container log. If you can't supply it, I'm closing the issue.

@Dagur
Copy link
Author

Dagur commented Mar 3, 2021

I'll do it for you

@Dagur Dagur closed this as completed Mar 3, 2021
@Roxedus
Copy link
Member

Roxedus commented Mar 3, 2021

The reason we ask, is because what you might brush of as nothing, might be the key to solving this.

@Dagur
Copy link
Author

Dagur commented Mar 3, 2021

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing...
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing...


      _         ()
     | |  ___   _    __
     | | / __| | |  /  \ 
     | | \__ \ | | | () |
     |_| |___/ |_|  \__/

Brought to you by linuxserver.io

To support the app dev(s) visit:
NZBGet: https://nzbget.net/donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/

GID/UID

User uid: 1003
User gid: 1003

[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing...
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-files: executing...
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[INFO] nzbget 21.0 server-mode
[INFO] nzbget 21.0 server-mode
[INFO] nzbget 21.0 server-mode
[INFO] nzbget 21.0 server-mode
[INFO] nzbget 21.0 server-mode

Each time I try to access the web view I get

Communication error!
Invalid Status: 502

in the browser and a new

[INFO] nzbget 21.0 server-mode

line is added to the log

@Dagur Dagur reopened this Mar 3, 2021
@Dagur
Copy link
Author

Dagur commented Mar 3, 2021

{
"version" : "1.1",
"error" : {
"name" : "JSONRPCError",
"code" : 1,
"message" : "Invalid procedure"
}
}

if I try to access /jsonrpc

and

[INFO] nzbget 21.0 server-mode

line is added to the log

@Roxedus
Copy link
Member

Roxedus commented Mar 3, 2021

Just to cover our bases, does date in the container result in a reasonable time?

@Dagur
Copy link
Author

Dagur commented Mar 4, 2021

dagur@raspberrypi:~ $ date
Thu Mar 4 19:04:23 GMT 2021
dagur@raspberrypi:~ $ docker exec -it nzbget bash
root@37ef8f94bfa4:/# date
Thu Mar 4 19:04:31 GMT 2021

@H34dl3ss
Copy link

I see the same issue with the update I pulled today.

[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] 01-envfile: executing... 
[cont-init.d] 01-envfile: exited 0.
[cont-init.d] 10-adduser: executing... 
usermod: no changes
-------------------------------------
          _         ()
         | |  ___   _    __
         | | / __| | |  /  \ 
         | | \__ \ | | | () |
         |_| |___/ |_|  \__/

brought to you by linuxserver.io
-------------------------------------
To support the app dev(s) visit:
NZBGet: https://nzbget.net/donate

To support LSIO projects visit:
https://www.linuxserver.io/donate/
-------------------------------------
GID/UID
-------------------------------------
User uid:    1000
User gid:    100
-------------------------------------
[cont-init.d] 10-adduser: exited 0.
[cont-init.d] 30-config: executing... 
[cont-init.d] 30-config: exited 0.
[cont-init.d] 99-custom-files: executing... 
[custom-init] no custom files found exiting...
[cont-init.d] 99-custom-files: exited 0.
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[INFO] nzbget 21.0 server-mode

When trying to access the webinterface I get:

Communication error!
Cannot establish connection to NZBGet.

With regard to the "bases":
$ date
Mi 10. Mär 22:33:36 CET 2021

Using Firefox 86

On my other PC, the webinterface switched to a more verbose failure message after some time.
If I manage to reproduce it, I will come back and add it to this post.

If I can assist with other information, don't hesitate to ask.

@github-actions
Copy link

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@Roxedus
Copy link
Member

Roxedus commented Apr 12, 2021

#130 should fix this. Let me know if it didn't

@Roxedus Roxedus closed this as completed Apr 12, 2021
Copy link

This issue is locked due to inactivity

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants