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

Not working on Fedora 20 #44

Closed
ghost opened this issue Sep 29, 2014 · 7 comments
Closed

Not working on Fedora 20 #44

ghost opened this issue Sep 29, 2014 · 7 comments

Comments

@ghost
Copy link

ghost commented Sep 29, 2014

Hi there,

Installing Prey 1.2.5 on fedora 20 (3.16.3-200) via npm is not working. Depencies are installed, running "npm install -g prey" produces the following error:

usr/bin/prey -> /usr/lib/node_modules/prey/bin/prey

[email protected] postinstall /usr/lib/node_modules/prey
./bin/prey config hooks post_install

Creating user prey...
prey user already exists!
Giving prey user passwordless sudo priviledges...
Creating config dir: /etc/prey
Touching log file: /var/log/prey.log
Setting permissions on /usr/lib/node_modules/prey
Setting permissions on /etc/prey
Setting permissions on /var/log/prey.log

Running "config activate" as prey

Ensuring presence of config dir: /etc/prey
Syncing /etc/prey/prey.conf with /usr/lib/node_modules/prey/prey.conf.default
No versions support.

Voila! All good.

Installing init scripts.
Error! Command failed: Fehler beim Lesen der Informationen über den Dienst prey-agent: Datei oder Verzeichnis nicht gefunden

[email protected] preuninstall /usr/lib/node_modules/prey
./bin/prey config hooks pre_uninstall

Error! Command failed: Fehler beim Lesen der Informationen über den Dienst prey-agent: Datei oder Verzeichnis nicht gefunden

npm WARN continuing anyway undefined
npm ERR! weird error 1
npm ERR! not ok code 0

@tomas
Copy link
Contributor

tomas commented Sep 29, 2014

Oops, looks like we're having trouble setting up the daemon. What daemon/init system does Fedora 20 use? What commands are needed to a) check the existence, b) create and c) remove a system daemon?

Thanks for the heads up, by the way.

@tomas
Copy link
Contributor

tomas commented Oct 1, 2014

I made good progress today on this. I'll keep you posted once I have tested more thoroughly.

@ghost
Copy link
Author

ghost commented Oct 3, 2014

Sorry, didn't read any comments the past few days. Thank you, sounds great that you made progress. Do you still need any informations?

@tomas
Copy link
Contributor

tomas commented Oct 3, 2014

No, actually, yesterday I pushed 1.2.7 which includes a number of fixes to the daemon script installation. Try doing an npm install -g [email protected] and see if it works!

@tomas
Copy link
Contributor

tomas commented Oct 9, 2014

Any luck? :)

@ghost
Copy link
Author

ghost commented Oct 13, 2014

Thanks, I had to reinstall node nodejs and npm. Unfortunately, there is a repo based failure, so npm installation looks not complete... So I had to manually install some nodejs-* packages.
npm/npm#3724

After that, the installation looks sucessfull, these are the only WARNings fomr npm:
npm WARN unmet dependency /usr/lib/node_modules/block-stream requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-ignore requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/fstream-npm requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/glob requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/npmconf requires inherits@'~2.0.0' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined
npm WARN unmet dependency /usr/lib/node_modules/tar requires inherits@'2' but will load
npm WARN unmet dependency undefined,
npm WARN unmet dependency which is version undefined

But it looks like it works... Thank you!

@tomas
Copy link
Contributor

tomas commented Oct 13, 2014

Awesome! Closing this ticket then.

@tomas tomas closed this as completed Oct 13, 2014
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

1 participant