Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 131272

Summary: www-servers/resin-3.0.12 needs to 'chown' /var/log/resin and /opt/resin/webapps folders after installation.
Product: Gentoo Linux Reporter: rajkrish <gentoo>
Component: New packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description rajkrish 2006-04-25 14:37:56 UTC
1. Install www-servers/resin-3.0.12 on amd64 with "~amd64" keyword on a machine that does not have /var/log/resin and /opt/resin folders.

2. Observe that /var/log/resin folder is created with user:group == "root:root".

3. Execute as root: /etc/init.d/resin start.  Observe the error message that says: Can't create /var/log/resin/resin_out.log.

4. Execute as root: chown -R resin:resin /var/log/resin.  Now the resin could be started.

5.  Open "http://localhost:8080/" in a web browser.  See exception that Resin was not able to create /opt/resin/webapps/ROOT/WEB-INF/tmp/ folder.

6.  Stop resin (/etc/inid.d/resin stop).  
7.  Execute as root:  chown -R resin:resin  /opt/resin/webapps/ .
8.  Now the above URL works after restarting resin.  Problem solved!

Morale of the story:  The ebuild script /usr/portage/www-servers/resin/resin-3.0.12.ebuild should execute steps 4 and 7 as post-install steps.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-04-25 14:42:03 UTC

*** This bug has been marked as a duplicate of 63246 ***