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

Breaks on Ubuntu 14.04 #69

Open
alexfu opened this issue Sep 20, 2015 · 2 comments
Open

Breaks on Ubuntu 14.04 #69

alexfu opened this issue Sep 20, 2015 · 2 comments

Comments

@alexfu
Copy link

alexfu commented Sep 20, 2015

On Ubuntu 14.04, I get the following...

root@f32dcd67fa99:/app# npm install sails-migrations
npm ERR! tar.unpack untar error /root/.npm/sails-migrations/2.0.7/package.tgz
npm ERR! Linux 4.0.9-boot2docker
npm ERR! argv "node" "/usr/bin/npm" "install" "sails-migrations"
npm ERR! node v0.12.7
npm ERR! npm  v3.3.3
npm ERR! path /app/node_modules/.staging/sails-migrations-8f658b2f782b7fad6532770007846687/tasks/db:status.coffee
npm ERR! code EPROTO
npm ERR! errno -71

npm ERR! EPROTO, open '/app/node_modules/.staging/sails-migrations-8f658b2f782b7fad6532770007846687/tasks/db:status.coffee'
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     /app/npm-debug.log

Turns out, I get a similar error (EPROTO) if I do the following...

root@f32dcd67fa99:/app# tar -xvf /root/.npm/sails-migrations/2.0.7/package.tgz
package/package.json
package/README.md
package/LICENSE
package/index.js
package/bin/cli.js
package/bin/run_tests.js
package/lib/sails-migrations.js
package/lib/sails-migrations/create_database.js
package/lib/sails-migrations/current_version.js
package/lib/sails-migrations/drop_database.js
package/lib/sails-migrations/errors.js
package/lib/sails-migrations/generate.js
package/lib/sails-migrations/migrate_to_latest.js
package/lib/sails-migrations/rollback.js
package/lib/sails-migrations/status.js
package/lib/sails-migrations/helpers/config_loader.js
package/lib/sails-migrations/helpers/database_tasks.js
package/lib/sails-migrations/helpers/migrator_loader.js
package/lib/sails-migrations/helpers/sails_integration.js
package/tasks/db:status.coffee
tar: package/tasks/db\:status.coffee: Cannot open: Protocol error
tar: Exiting with failure status due to previous errors

Not exactly sure why this is happening.

@stebl
Copy link

stebl commented Oct 7, 2015

Having a similar problem when trying an npm install (node 0.12.7, npm 3.3.5, ubuntu 14.04). I have the tar unpack error, but mine fails with EINVAL.

npm ERR! EINVAL, open '/media/Local/git/itcapi/node_modules/.staging/sails-migrations-10776868cb4af5e3cc3472f1500f2311/tasks/db:status.coffee'

Tried npm cache clean and manually removing the tar, no luck.

@stebl
Copy link

stebl commented Oct 8, 2015

Figured out my issue.

The file tasks/db:status.coffee is allowed on linux filesystems, but not windows ones due to the colon. My repo is stored on a drive that is shared between my windows and ubuntu installations, which has to be a windows formatted drive. So when it tries to unpack and use the file, it breaks.

Temporarily circumvented this by doing an install to my linux partition, deleting db:status.coffee, and copying the folder into the repo.

https://en.wikipedia.org/wiki/Filename

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

2 participants