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

Total crash on Windows 7. #138

Open
tswaters opened this issue Oct 2, 2014 · 3 comments
Open

Total crash on Windows 7. #138

tswaters opened this issue Oct 2, 2014 · 3 comments

Comments

@tswaters
Copy link

tswaters commented Oct 2, 2014

Hi there. I had some trouble installing sinopia under windows, a few build errors relating to fs-ext and crypt3, EOENT stuff, etc. but after a few tries it seems to go and I can start it.

However, it fails when attempting to publish.... following are the commands I ran :

C:\>mkdir test-node-module && cd test-node-module

C:\test-node-module>npm set registry http://localhost:4873/

C:\test-node-module>npm adduser
Username: admin
Password: 
Email: (this IS public) (tyler.waters@gmail.com)
npm http PUT http://localhost:4873/-/user/org.couchdb.user:admin
npm http 409 http://localhost:4873/-/user/org.couchdb.user:admin
npm http GET http://localhost:4873/-/user/org.couchdb.user:admin?write=true
npm http 200 http://localhost:4873/-/user/org.couchdb.user:admin?write=true
npm http PUT http://localhost:4873/-/user/org.couchdb.user:admin/-rev/undefined
npm http 201 http://localhost:4873/-/user/org.couchdb.user:admin/-rev/undefined

C:\test-node-module>npm init   # pressed return a few times for all the defaults

C:\test-node-module>npm publish <-- this crashes sinopia

The node.exe process ends unexpectedly, there is no errors returned. this is what appears in the other cmd prompt:

C:\>mkdir sinopia && cd sinopia

C:\sinopia>sinopia
Config file doesn't exist, create a new one? (Y/n) y
===========================================================
 Creating a new configuration file: "./config.yaml"

 If you want to setup npm to work with this registry,
 run following commands:

 $ npm set registry http://localhost:4873/
 $ npm set always-auth true
 $ npm adduser
   Username: admin
   Password: snip
===========================================================
 warn  --- Server is listening on http://localhost:4873/
 http  <-- 409, user: undefined, req: 'PUT /-/user/org.couchdb.user:admin', error: bad username/password, access denied
 http  <-- 200, user: undefined, req: 'GET /-/user/org.couchdb.user:admin?write=true', bytes: 0/52
 http  <-- 201, user: admin, req: 'PUT /-/user/org.couchdb.user:admin/-rev/undefined', bytes: 210/48
 http  --> 404, req: 'GET https://registry.npmjs.org/test-node-module', bytes: 0/52

C:\sinopia>echo %ERRORLEVEL%
-1073740777

C:\sinopia>dir storage /b
test-node-module

The hex code for that error is 0xC0000417 according to msdn docs is STATUS_INVALID_CRUNTIME_PARAMETER, An invalid parameter was passed to a C runtime function.

The 'test-node-module' directory does make it's way into the 'storage' directory -- subsequent calls to publish (after restarting sinopia) fail with the following returned:

npm ERR! Error: this tarball is already present : test-node-module

Also,

C:\>node --version
v0.10.28

C:\>npm --version
1.4.9

C:\>sinopia --version
0.12.0
@tswaters tswaters changed the title Total crash on Windows. Total crash on Windows 7. Oct 2, 2014
@simonhoss
Copy link

I have the same problem. Any Solution?

@simonhoss
Copy link

I found the problem.
The problem is in fs-ext and the locking. Because locking does currently not work on windows baudehlo/node-fs-ext#30

I made a pull request that the file will not locked on windows. #154

@doublerebel
Copy link

looks like this should be closed from #154's acceptance 👍

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