Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] gatsby.2.23.3/2.23.4 failing in Github Actions ubuntu 18 LTS #25103

Closed
JustFly1984 opened this issue Jun 18, 2020 · 4 comments
Closed

[bug] gatsby.2.23.3/2.23.4 failing in Github Actions ubuntu 18 LTS #25103

JustFly1984 opened this issue Jun 18, 2020 · 4 comments
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@JustFly1984
Copy link

JustFly1984 commented Jun 18, 2020

@pieh I have got this error 3 times today in github actions build pipeline

$ yarn develop
$ gatsby develop -S
info setting up automatic SSL certificate (may require elevated permissions/sudo)

rm: cannot remove '/usr/local/share/ca-certificates/devcert.crt': No such file or directory
Picked up JAVA_TOOL_OPTIONS: -Dfile.encoding=UTF8

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/n/nss/libnss3-tools_3.35-2ubuntu2.7_amd64.deb  404  Not Found [IP: 52.165.132.12 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
error Failed to generate dev SSL certificate


  Error: Command failed: sudo apt install libnss3-tools
  WARNING: apt does not have a stable CLI interface. Use with caution in scripts  .
  E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/n/nss/libns  s3-tools_3.35-2ubuntu2.7_amd64.deb  404  Not Found [IP: 52.165.132.12 80]
  E: Unable to fetch some archives, maybe run apt-get update or try with --fix-m  issing?
  
  - utils.js:22 Object.run
    [poolotto-gatsby]/[devcert]/dist/utils.js:22:28

After restarting failed task, deploy succeed.
Updating to 2.23.4 to check if it fixed.

Update: 2.23.4 also has same issue as 2.23.3
Update: reverting to 2.23.2 did not help,
pinning devcert to 1.1.0 helped only on local macos environment

@JustFly1984 JustFly1984 added the type: bug An issue or pull request relating to a bug in Gatsby label Jun 18, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 18, 2020
@JustFly1984 JustFly1984 changed the title [bug] gatsby.2.23.3 failing in Github Actions 50/50% [bug] gatsby.2.23.3/2.23.4 failing in Github Actions 50/50% Jun 18, 2020
@JustFly1984
Copy link
Author

reverting back to 2.23.2 does not help, same error at runtime:

Screenshot 2020-06-19 16 49 57

@JustFly1984
Copy link
Author

JustFly1984 commented Jun 19, 2020

Issue is related to #25064, but pinning devcert to 1.1.0 does not help in ubumtu environment.

@JustFly1984 JustFly1984 changed the title [bug] gatsby.2.23.3/2.23.4 failing in Github Actions 50/50% [bug] gatsby.2.23.3/2.23.4 failing in Github Actions ubuntu 18 LTS Jun 19, 2020
@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Jun 19, 2020
@LekoArts
Copy link
Contributor

Thanks for the issue! But as per #25064 (comment) this isn’t an issue with Gatsby but your GitHub actions setup.

@JustFly1984
Copy link
Author

@LekoArts it is not issue of github actions setup, it is the issue of gatsby, due it having dependency devcert unpinned version, and reliance of devcert on environment to have certain modules installed by default, which happens is not reliable. We had this github actions setup for last 4 months at least and everything worked perfectly with ubuntu-latest as test/deploy target. Something has changed, and it bubbled up to gatsby. We had switched github actions target to macos-latest, and pined devcert to 1.1.0, and fixed ci pipelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants