Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix permission issue introduced with multi-stage build #1098

Merged
merged 1 commit into from
Mar 2, 2018
Merged

Fix permission issue introduced with multi-stage build #1098

merged 1 commit into from
Mar 2, 2018

Conversation

josqu4red
Copy link

When Dockerfiles were migrated to multi-stage build (#1085), the chown nginx part was omited from the latest Dockerfile.

This prevents the latest image to run properly, crashing with such error:

[02-Mar-2018 13:53:50] WARNING: [pool www] child 18 said into stderr: "NOTICE: PHP message: PHP Fatal error:  Uncaught RainTpl_Exception: Cache directory tmp/doesn't have write p
ermission. Set write permission or set RAINTPL_CHECK_TEMPLATE_UPDATE to false. More details on http://www.raintpl.com/Documentation/Documentation-for-PHP-developers/Configuration
/ in /var/www/shaarli/inc/rain.tpl.class.php:321"
- -  02/Mar/2018:13:53:50 +0000 "GET /index.php" 500
[02-Mar-2018 13:53:50] WARNING: [pool www] child 18 said into stderr: "Stack trace:"
[02-Mar-2018 13:53:50] WARNING: [pool www] child 18 said into stderr: "#0 /var/www/shaarli/inc/rain.tpl.class.php(274): RainTPL->compileFile('linklist', NULL, 'tpl//default/li...
', 'tmp/', 'tmp/linklist.b9...')"
[02-Mar-2018 13:53:50] WARNING: [pool www] child 18 said into stderr: "#1 /var/www/shaarli/inc/rain.tpl.class.php(164): RainTPL->check_template('linklist')"
[02-Mar-2018 13:53:50] WARNING: [pool www] child 18 said into stderr: "#2 /var/www/shaarli/application/PageBuilder.php(155): RainTPL->draw('linklist')"
[02-Mar-2018 13:53:50] WARNING: [pool www] child 18 said into stderr: "#3 /var/www/shaarli/index.php(673): PageBuilder->renderPage('linklist')"
[02-Mar-2018 13:53:50] WARNING: [pool www] child 18 said into stderr: "#4 /var/www/shaarli/index.php(1631): showLinkList(Object(PageBuilder), Object(LinkDB), Object(Shaarli\Confi
g\ConfigManager), Object(PluginManager))"
[02-Mar-2018 13:53:50] WARNING: [pool www] child 18 said into stderr: "#5 /var/www/shaarli/index.php(2319): renderPage(Object(Shaarli\Config\ConfigManager), Object(PluginManager)
, Object(LinkDB), Object(History), Object..."

This PR adds the required chown.

@virtualtam virtualtam added bug it's broken! docker containers & cloud labels Mar 2, 2018
@virtualtam virtualtam added this to the 0.10.0 milestone Mar 2, 2018
Copy link
Member

@virtualtam virtualtam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @josqu4red ;-)

@virtualtam virtualtam merged commit a58a885 into shaarli:master Mar 2, 2018
@josqu4red josqu4red deleted the perms-docker-alpine-latest branch March 2, 2018 17:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug it's broken! docker containers & cloud
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants