Bug 1086544 - Diy quickstart binhello is using old log path in action_hooks/start cause cartridge can not be started due to permission denied.
Summary: Diy quickstart binhello is using old log path in action_hooks/start cause car...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Online
Classification: Red Hat
Component: Templates
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Liang Xia
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-11 06:14 UTC by Liang Xia
Modified: 2015-05-15 02:28 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-04-24 21:39:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Liang Xia 2014-04-11 06:14:11 UTC
Description of problem:
Diy quickstart binhello script in action_hooks/start is uing old log path cause cartridge can not be started due to permission denied.

cat .openshift/action_hooks/start
#!/bin/bash
cd $OPENSHIFT_REPO_DIR
nohup ./binhello >${OPENSHIFT_DIY_LOG_DIR}/binhello.log 2>&1 &

OPENSHIFT_DIY_LOG_DIR has been replaced by OPENSHIFT_LOG_DIR

Version-Release number of selected component (if applicable):
devenv_4657

How reproducible:
always

Steps to Reproduce:
1.Create an app with diy quickstart binhello.
2.SSH into the app and do gear start
3.

Actual results:
[binhello-lxiasilver.dev.rhcloud.com 534662cb6cec0e858a000143]\> gear start diy-0.1
Starting gear...
Starting DIY cartridge
/var/lib/openshift/534662cb6cec0e858a000143/app-root/runtime/repo//.openshift/action_hooks/start: line 3: /binhello.log: Permission denied

Expected results:
gear can be started, without errors.

Additional info:


Note You need to log in before you can comment on or make changes to this bug.