Mantis Bugtracker
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004937 [Resin] minor always 01-25-12 16:33 03-28-12 11:44
Reporter rickHigh View Status public  
Assigned To alex
Priority normal Resolution fixed  
Status closed   Product Version
Summary 0004937: Ubuntu/debian install fails to run resin (resin is an unknown user)
Description
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

Additional Information [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
Attached Files

- Relationships

- 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
 

- Issue History
Date Modified Username Field Change
01-25-12 16:33 rickHigh New Issue
01-25-12 16:47 rickHigh Note Added: 0005679
01-25-12 16:51 rickHigh Note Added: 0005680
01-25-12 22:02 rickHigh Note Added: 0005681
03-28-12 11:43 alex Status new => assigned
03-28-12 11:43 alex Assigned To  => alex
03-28-12 11:44 alex Status assigned => closed
03-28-12 11:44 alex Note Added: 0005721
03-28-12 11:44 alex Resolution open => fixed
03-28-12 11:44 alex Fixed in Version  => 4.0.27


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
35 total queries executed.
29 unique queries executed.
Powered by Mantis Bugtracker