Bug 1474715 - Failed to start Kibana pod, permission denied to run run.sh
Failed to start Kibana pod, permission denied to run run.sh
Product: OpenShift Container Platform
Classification: Red Hat
Component: Logging (Show other bugs)
Unspecified Unspecified
urgent Severity urgent
: ---
: 3.7.0
Assigned To: Jeff Cantrill
Xia Zhao
: Regression, TestBlocker
Depends On:
  Show dependency treegraph
Reported: 2017-07-25 05:00 EDT by Junqi Zhao
Modified: 2017-11-28 17:05 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Cause: The execute bit in the downstream repo was not set for run.sh Consequence: Fix: Result:
Story Points: ---
Clone Of:
Last Closed: 2017-11-28 17:05:56 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Junqi Zhao 2017-07-25 05:00:28 EDT
Description of problem:
Failed to start Kibana pod

# oc  get po
NAME                                      READY     STATUS             RESTARTS   AGE
logging-curator-1-9c8fh                   1/1       Running            0          10h
logging-es-data-master-j5cf6q7g-1-pq9wk   1/1       Running            0          10h
logging-fluentd-08xjz                     1/1       Running            0          10h
logging-fluentd-8dvzx                     1/1       Running            0          10h
logging-kibana-1-0mh0z                    1/2       CrashLoopBackOff   70         10h

# oc logs logging-kibana-1-0mh0z -c kibana
container_linux.go:247: starting container process caused "exec: \"./run.sh\": permission denied"

Version-Release number of selected component (if applicable):
# openshift version
openshift v3.6.169
kubernetes v1.6.1+5115d708d7
etcd 3.2.1

Images from brew registry
logging-kibana          v3.6.170-1          15078dfaeef7        2 hours ago         342.4 MB

How reproducible:

Steps to Reproduce:
1. Deploy logging 3.6.0

Actual results:
Failed to start Kibana pod

Expected results:
All pods should be healthy

Additional info:
Comment 1 Junqi Zhao 2017-07-25 05:14:47 EDT
Cases related to kibana are blocked
Comment 2 Jan Wozniak 2017-07-25 09:38:54 EDT
A 3.6 merge origin with downstream causes run.sh to have file permissions as 0644 (without executable bit) [1]

First parent of mentioned merge has ./run.sh permissions set to 0644 and entrypoint is CMD ["sh", "/run.sh"] [2] while second parent to 0755 and entrypoint is CMD ["./run.sh"] [3]. Merge became an unfortunate combination of these two approaches, the only non-runnable.

Someone with a write access to downstream repos could fix by simply 'chmod +x run.sh' and commit.

[1] http://pkgs.devel.redhat.com/cgit/rpms/logging-kibana-docker/commit/?h=rhaos-3.6-rhel-7&id=c2eeba2f087fdf280f9c4f0b17c14680fbb44aba

[2] http://pkgs.devel.redhat.com/cgit/rpms/logging-kibana-docker/tree/?h=rhaos-3.6-rhel-7&id=ce5c66327427d0e6af17fb76f4ad0a115f5a61af

[3] http://pkgs.devel.redhat.com/cgit/rpms/logging-kibana-docker/tree/?h=rhaos-3.6-rhel-7&id=5b709bf2f8b5a0319d63a52f303c30f831f47175
Comment 3 Rich Megginson 2017-07-25 09:48:42 EDT
Jan - you should have permission to do this.

Have you used the rhpkg command line tool?  If not, https://mojo.redhat.com/docs/DOC-140221

Once you have that installed, I can show you how to do this.
Comment 5 Xia Zhao 2017-07-28 02:57:10 EDT
It's fixed, verified with this latest image:
logging-kibana          v3.6                429262be200e        6 hours ago

logging UI is back with log entries inside. Set to verified.

Test env:
# openshift version
openshift v3.6.171
kubernetes v1.6.1+5115d708d7
etcd 3.2.1
Comment 9 errata-xmlrpc 2017-11-28 17:05:56 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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