Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Wget referencing to v0.10.25 even when specifying version #36

Closed
giefferre opened this issue Jan 28, 2014 · 7 comments
Closed

Wget referencing to v0.10.25 even when specifying version #36

giefferre opened this issue Jan 28, 2014 · 7 comments
Labels

Comments

@giefferre
Copy link

Hi @willdurand and thanks for you job.

I'm using latest puppet-nodejs version on a DigitalOcean VPS running Ubuntu 12.04.3 x64.

The problem is that even when referencing a different version, the stable 0.10.25 version is downloaded.

Take a look here:

Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/File[nodejs-install-dir]/ensure: created
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/File[/usr/local/node/node-v0.10.25]/ensure: created
Notice: /Stage[main]//Nodejs::Install[v0.10.20]/File[/usr/local/node/node-v0.10.20]/ensure: created
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Wget::Fetch[nodejs-download-v0.10.25]/Exec[wget-nodejs-download-v0.10.25]/returns: executed successfully
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Exec[nodejs-unpack-v0.10.25]/returns: executed successfully

Then, the process fails after a while, saying:

Error: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Package[semver]: Provider gem is not functional on this host
Notice: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/File[nodejs-symlink-bin-with-version-v0.10.25]: Dependency Package[semver] has failures: true
Warning: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/File[nodejs-symlink-bin-with-version-v0.10.25]: Skipping because of failed dependenciesNotice: /Stage[main]/Nodejs/File[/usr/local/node/node-default]: Dependency Package[semver] has failures: true

Notice: /Stage[main]/Nodejs/File[/etc/profile.d/nodejs.sh]: Dependency Package[semver] has failures: true
Notice: Finished catalog run in 677.50 seconds
Warning: /Stage[main]/Nodejs/File[/usr/local/node/node-default]: Skipping because of failed dependencies
Warning: /Stage[main]/Nodejs/File[/etc/profile.d/nodejs.sh]: Skipping because of failed dependencies

My puppet file is

include nodejs

nodejs::install { 'v0.10.20':
  version => 'v0.10.20',
  with_npm => false,
  make_install => false,
}

Same problem even when setting with_npm to true.

@grafjo
Copy link
Contributor

grafjo commented Jan 28, 2014

"Error: /Stage[main]/Nodejs/Nodejs::Install[nodejs-stable]/Package[semver]: Provider gem is not functional on this host" is a strange error ... Can you run sudo gem install semver?

@grafjo
Copy link
Contributor

grafjo commented Feb 3, 2014

@giefferre any news?

@jaykumbhani
Copy link

@giefferre @willdurand
Trying to install latest version, but getting error Error 400 on SERVER: Invalid version string ''! at /etc/puppetlabs/puppet/modules/nodejs/manifests/install.pp:165

@grafjo
Copy link
Contributor

grafjo commented Feb 5, 2014

@jaykumbhani please open a new issue and post your puppet code!

@giefferre
Copy link
Author

@grafjo sorry, I was unable to reply before now.

I'll try to check ASAP.

The problem is I would avoid manual send commands on the machine before running puppet since I'd like to provision the machine automatically

@grafjo
Copy link
Contributor

grafjo commented Feb 5, 2014

@giefferre you can also try installing it via puppet

package { 'semver':
    ensure   => installed,
    provider => gem,
}

let me know if it's working

@willdurand
Copy link
Owner

any news on this?

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

No branches or pull requests

4 participants