What are the Slack Archives?
Itβs a history of our time together in the Slack Community! Thereβs a ton of knowledge in here, so feel free to search through the archives for a possible answer to your question.
Because this space is not active, you wonβt be able to create a new post or comment here. If you have a question or want to start a discussion about something, head over to our categories and pick one to post in! You can always refer back to a post from Slack Archives if needed; just copy the link to use it as a reference..
Hi i run into docker/sdk up problem with permission issue: Copy and merge schema files UnexpectedVal
Hi i run into docker/sdk up problem with permission issue:
Copy and merge schema files
UnexpectedValueException - Exception: There is no existing directory at "/var/log/spryker/DE/ZED" and its not buildable: Permission denied
in /data/vendor/monolog/monolog/src/Monolog/Handler/StreamHandler.php (172)
any idea to solve that quickly?
Comments
-
Hello.
Try this:
docker/sdk clean-data && docker/sdk up
That will delete all volumes along with logs volume.
0 -
ok i try but this happens on different stages during build up
0 -
nope doesnt help. now it dies during propel schema copy
0 -
OS?
0 -
Ubuntu 20.04 latest docker
0 -
docker/sdk cli ls -al /var/log/spryker
Is it possible to run?
0 -
Is it possible to reproduce the error locally?
0 -
The folder inside the cli container exists but is owned by 1000:spryker and not writeable
0 -
I will investigate it later it looks like a overlay2 issue ...
0 -
Is that latest docker/sdk version?
0 -
Yes 1.15.0
0 -
I not tested version bevor, i will do that ..
0 -
What is the mode? deploy.yml:docker:mount:?
0 -
Ok will check ..
0 -
# Create log directory ARG SPRYKER_LOG_DIRECTORY ENV SPRYKER_LOG_DIRECTORY=${SPRYKER_LOG_DIRECTORY} RUN mkdir -p ${SPRYKER_LOG_DIRECTORY} && \ chown spryker:spryker ${SPRYKER_LOG_DIRECTORY}
We have this to initialize.
0 -
In baked mode user is always spryker.
0 -
In dev (mount) mode we have the following:
ARG USER_UID RUN usermod -u ${USER_UID} spryker && find / -user 1000 -exec chown -h spryker {} \ || true;
So I wonder why chown does not work for it.
OR volume is mounted weirdlyβ¦
0 -
Can you inspect cli container?
0 -
Yes, but not right now. Have to put kids into suspend mode
0 -
Try to find right button ))
0 -
ok mike im now on my notebook
0 -
mount: native: platforms: - linux
0 -
hmm the logs: is mounted rw .. strange .. any idea where to look for logs?
0 -
ok tested docker/sdk:1.14.3 other error due startup of jenkins which could not find the templates
0 -
docker/sdk cli ls -la /var/log
*** DEVELOPMENT MODE
total 24
drwxr-xr-x 1 root root 4096 Jul 3 19:39 .
drwxr-xr-x 1 root root 4096 May 29 12:12 ..
drwxrwxrwx 2 root root 4096 May 29 12:13 newrelic
drwxr-xr-x 4 spryker spryker 4096 Jul 3 19:44 spryker0 -
mount looks better
0 -
[2020-07-03T19:46:50.274013+00:00] Zed.CRITICAL: Twig\Error\LoaderError - Unable to find template "jenkins.docker.xml.twig" (looked into: /data/config/Zed/cronjobs, /data/vendor/spryker/scheduler-jenkins/src/Spryker/Zed/SchedulerJenkins/Business/TemplateGenerator/Template). in "/data/vendor/twig/twig/src/Loader/FilesystemLoader.php::265" {"exception":"[object] (Twig\Error\LoaderError(code: 0): Unable to find template \"jenkins.docker.xml.twig\" (looked into: /data/config/Zed/cronjobs, /data/vendor/spryker/scheduler-jenkins/src/Spryker/Zed/SchedulerJenkins/Business/TemplateGenerator/Template). at /data/vendor/twig/twig/src/Loader/FilesystemLoader.php:265)
[stacktrace]0 /data/vendor/twig/twig/src/Loader/FilesystemLoader.php(161): Twig\Loader\FilesystemLoader->findTemplate('jenkins.docker....')
1 /data/vendor/twig/twig/src/Environment.php(351): Twig\Loader\FilesystemLoader->getCacheKey('jenkins.docker....')
2 /data/vendor/twig/twig/src/Environment.php(445): Twig\Environment->getTemplateClass('jenkins.docker....')
3 /data/vendor/twig/twig/src/Environment.php(423): Twig\Environment->loadTemplate('jenkins.docker....')
4 /data/vendor/twig/twig/src/Environment.php(384): Twig\Environment->load('jenkins.docker....')
5 /data/vendor/spryker/scheduler-jenkins/src/Spryker/Zed/SchedulerJenkins/Dependency/TwigEnvironment/SchedulerJenkinsToTwigEnvironmentBridge.php(33): Twig\Environment->render('jenkins.docker....', Array)
0 -
docker/sdk cli ls /data/config/Zed/cronjobs/
*** DEVELOPMENT MODE
README jenkins.php0 -
file exists ... strange
0 -
I assume I know the reason of your primal issue.
0
Categories
- All Categories
- 42 Getting Started & Guidelines
- 7 Getting Started in the Community
- 8 Additional Resources
- 7 Community Ideas and Feedback
- 76 Spryker News
- 929 Developer Corner
- 787 Spryker Development
- 89 Spryker Dev Environment
- 362 Spryker Releases
- 3 Oryx frontend framework
- 35 Propel ORM
- 68 Community Projects
- 3 Community Ideation Board
- 30 Hackathon
- 3 PHP Bridge
- 6 Gacela Project
- 26 Job Opportunities
- 3.2K π Slack Archives
- 116 Academy
- 5 Business Users
- 370 Docker
- 551 Slack General
- 2K Help
- 75 Knowledge Sharing
- 6 Random Stuff
- 4 Code Testing
- 32 Product & Business Questions
- 70 Spryker Safari Questions
- 50 Random