Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • N noc
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 440
    • Issues 440
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 28
    • Merge requests 28
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • External wiki
    • External wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • noc
  • noc
  • Merge requests
  • !4512

fix `/bin/sh: 1: ./scripts/build/get-noc-requirements.py: Permission denied`

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed e_zombie requested to merge fix-docker-build-image into master Oct 26, 2020
  • Overview 1
  • Commits 1
  • Pipelines 1
  • Changes 1
Processing triggers for libc-bin (2.28-10) ...
/bin/sh: 1: ./scripts/build/get-noc-requirements.py: Permission denied
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
Traceback (most recent call last):
  File "./scripts/deploy/install-packages", line 16, in <module>
    from noc.core.fileutils import urlopen
  File "/opt/noc/__init__.py", line 11, in <module>
    import noc.core.importer  # noqa
  File "/opt/noc/core/importer.py", line 14, in <module>
    from noc.config import config
  File "/opt/noc/config.py", line 821, in <module>
    config.load()
  File "/opt/noc/core/config/base.py", line 123, in load
    pcls = self.get_protocol(p)
  File "/opt/noc/core/config/base.py", line 114, in get_protocol
    module = __import__(module_name, {}, {}, [handler_class])
  File "/opt/noc/core/config/proto/yaml.py", line 13, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'
The command '/bin/sh -c apt update && apt-get install -y --no-install-recommends     bzip2     curl     libffi6     libjemalloc2     libmemcached11     libpq-dev     $BUILD_PACKAGES     && (./scripts/build/get-noc-requirements.py activator classifier cache-memcached cache-redis login-ldap login-pam login-radius prod-tools cython testing | pip3 install -r /dev/stdin )    && python3 ./scripts/deploy/install-packages requirements/web.json     && python3 ./scripts/deploy/install-packages requirements/card.json     && python3 ./scripts/deploy/install-packages requirements/bi.json     && cythonize -i /opt/noc/speedup/*.pyx     && mkdir /opt/nocspeedup     && cp /opt/noc/speedup/*.so /opt/nocspeedup     && find /opt/noc/ -type f -name "*.py" -print0 | xargs -0 python3 -m py_compile     && pip3 uninstall -y Cython     && apt remove --purge -y $BUILD_PACKAGES     && apt autoremove -y     && rm -rf /var/lib/apt/lists/*     && useradd -d /opt/noc -M -r -u 1200 -U noc -s /bin/sh     && chown noc /opt/noc' returned a non-zero code: 1
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix-docker-build-image