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

[bug]: Docker js-contoller update from 7.0.2 to 7.0.x fails - SyntaxError: JSON Parse error: Unrecognized token '<' #2988

Closed
1 task done
FlySmack opened this issue Dec 9, 2024 · 3 comments
Labels

Comments

@FlySmack
Copy link

FlySmack commented Dec 9, 2024

No existing issues.

  • There is no existing issue for my problem.

Description

Running as docker container. When updating js-controller this error occurs:
SyntaxError: JSON Parse error: Unrecognized token '<'
Happens since 7.0.3 (7.0.2 is the actual installed version)
Screenshot 2024-12-09 at 06 56 05

Reproduction instruction

No response

JS-controller version

7.0.2

Node version

v20.18.1

@foxriver76 foxriver76 changed the title [bug]: js-contoller update from 7.0.2 to 7.0.x fails - SyntaxError: JSON Parse error: Unrecognized token '<' [bug]: Docker js-contoller update from 7.0.2 to 7.0.x fails - SyntaxError: JSON Parse error: Unrecognized token '<' Dec 9, 2024
foxriver76 added a commit that referenced this issue Dec 9, 2024
as for non systemd systems the process is already running as correct user
- likely closes #2988
@mcm1957
Copy link
Contributor

mcm1957 commented Dec 27, 2024

Siehe ev. #2964

@FlySmack
Copy link
Author

The manual procedure was working. Thanks a lot.

@TheMoonlightkid
Copy link

Hi,
ich habe es bei mir wie folgt lösen können (ioBroker läuft bei mir im Docker auf einer Synology DS):

Zuerst ins Dockervezeichnis, bei mir
/volume1/docker/iobroker_data/
Dann die JSON-Dateien prüfen, ob fehlerhaft

jq empty package.json
jq empty package-lock.json

ioBroke stoppen und als Benutzer iobroker anmelden, das Update starten,

su - iobroker
npm install [email protected] --production

IoBroker neu starten. Das war es bei mir und es läuft :)

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

Successfully merging a pull request may close this issue.

3 participants