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

"grunt deploy-dev" fails #163

Closed
samreid opened this issue Jul 6, 2015 · 10 comments
Closed

"grunt deploy-dev" fails #163

samreid opened this issue Jul 6, 2015 · 10 comments

Comments

@samreid
Copy link
Member

samreid commented Jul 6, 2015

I was testing out the new grunt deploy-dev from #159 and am running into this error:

Fatal error: handle is not a Buffer

Here is my full transcript:

example-sim samreid$ cd ../chipper/
chipper samreid$ npm install
npm WARN package.json [email protected] No repository field.
chipper samreid$ cd ../example-sim/
example-sim samreid$ grunt
Running "jshint:allFiles" (jshint) task
>> 383 files lint free.

Running "clean" task

Running "set-preload" task

Running "set-third-party-licenses" task

Running "before-requirejs-build" task

Running "requirejs:build" (requirejs) task
>> RequireJS optimizer finished

/Users/samreid/github/example-sim/build/example-sim.min.js
Uncompressed size: 1741128 bytes.
Compressed size: 168125 bytes gzipped. (655762 bytes minified)

Running "after-requirejs-build" task

Done, without errors.
example-sim samreid$ grunt deploy-dev
Running "deploy-dev" task
Copying files to spot.colorado.edu...
Fatal error: handle is not a Buffer

What do you think the problem may be?

@pixelzoom
Copy link
Contributor

Did you run npm install in chipper?

@aaronsamuel137
Copy link
Contributor

What OS are you using? There is an issue I just discovered with Windows where the path is set wrong, not sure if this is related or not.

@aaronsamuel137
Copy link
Contributor

You can also try logging credentialsObject.path and let me know what the output is.

@samreid
Copy link
Member Author

samreid commented Jul 6, 2015

Did you run npm install in chipper?

Yes, see my transcript above:

example-sim samreid$ cd ../chipper/
chipper samreid$ npm install
npm WARN package.json [email protected] No repository field.

I'm running OS X Yosemite 10.10.2 and my npm version is 1.4.28

samreid$ npm --version
1.4.28

@samreid
Copy link
Member Author

samreid commented Jul 6, 2015

Here is my credentialsObject:

{ host: 'spot.colorado.edu',
  username: 'REDACTED',
  password: 'REDACTED',
  path: '/htdocs/physics/phet/dev/html/example-sim/1.0.0-dev.6/' 
}

@samreid
Copy link
Member Author

samreid commented Jul 6, 2015

Perhaps I need to bump up the version number, since 1.0.0-dev.6 already exists?

@samreid
Copy link
Member Author

samreid commented Jul 6, 2015

I tried using grunt bump-version and it appears broken, see #164, I'll do it manually instead.

@samreid
Copy link
Member Author

samreid commented Jul 6, 2015

After updating the version, this problem disappeared. Can @aaronsamuel137 detect this error condition and provide a helpful console message, since it is likely to happen again?

@aaronsamuel137
Copy link
Contributor

Looks like there is a pull request in scp2 already to address this issue: spmjs/node-scp2#32. Perhaps I can add a try catch in our code as a workaround for now.

@pixelzoom pixelzoom changed the title Fatal error: handle is not a Buffer during grunt deploy-dev Fatal error: handle is not a Buffer during "grunt deploy-dev" Aug 3, 2015
@pixelzoom pixelzoom changed the title Fatal error: handle is not a Buffer during "grunt deploy-dev" "grunt deploy-dev" fails Aug 3, 2015
@aaronsamuel137
Copy link
Contributor

deploy-dev has been redone with commandline scp, and seems to work. Closing. Feel free to reopen if it isn't working for you.

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

3 participants