Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

[Bug] EACCES: permission denied #3

Closed
jpvalery opened this issue Oct 9, 2019 · 7 comments
Closed

[Bug] EACCES: permission denied #3

jpvalery opened this issue Oct 9, 2019 · 7 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@jpvalery
Copy link
Owner

jpvalery commented Oct 9, 2019

See https://github.com/MontrealPhotoClub/montrealphotoclub.en/pull/57/checks?check_run_id=253995868 "Action_Workflow"

2019-10-09T17:52:03.4139978Z ##[group]Run jpvalery/yarn-percy-ci@master
2019-10-09T17:52:03.4140160Z env:
2019-10-09T17:52:03.4140339Z   PERCY_TOKEN: ***
2019-10-09T17:52:03.4140430Z ##[endgroup]
2019-10-09T17:52:03.4423769Z ##[command]/usr/bin/docker run --name bb818b9317d6b9194c0da55ba177ccac9979_9ac9d7 --label 04bb81 --workdir /github/workspace --rm -e PERCY_TOKEN -e HOME -e GITHUB_REF -e GITHUB_SHA -e GITHUB_REPOSITORY -e GITHUB_ACTOR -e GITHUB_WORKFLOW -e GITHUB_HEAD_REF -e GITHUB_BASE_REF -e GITHUB_EVENT_NAME -e GITHUB_WORKSPACE -e GITHUB_ACTION -e GITHUB_EVENT_PATH -e RUNNER_OS -e RUNNER_TOOL_CACHE -e RUNNER_TEMP -e RUNNER_WORKSPACE -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/montrealphotoclub.en/montrealphotoclub.en":"/github/workspace" 04bb81:8b9317d6b9194c0da55ba177ccac9979
2019-10-09T17:52:05.8690919Z ✅ Percy Token specified. Continuing...
2019-10-09T17:52:05.8696857Z ⏳ Environment not ready. Installing modules...
2019-10-09T17:52:12.5993010Z yarn install v1.17.3
2019-10-09T17:52:12.6358664Z warning Skipping preferred cache folder "/github/home/.cache/yarn" because it is not writable.
2019-10-09T17:52:12.6362980Z warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-3434".
2019-10-09T17:52:12.8057367Z [1/4] Resolving packages...
2019-10-09T17:52:13.8059185Z [2/4] Fetching packages...
2019-10-09T17:52:42.8710569Z info fsevents@2.1.0: The platform "linux" is incompatible with this module.
2019-10-09T17:52:42.8711633Z info "fsevents@2.1.0" is an optional dependency and failed compatibility check. Excluding it from installation.
2019-10-09T17:52:42.8767130Z info fsevents@1.2.9: The platform "linux" is incompatible with this module.
2019-10-09T17:52:42.8768051Z info "fsevents@1.2.9" is an optional dependency and failed compatibility check. Excluding it from installation.
2019-10-09T17:52:42.8945270Z info fsevents@2.0.7: The platform "linux" is incompatible with this module.
2019-10-09T17:52:42.8946335Z info "fsevents@2.0.7" is an optional dependency and failed compatibility check. Excluding it from installation.
2019-10-09T17:52:42.9017117Z [3/4] Linking dependencies...
2019-10-09T17:52:42.9080262Z warning "gatsby > eslint-config-react-app@4.0.1" has incorrect peer dependency "eslint-plugin-flowtype@2.x".
2019-10-09T17:52:42.9117283Z warning "gatsby > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
2019-10-09T17:52:42.9196245Z warning "@narative/gatsby-theme-novela > gatsby-remark-prismjs@3.3.11" has unmet peer dependency "prismjs@^1.15.0".
2019-10-09T17:52:42.9202823Z warning "@narative/gatsby-theme-novela > react-medium-image-zoom@3.1.1" has unmet peer dependency "prop-types@^15.5.8".
2019-10-09T17:52:42.9211462Z warning "@narative/gatsby-theme-novela > gatsby-plugin-emotion > @emotion/babel-preset-css-prop@10.0.14" has unmet peer dependency "@babel/core@^7.0.0".
2019-10-09T17:52:42.9215566Z warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > @babel/preset-typescript@7.3.3" has unmet peer dependency "@babel/core@^7.0.0-0".
2019-10-09T17:52:42.9218771Z warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > babel-plugin-remove-graphql-queries@2.7.6" has unmet peer dependency "graphql@^14.1.1".
2019-10-09T17:52:42.9229391Z warning "@narative/gatsby-theme-novela > gatsby-plugin-emotion > @emotion/babel-preset-css-prop > @emotion/babel-plugin-jsx-pragmatic@0.1.3" has unmet peer dependency "@babel/core@^7.0.0".
2019-10-09T17:52:42.9237685Z warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript@7.5.5" has unmet peer dependency "@babel/core@^7.0.0-0".
2019-10-09T17:52:42.9239965Z warning "@narative/gatsby-theme-novela > gatsby-plugin-typescript > @babel/preset-typescript > @babel/plugin-transform-typescript > @babel/plugin-syntax-typescript@7.3.3" has unmet peer dependency "@babel/core@^7.0.0-0".
2019-10-09T17:52:42.9262918Z warning "gatsby-plugin-netlify > webpack-assets-manifest@3.1.1" has unmet peer dependency "webpack@>=4.4.0".
2019-10-09T17:52:42.9268927Z warning " > eslint-config-gatsby-standard@2.2.0" has incorrect peer dependency "eslint@^5.16.0".
2019-10-09T17:52:42.9286264Z warning " > stylelint-config-prettier@6.0.0" has unmet peer dependency "stylelint@^9.1.1 || ^10.0.0 || ^11.0.0".
2019-10-09T17:52:42.9286886Z warning " > stylelint-config-standard@19.0.0" has unmet peer dependency "stylelint@>=10.1.0".
2019-10-09T17:52:42.9287442Z warning "stylelint-config-standard > stylelint-config-recommended@3.0.0" has unmet peer dependency "stylelint@>=10.1.0".
2019-10-09T17:52:44.6376949Z error Could not write file "/github/workspace/yarn-error.log": "EACCES: permission denied, open '/github/workspace/yarn-error.log'"
2019-10-09T17:52:44.6377340Z info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2019-10-09T17:52:44.6377957Z error An unexpected error occurred: "EACCES: permission denied, mkdir '/github/workspace/node_modules'".
2019-10-09T17:52:53.4830220Z ##[error]Docker run failed with exit code 1

Contacted GitHub Support about this issue as running the commands manually in the main.yml workflow work, but the entrypoint.sh gets this permission error.

Hoping to resolve that asap.

@jpvalery jpvalery added bug Something isn't working help wanted Extra attention is needed labels Oct 9, 2019
@jpvalery
Copy link
Owner Author

Chris Patterson (GitHub Developer Support)
Oct 11, 2:10 PM UTC

I would check to see what user id you are running as inside the container. It is likely that user does not have permissions to write to the filesystem. By default we expect all containers to run as UI 0 inside the container. If you are running as something else you will need to make sure you chown the files.

In this particluar case it looks like you are trying to use a container that CircleCI has optimized to work in their infrastructure.

We hope this helps! If you have any other questions about using GitHub Actions, we recommend asking in our GitHub Community Forum:

https://github.community/t5/GitHub-Actions/bd-p/actions

@jpvalery
Copy link
Owner Author

Using circle-ci docker image based on Percy feedback (see #1)

@jpvalery
Copy link
Owner Author

Opened a forum thread on the actions community: https://github.community/t5/GitHub-Actions/EACCES-permission-denied-How-to-solve/m-p/34488#M1936

@jpvalery jpvalery pinned this issue Oct 11, 2019
@jpvalery
Copy link
Owner Author

@jpvalery
Copy link
Owner Author

Looks like 3d0c7f6 finally did the trick as https://github.com/MontrealPhotoClub/montrealphotoclub.en/pull/57/checks?check_run_id=257266362 seems to be running fine (FINALLY)

@jpvalery
Copy link
Owner Author

So the command run but I get a similar error to what I was getting earlier this week:

Failed to navigate to http://localhost:5339/404.html, skipping. Error: Error: Navigation failed because browser has disconnected!
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/404/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/about/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/contact/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/metro-photo-challenge-1/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/metro-photo-challenge-2/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/photography-commerce-in-the-age-of-instagram/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/unsplash-photowalk-meetups/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/workshop-photo-night-long-exposure-olympus-francois-desrosiers/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] Failed to navigate to http://localhost:5339/authors/jp-valery/index.html, skipping. Error: Error: Protocol error (Page.navigate): Session closed. Most likely the page has been closed.
[percy] Failed to inject agent JS: Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
[percy] shutting down static site at http://localhost:5339/

Reaching back to Wil from Percy to investigate.

@jpvalery
Copy link
Owner Author

We tried LOG_LEVEL=debug percy snapshot ./public and it went through. Removed it and was still working. 🤷‍♂

@jpvalery jpvalery unpinned this issue Oct 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant