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

npm unable to update #158

Closed
ilike2burnthing opened this issue Jun 12, 2021 · 5 comments
Closed

npm unable to update #158

ilike2burnthing opened this issue Jun 12, 2021 · 5 comments
Milestone

Comments

@ilike2burnthing
Copy link
Contributor

Please use the search bar at the top of the page and make sure you are not creating an already submitted issue.
Check closed issues as well, because your issue may have already been fixed.

How to enable debug and html traces

Follow the instructions from this wiki page

Environment

  • FlareSolverr version: v1.2.8
  • Last working FlareSolverr version: v1.2.8
  • Operating system: Docker (on Asustor NAS)
  • Are you using Docker: yes
  • Are you using a proxy or VPN? no
  • Are you using Captcha Solver: yes
  • If using captcha solver, which one: hcaptcha-solver
  • URL to test this issue: N/A

Description

Noticed this in my logs on container startup. It's not causing any issue I'm aware of, and might be nothing, but given that it's an error I thought it might be worth bringing to your attention.

Logged Error Messages

FlareSolverr log:

flaresolverr@1.2.8 start
> node ./dist/index.js
2021-06-12T13:28:34+00:00 INFO FlareSolverr v1.2.8
2021-06-12T13:28:36+00:00 INFO Using 'hcaptcha-solver' to solve the captcha.
2021-06-12T13:28:45+00:00 INFO Listening on http://0.0.0.0:8191
npm notice 
npm notice New minor version of npm available! 7.0.8 -> 7.17.0
npm notice Changelog: <https://github.com/npm/cli/releases/tag/v7.17.0>
npm notice Run `npm install -g npm@7.17.0` to update!
npm notice 
npm ERR! path /home/node/flaresolverr
npm ERR! command failed
npm ERR! signal SIGTERM
npm ERR! command sh -c node ./dist/index.js
npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2021-06-12T13_30_41_204Z-debug.log
flaresolverr@1.2.8 start
> node ./dist/index.js
2021-06-12T13:34:46+00:00 INFO FlareSolverr v1.2.8
2021-06-12T13:34:50+00:00 INFO Using 'hcaptcha-solver' to solve the captcha.
2021-06-12T13:35:12+00:00 INFO Listening on http://0.0.0.0:8191

npm log:

0 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'start' ]
1 info using npm@7.0.8
2 info using node@v15.2.1
3 timing config:load:defaults Completed in 5ms
4 timing config:load:file:/usr/local/lib/node_modules/npm/npmrc Completed in 2ms
5 timing config:load:builtin Completed in 2ms
6 timing config:load:cli Completed in 5ms
7 timing config:load:env Completed in 1ms
8 timing config:load:file:/home/node/flaresolverr/.npmrc Completed in 0ms
9 timing config:load:project Completed in 15ms
10 timing config:load:file:/home/node/.npmrc Completed in 1ms
11 timing config:load:user Completed in 1ms
12 timing config:load:file:/usr/local/etc/npmrc Completed in 0ms
13 timing config:load:global Completed in 1ms
14 timing config:load:cafile Completed in 3ms
15 timing config:load:validate Completed in 1ms
16 timing config:load:setUserAgent Completed in 1ms
17 timing config:load:setEnvs Completed in 6ms
18 timing config:load Completed in 42ms
19 verbose npm-session 2d9a68e5dde49503
20 timing npm:load Completed in 95ms
21 http fetch GET 200 https://registry.npmjs.org/npm 611ms
22 timing command:run-script Completed in 128592ms
23 timing command:start Completed in 128689ms
24 notice New minor version of npm available! 7.0.8 -> 7.17.0
24 notice Changelog: <https://github.com/npm/cli/releases/tag/v7.17.0>
24 notice Run `npm install -g npm@7.17.0` to update!
25 verbose stack Error: command failed
25 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/index.js:64:27)
25 verbose stack     at ChildProcess.emit (node:events:329:20)
25 verbose stack     at maybeClose (node:internal/child_process:1055:16)
25 verbose stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5)
26 verbose pkgid flaresolverr@1.2.8
27 verbose cwd /home/node/flaresolverr
28 verbose Linux 4.14.x
29 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "start"
30 verbose node v15.2.1
31 verbose npm  v7.0.8
32 error path /home/node/flaresolverr
33 error command failed
34 error signal SIGTERM
35 error command sh -c node ./dist/index.js
36 verbose exit 1

Screenshots

N/A

@ngosang
Copy link
Member

ngosang commented Jun 13, 2021

You have to follow all install steps after each update, not just start.
https://github.com/FlareSolverr/FlareSolverr#from-source-code

@ngosang ngosang added the more information needed Further information is requested label Jun 13, 2021
@ilike2burnthing
Copy link
Contributor Author

This was just in the normal running of the Docker container, not trying to build it myself. If that's expected then it isn't an issue and can be closed, just saw the error and wasn't sure.

@ngosang
Copy link
Member

ngosang commented Jun 13, 2021

Sorry, I didn't pay enough attention.
I think Docker killed FlareSolverr for some reason but then it started again. Is it working after that?

@ilike2burnthing
Copy link
Contributor Author

Yea, everything is working fine, just for whatever reason it couldn't apply the update.

It happened after restarting my NAS, and I can repeat it by restarting the container (debug logs don't show any more detail). The error doesn't appear if I just leave the container running, it's only as it shuts down.

@ngosang ngosang added confirmed and removed more information needed Further information is requested labels Jun 13, 2021
@ngosang ngosang added this to the 1.3.0 milestone Jun 13, 2021
@ngosang ngosang modified the milestones: 1.3.0, 1.2.9 Aug 1, 2021
@ngosang ngosang closed this as completed in 4199db5 Aug 1, 2021
@ngosang
Copy link
Member

ngosang commented Aug 1, 2021

FlareSolverr v1.2.9

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

No branches or pull requests

2 participants