Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 131272 - www-servers/resin-3.0.12 needs to 'chown' /var/log/resin and /opt/resin/webapps folders after installation.
Summary: www-servers/resin-3.0.12 needs to 'chown' /var/log/resin and /opt/resin/webap...
Status: RESOLVED DUPLICATE of bug 63246
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-04-25 14:37 UTC by rajkrish
Modified: 2006-04-25 14:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***