admin plugin fetch seems to crash on fresh install #2087

Closed
clst opened this Issue Feb 18, 2014 · 7 comments

Comments

Projects
None yet
3 participants
@clst

clst commented Feb 18, 2014

I just set up etherpad-lite on my new Debian 7 Server and went to install some plugins.

When opening the plugin page I get only the installed plugin list, then after a few seconds it seems to crash.
LOG:

npm http 200 https://registry.npmjs.org/-/all/since?stale=update_after&startkey=1392741900751
[2014-02-18 17:49:07.426] [ERROR] console - TypeError: Object.keys called on non-object
    at Function.keys (native)
    at stripData (/usr/local/share/etherpad-lite/src/node_modules/npm/lib/search.js:89:28)
    at Array.map (native)
    at filter (/usr/local/share/etherpad-lite/src/node_modules/npm/lib/search.js:73:6)
    at /usr/local/share/etherpad-lite/src/node_modules/npm/lib/search.js:63:21
    at /usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:89:14
    at /usr/local/share/etherpad-lite/src/node_modules/graceful-fs/graceful-fs.js:95:5
    at Object.oncomplete (fs.js:107:15)
[2014-02-18 17:49:07.426] [INFO] console - graceful shutdown...
@williamoverstreet

This comment has been minimized.

Show comment Hide comment
@williamoverstreet

williamoverstreet Feb 20, 2014

I had the same issue under CentOS 6.4 / node 0.10.26 / npm 1.4.3

I commented out line 89 from etherpad-lite/src/node_modules/npm/lib/search.js
//, version: Object.keys(data.versions)[0] || []

seems to have temporarly resolved the issue letting me play with it more.

I had the same issue under CentOS 6.4 / node 0.10.26 / npm 1.4.3

I commented out line 89 from etherpad-lite/src/node_modules/npm/lib/search.js
//, version: Object.keys(data.versions)[0] || []

seems to have temporarly resolved the issue letting me play with it more.

@clst

This comment has been minimized.

Show comment Hide comment
@clst

clst Feb 21, 2014

Maybe this is an npm bug... I did not have time to look further. But etherpad crashing was a bit weird.
Manual plugin installation works fine btw.

clst commented Feb 21, 2014

Maybe this is an npm bug... I did not have time to look further. But etherpad crashing was a bit weird.
Manual plugin installation works fine btw.

@marcelklehr

This comment has been minimized.

Show comment Hide comment
@marcelklehr

marcelklehr Feb 26, 2014

Owner

Npm is up-to-date now, pls test again

Owner

marcelklehr commented Feb 26, 2014

Npm is up-to-date now, pls test again

@clst

This comment has been minimized.

Show comment Hide comment
@clst

clst Feb 27, 2014

Works great. Now I seem to get this warning (I guess it's harmless)

[2014-02-27 11:37:13.320] [WARN] pluginfw - /usr/local/share/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/npm-registry-client requires semver@'^2.2.1' but will load
/usr/local/share/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/semver,
which is version 2.2.1 'unmet dependency'

[2014-02-27 11:37:13.513] [INFO] console - Installed plugins: ep_adminpads, ep_etherpad-lite, ep_syntaxhighlighting
[2014-02-27 11:37:13.523] [INFO] console - Your Etherpad git version is 6940106

$ npm ls semver
/usr/local/share/etherpad-lite
├─┬ ep_adminpads@0.0.5
│ └─┬ log4js@0.6.10
│   └── semver@1.1.4
└─┬ ep_etherpad-lite@1.3.0 -> /usr/local/share/etherpad-lite/src
  ├─┬ log4js@0.6.6
  │ └── semver@1.1.4
  ├─┬ npm@1.4.4
  │ └── semver@2.2.1
  └── semver@1.0.13

$ npm -g ls semver
/usr/local/lib
└─┬ npm@1.4.4
  └── semver@2.2.1

clst commented Feb 27, 2014

Works great. Now I seem to get this warning (I guess it's harmless)

[2014-02-27 11:37:13.320] [WARN] pluginfw - /usr/local/share/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/npm-registry-client requires semver@'^2.2.1' but will load
/usr/local/share/etherpad-lite/node_modules/ep_etherpad-lite/node_modules/npm/node_modules/semver,
which is version 2.2.1 'unmet dependency'

[2014-02-27 11:37:13.513] [INFO] console - Installed plugins: ep_adminpads, ep_etherpad-lite, ep_syntaxhighlighting
[2014-02-27 11:37:13.523] [INFO] console - Your Etherpad git version is 6940106

$ npm ls semver
/usr/local/share/etherpad-lite
├─┬ ep_adminpads@0.0.5
│ └─┬ log4js@0.6.10
│   └── semver@1.1.4
└─┬ ep_etherpad-lite@1.3.0 -> /usr/local/share/etherpad-lite/src
  ├─┬ log4js@0.6.6
  │ └── semver@1.1.4
  ├─┬ npm@1.4.4
  │ └── semver@2.2.1
  └── semver@1.0.13

$ npm -g ls semver
/usr/local/lib
└─┬ npm@1.4.4
  └── semver@2.2.1

@clst

This comment has been minimized.

Show comment Hide comment
@clst

clst Feb 27, 2014

looks like I spoke too soon. It worked once. Now I get:

npm WARN Building the local index for the first time, please be patient
npm http GET https://registry.npmjs.org/-/all
npm http 200 https://registry.npmjs.org/-/all
[2014-02-27 12:39:44.413] [ERROR] console - RangeError: Invalid array length
    at /usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:93:15
    at Array.forEach (native)
    at /usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:92:26
    at cb (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:26:9)
    at RegClient.<anonymous> (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:101:16)
    at cb (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:124:9)
    at RegClient.<anonymous> (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:12)
    at Request.self.callback (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/request/request.js:123:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/request/request.js:893:14)
[2014-02-27 12:39:44.413] [INFO] console - graceful shutdown...
[2014-02-27 12:39:44.414] [INFO] console - db sucessfully closed.
RESTART!

clst commented Feb 27, 2014

looks like I spoke too soon. It worked once. Now I get:

npm WARN Building the local index for the first time, please be patient
npm http GET https://registry.npmjs.org/-/all
npm http 200 https://registry.npmjs.org/-/all
[2014-02-27 12:39:44.413] [ERROR] console - RangeError: Invalid array length
    at /usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:93:15
    at Array.forEach (native)
    at /usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/get.js:92:26
    at cb (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:26:9)
    at RegClient.<anonymous> (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:101:16)
    at cb (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:124:9)
    at RegClient.<anonymous> (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/npm-registry-client/lib/request.js:268:12)
    at Request.self.callback (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/request/request.js:123:22)
    at Request.EventEmitter.emit (events.js:98:17)
    at Request.<anonymous> (/usr/local/share/etherpad-lite/src/node_modules/npm/node_modules/request/request.js:893:14)
[2014-02-27 12:39:44.413] [INFO] console - graceful shutdown...
[2014-02-27 12:39:44.414] [INFO] console - db sucessfully closed.
RESTART!
@marcelklehr

This comment has been minimized.

Show comment Hide comment
@marcelklehr

marcelklehr Feb 27, 2014

Owner

please try this npm/npm#3318 (comment)

Owner

marcelklehr commented Feb 27, 2014

please try this npm/npm#3318 (comment)

@clst

This comment has been minimized.

Show comment Hide comment
@clst

clst Feb 27, 2014

the content of ~/.npm/-/all/.cache.json was "[]" (2 bytes)
I deleted it and now it updated fine again. Now every access to the plugin page is really fast.

Thanks for the help.

clst commented Feb 27, 2014

the content of ~/.npm/-/all/.cache.json was "[]" (2 bytes)
I deleted it and now it updated fine again. Now every access to the plugin page is really fast.

Thanks for the help.

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