Uploaded image for project: 'Service Design and Creation'
  1. Service Design and Creation
  2. SDC-528

SDC Backend/frontend not starting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Highest Highest
    • Amsterdam Release
    • Amsterdam Release
    • SDC
    • SDC Sprint 5

      With the latest docker downloads (24th october) both sdc-BE and sdc-FE docker containers fail with the message.

      /bin/sh: 0: Can't open /root/startup.sh

       

      I think the problem is the Docker file for both has been updated to switch to the user jetty before running the startup.sh but the /root/startup.sh can't be read by the user jetty

      ...
      [ 13|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l13] USER root
      [ 14|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l14]
      [ 15|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l15] RUN chown -R jetty:jetty    ${JETTY_BASE}/webapps
      [ 16|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l16]
      [ 17|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l17] COPY startup.sh /root/
      [ 18|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l18]
      [ 19|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l19] RUN chmod 770 /root/startup.sh
      [ 20|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l20]
      [ 21|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l21] USER jetty
      [ 22|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l22]
      [ 23|https://gerrit.onap.org/r/gitweb?p=sdc.git;a=blob;f=sdc-os-chef/sdc-frontend/Dockerfile;h=91980cc42346be18a9388a8313dec377725e3692;hb=91980cc42346be18a9388a8313dec377725e3692#l23] ENTRYPOINT [ "/root/startup.sh" ]
       

      &&

       

      root@vm1-sdc:/opt/sdc/sdc-os-chef/sdc-backend# docker run -it --entrypoint=/bin/sh 3e53ac14bd7e
      $ whoami
      jetty
      $ ls /root/
      ls: cannot open directory '/root/': Permission denied
      $

            af732p af732p
            afenner afenner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: