Mantis Bugtracker
  

Viewing Issue Advanced Details Jump to Notes ] View Simple ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004900 [Resin] minor always 12-20-11 17:19 12-21-11 16:05
Reporter alex View Status public  
Assigned To ferg
Priority normal Resolution fixed Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.25 Product Version 4.0.24
  Product Build
Summary 0004900: 4.0.24
Description defining setuid_user in resin.properties breaks port binding for server-multi

see also:http://forum.caucho.com/newreply.php?do=newreply&noquote=1&p=34569 [^]

I should be able to change the http port for each of my servers defined in resin.properties, and use server-multi to set them up. Well, using the config below this is failing.

-------------resin.properties snip ---------------
setuid_user : orion
setuid_group : orion

app_tier : 192.168.2.252:6800 192.168.2.252:6801

http : 8080
app-0.http : 10880
app-1.http : 10881

--------------- end resin.properties snip ---------------

and here is the relevant part from the resin.xml file

---------- resin.xml snip -------------------------
<cluster id="app_tier">

<!-- sets the content root for the cluster, relative to resin.root -->
<root-directory>.</root-directory>

<!-- define the servers in the cluster -->
<server-multi id-prefix="app-" address-list="${app_tier}" port="6800" >
<http port="${rvar('http')}" />
<http port="${rvar('https')}">
<jsse-ssl self-signed-certificate-name="resin@localhost"/>
</http>
</server-multi>
...
</cluster>

I start the first server using this (yes I contrarily started app-1 before app-0, and yes I tried it the other way too with app-0 first and it made no difference) :

java -jar /home/orion/clusterResins/latest_resin/lib/resin.jar -resin-home /home/orion/resinB -log-directory /home/orion/resinB/log/ -root-directory /home/orion/resinB -server app-1 start

This part went well and I see my' hello world' at 192.168.2.252:10881/ . I then started the second serer with the following command :

java -jar /home/orion/clusterResins/latest_resin/lib/resin.jar -resin-home /home/orion/resin -log-directory /home/orion/resin/log/ -root-directory /home/orion/resin -server app-0 start

and although the start command rendered :

Resin/4.0.24 started -server 'app-0' for watchdog at 127.0.0.1:6600

the watchdog.log showed this :
[2011/12/16 14:29:13.402] {watchdog-app-1} WatchdogChild[app-1] starting
[2011/12/16 14:29:13.420] {watchdog-app-1} Watchdog starting Resin[app-1]
[2011/12/16 14:29:45.718] {watchdog-app-0} WatchdogChild[app-0] starting
[2011/12/16 14:29:45.731] {watchdog-app-0} Watchdog starting Resin[app-0]
[2011/12/16 14:29:50.863] {watchdog-app-0} java.io.IOException: Socket bind failed for null:10881 while running as orion. Check for other processes listening to the port and check for permissions (root on unix).
at com.caucho.vfs.JniServerSocketImpl.<init>(JniServe rSocketImpl.java:65)
at com.caucho.vfs.JniServerSocketImpl.create(JniServe rSocketImpl.java:147)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.caucho.vfs.QJniServerSocket.createJNI(QJniServ erSocket.java:146)
at com.caucho.network.listen.TcpSocketLinkListener.bi ndForWatchdog(TcpSocketLinkListener.java:1155)
at com.caucho.boot.WatchdogChildProcess.createProcess (WatchdogChildProcess.java:497)
at com.caucho.boot.WatchdogChildProcess.run(WatchdogC hildProcess.java:189)
at com.caucho.boot.WatchdogChildTask.run(WatchdogChil dTask.java:219)
at com.caucho.env.thread.ResinThread.runTasks(ResinTh read.java:164)
at com.caucho.env.thread.ResinThread.run(ResinThread. java:130)
[2011/12/16 14:29:50.866] {watchdog-app-0} com.caucho.config.ConfigException: <user-name> requires compiled JNI.
at com.caucho.boot.WatchdogChildProcess.createProcess (WatchdogChildProcess.java:548)
at com.caucho.boot.WatchdogChildProcess.run(WatchdogC hildProcess.java:189)
at com.caucho.boot.WatchdogChildTask.run(WatchdogChil dTask.java:219)
at com.caucho.env.thread.ResinThread.runTasks(ResinTh read.java:164)
at com.caucho.env.thread.ResinThread.run(ResinThread. java:130)
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0005666)
ferg
12-21-11 16:05

server/4347
 

- Issue History
Date Modified Username Field Change
12-20-11 17:19 alex New Issue
12-21-11 16:05 ferg Note Added: 0005666
12-21-11 16:05 ferg Assigned To  => ferg
12-21-11 16:05 ferg Status new => closed
12-21-11 16:05 ferg Resolution open => fixed
12-21-11 16:05 ferg Fixed in Version  => 4.0.25


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