Mantis - Resin
Viewing Issue Advanced Details
4937 minor always 01-25-12 16:33 03-28-12 11:44
rickHigh  
alex  
normal  
closed  
fixed  
none    
none 4.0.27  
0004937: Ubuntu/debian install fails to run resin (resin is an unknown user)

Steps to reproduce (on a fresh Ubuntu 11 64 bit Desktop):

Add Caucho's Debian repository to your system's repositories to use automated update tools like Synaptic and apt-get. To do this, add the following line to your /etc/apt/sources.list

 deb http://caucho.com/download/debian [^] unstable multiverse

Then install Resin as follows:

$ sudo apt-get update
$ sudo apt-get install resin-pro

[2012/01/25 16:25:54.213] {watchdog-app-0} java.lang.IllegalArgumentException: resin is an unknown user
                                               at com.caucho.bootjni.JniProcess.exec(Native Method)
                                               at com.caucho.bootjni.JniProcess.<init>(JniProcess.java:91)
                                               at com.caucho.bootjni.JniProcess.create(JniProcess.java:124)
                                               at com.caucho.bootjni.JniBoot.exec(JniBoot.java:78)
                                               at com.caucho.boot.WatchdogChildProcess.createProcess(Watchd

Notes
(0005679)
rickHigh   
01-25-12 16:47   
Looks like perhaps www-data user was created but resin user was not. The old deb install created www-data (or used the one that was already there).

No "resin"
$ cat /etc/passwd | cut -d":" -f1 | grep resin

www-data user.
$ cat /etc/passwd | cut -d":" -f1 | grep www-data
www-data

www-data


$ cat /etc/group | grep www-data
www-data:x:33:
$ cat /etc/passwd | grep www-data
www-data:x:33:33:www-data:/var/www:/bin/sh
(0005680)
rickHigh   
01-25-12 16:51   
I think all I have to do is

add user resin

sudo useradd resin

then chown /var/www and var/log/resin to resin from www-data
(0005681)
rickHigh   
01-25-12 22:02   
This not is for the person that googles this for 4.0.25 and is looking for a working solution.

$ sudo useradd resin
$ sudo chown resin /var/log/resin/
$ sudo chown resin /var/www/
$ sudo resinctl start

If all goes well....

$ resinctl status
Resin/4.0.25 status for watchdog at 127.0.0.1:6600

watchdog:
  watchdog-pid: 20790

server 'app-0' : ACTIVE
  password: missing
  watchdog-user: root
  user: resin(resin)
  root: /var/www
  conf: /etc/resin/resin.xml
  pid: 20965
  uptime: 0 days 00h00
(0005721)
alex   
03-28-12 11:44   
user:group changed to www-data:www-data