Mantis - Resin
Viewing Issue Advanced Details
2405 minor always 02-06-08 09:04 02-11-08 19:09
ckchris  
ferg  
normal  
closed 3.1.4  
fixed  
none    
none 3.1.5  
0002405: <access-log> path not properly read by DeployController in <host-default> config
I have multiple hosts with logs in their respective directories:

/var/vhosts/abc.com/logs
/var/vhosts/def.com/logs

I have configured my <access-log> config in host-default.

      <access-log path="logs/access.log"
          format='%h %l %u %t "%r" %s %b "%{Referer}i" "%{User-Agent}i"'
          rollover-period="1M" rollover-count="12"/>
      <stdout-log path="logs/stdout.log" rollover-size="5mb" rollover-count="4"/>
      <stderr-log path="logs/stderr.log" rollover-size="5mb" rollover-count="4"/>


This setting previously worked without any problems on 3.1.3. In subsequent <host> configurations, I set the <root-directory> to its proper location (ie. abc.com).

After upgrading to 3.1.4, I can gett the following exception:

[2008/02/06 08:59:51.987] SEVERE [com.caucho.server.deploy.DeployController] /apps/etc/resin.conf:80: java.io.IOException: Cannot create directory: /var/vhosts/bogus-root/logs

Even though I get this exception, I can still see logs being used in the proper location. However, this exception shouldn't be thrown given that the configuration is correct. <access-log> relative paths should go according to the root-directory set in <host>

Notes
(0002756)
ferg   
02-11-08 19:09   
server/2e0b