Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fpm-npm postinstall/postupdate failure #267

Closed
MarioVerbelen opened this Issue · 4 comments

3 participants

@MarioVerbelen

fpm-npm -t deb -n log.io
It will execute the postinstall script on the host system

that sounds not so good ...

> log.io@0.2.7 postinstall /home/mario/tmp/node_modules/log.io
> bin/install.sh

Symlink /bin/* to /usr/local/bin/
ln: failed to create symbolic link `/usr/local/bin/log.io-server': Permission denied
ln: failed to create symbolic link `/usr/local/bin/log.io-harvester': Permission denied
ln: failed to create symbolic link `/usr/local/bin/log.io': Permission denied
Copying server.conf to /etc/log.io/
mkdir: cannot create directory `/etc/log.io/': Permission denied
cp: cannot stat `/usr/local/lib/node_modules/log.io/etc/conf/server.conf': No such file or directory
Copying harvester.conf to /etc/log.io/
mkdir: cannot create directory `/etc/log.io/': Permission denied
cp: cannot stat `/usr/local/lib/node_modules/log.io/etc/conf/harvester.conf': No such file or directory
Creating logio user...
useradd: cannot lock /etc/passwd; try again later.
yes: standard output: Broken pipe
yes: write error
Adding logio user to 'adm' group...
usermod: user 'logio' does not exist
Creating /var/log/log.io/server.log
mkdir: cannot create directory `/var/log/log.io/': Permission denied
touch: cannot touch `/var/log/log.io/server.log': No such file or directory
chmod: cannot access `/var/log/log.io/server.log': No such file or directory
chown: invalid user: `logio:logio'
Creating /var/log/log.io/harvester.log
mkdir: cannot create directory `/var/log/log.io/': Permission denied
touch: cannot touch `/var/log/log.io/harvester.log': No such file or directory
chmod: cannot access `/var/log/log.io/harvester.log': No such file or directory
chown: invalid user: `logio:logio'
Setting up logio user environment
bin/install.sh: 59: bin/install.sh: cannot create /usr/local/lib/node_modules/log.io/home/.bashrc: Directory nonexistent
bin/install.sh: 60: bin/install.sh: cannot create /usr/local/lib/node_modules/log.io/home/.bash_profile: Directory nonexistent
bin/install.sh: 61: bin/install.sh: cannot create /usr/local/lib/node_modules/log.io/home/.profile: Directory nonexistent
Done!
log.io@0.2.7 ./node_modules/log.io 
├── underscore@1.3.3
├── connect@1.8.4 (mime@1.2.7 formidable@1.0.11 qs@0.5.1)
├── socket.io@0.9.10 (policyfile@0.0.4 redis@0.7.2)
├── socket.io-client@0.9.10 (xmlhttprequest@1.4.2 uglify-js@1.2.5 ws@0.4.21 active-x-obfuscator@0.0.1)
└── forever@0.9.2
@jordansissel
Owner

I think at the time fpm-npm was written, npm did not support post-install steps or perhaps that nobody used them ;)

@MarioVerbelen

np, I will create the package manualy

grts,

@r4um
Collaborator

fpm-npm has been dropped, see #120.

@jordansissel
Owner

fpm 0.4.33 adds npm support: fpm -s npm -t deb express

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.