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

Maximum call stack size exceeded with relative big registry #258

Closed
jjlorenzo opened this issue May 27, 2015 · 3 comments
Closed

Maximum call stack size exceeded with relative big registry #258

jjlorenzo opened this issue May 27, 2015 · 3 comments

Comments

@jjlorenzo
Copy link

After migrate my cumulative npm cache to sinopia, when I try to access the web interface, it crash.
The cache has 600mb and 9320 packages

$ ./node_modules/.bin/sinopia
warn --- config file - /Volumes/dataChest/distfiles/node/sinopia/config.yaml
warn --- http address - http://localhost:4873/
fatal --- uncaught exception, please report this
RangeError: Maximum call stack size exceeded
at Array.indexOf (native)
at psychoAnalyze (/Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/node_modules/minimatch/node_modules/sigmund/sigmund.js:22:19)
at sigmund (/Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/node_modules/minimatch/node_modules/sigmund/sigmund.js:35:5)
at new Minimatch (/Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/node_modules/minimatch/minimatch.js:153:35)
at Function.minimatch.makeRe (/Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/node_modules/minimatch/minimatch.js:782:10)
at Config.get_package_spec (/Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/lib/config.js:154:19)
at Auth.allow_access (/Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/lib/auth.js:132:43)
at async.filterSeries.template.name (/Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/lib/index-web.js:52:14)
at /Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/node_modules/async/lib/async.js:300:13
at iterate (/Volumes/dataChest/distfiles/node/sinopia/node_modules/sinopia/node_modules/async/lib/async.js:149:13)

rlidwka added a commit that referenced this issue May 30, 2015
@MeirionHughes
Copy link

I had this issue too, trying to cache main npm repository.

http  --> 200, req: 'GET https://registry.npmjs.org/-/all', bytes: 0/89844868
 fatal --- uncaught exception, please report this
RangeError: Maximum call stack size exceeded
    at Auth.allow_access (c:\sinopia\node_modules\sinopia\lib\auth.js:131:23)
    at c:\sinopia\node_modules\sinopia\lib\index-api.js:90:14
    at iterate (c:\sinopia\node_modules\sinopia\node_modules\async\lib\async.js:149:13)
    at c:\sinopia\node_modules\sinopia\node_modules\async\lib\async.js:160:25
    at c:\sinopia\node_modules\sinopia\lib\index-api.js:102:11
    at c:\sinopia\node_modules\sinopia\lib\auth.js:143:22
    at Object.allow_access (c:\sinopia\node_modules\sinopia\lib\auth.js:62:22)
    at next (c:\sinopia\node_modules\sinopia\lib\auth.js:141:7)
    at next (c:\sinopia\node_modules\sinopia\lib\auth.js:138:14)
    at next (c:\sinopia\node_modules\sinopia\lib\auth.js:138:14)

@rlidwka
Copy link
Owner

rlidwka commented Jun 7, 2015

Should be fixed in sinopia@1.4.0 (after commit 7c822d0), please check that out.

@rlidwka rlidwka closed this as completed Jun 7, 2015
@jjlorenzo
Copy link
Author

Fixed, Thanks.

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

No branches or pull requests

3 participants