-
Notifications
You must be signed in to change notification settings - Fork 27
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
PermissionError #4
Comments
I'm experiencing the same issue. |
The solution is to avoid using the latest version and instead specify 3.6.0 manually. It looks like breaking changes were introduced with platformio starting with version 4.0.0, this Docker image should be updated. |
I updated the image, sorry that it took so long. Latest is no on 4.3.4. |
Looks like this issue exists again as of release 5.0.1, which I'm pulling. Reverting didn't work for my until getting all the way back to 3.6.0, which introduced a separate error (being unable to pull from the Heltec repo, which may be out of our control here). Logs below: Building from 5.0.1:
Building from 3.6.0
|
Hi,
successful? |
facing the same issue on Google cloud build |
1 similar comment
facing the same issue on Google cloud build |
any updates on this issue @sglahn ? Still failing on Google cloud build. |
BTW anyone else with this problem, replace this guy's docker image with mine to make it work. Here: |
I run on gcloud-build is PermissionError
HEAD is now at 5461b4b [feat] Add blink feature
BUILD
Pulling image: sglahn/platformio-core:latest
latest: Pulling from sglahn/platformio-core
f5d23c7fed46: Pulling fs layer
bac1b0ed365c: Pulling fs layer
0699bcf8d873: Pulling fs layer
f306e429bf35: Pulling fs layer
4250f7263938: Pulling fs layer
f9bd61bce74f: Pulling fs layer
f306e429bf35: Waiting
4250f7263938: Waiting
f9bd61bce74f: Waiting
bac1b0ed365c: Verifying Checksum
bac1b0ed365c: Download complete
f5d23c7fed46: Verifying Checksum
f5d23c7fed46: Download complete
0699bcf8d873: Verifying Checksum
0699bcf8d873: Download complete
f306e429bf35: Verifying Checksum
f306e429bf35: Download complete
4250f7263938: Verifying Checksum
4250f7263938: Download complete
f9bd61bce74f: Verifying Checksum
f9bd61bce74f: Download complete
f5d23c7fed46: Pull complete
bac1b0ed365c: Pull complete
0699bcf8d873: Pull complete
f306e429bf35: Pull complete
4250f7263938: Pull complete
f9bd61bce74f: Pull complete
Digest: sha256:fc86e40a9f92c8d69973133de3ce9b52911018834c5aa30159815ccf2766fc6f
Status: Downloaded newer image for sglahn/platformio-core:latest
docker.io/sglahn/platformio-core:latest
Error: Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/platformio/main.py", line 88, in main
cli(None, None, None)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/platformio/commands/init.py", line 37, in invoke
return super(PlatformioCLI, self).invoke(ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 1134, in invoke
Command.invoke(self, ctx)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/local/lib/python3.7/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/platformio/main.py", line 36, in cli
maintenance.on_platformio_start(ctx, force, caller)
File "/usr/local/lib/python3.7/site-packages/platformio/maintenance.py", line 38, in on_platformio_start
telemetry.on_command()
File "/usr/local/lib/python3.7/site-packages/platformio/telemetry.py", line 276, in on_command
resend_backuped_reports()
File "/usr/local/lib/python3.7/site-packages/platformio/telemetry.py", line 417, in resend_backuped_reports
tm = app.get_state_item("telemetry", {})
File "/usr/local/lib/python3.7/site-packages/platformio/app.py", line 331, in get_state_item
with State() as state:
File "/usr/local/lib/python3.7/site-packages/platformio/app.py", line 107, in init
self.path = join(get_project_core_dir(), "appstate.json")
File "/usr/local/lib/python3.7/site-packages/platformio/project/helpers.py", line 87, in get_project_core_dir
raise e
File "/usr/local/lib/python3.7/site-packages/platformio/project/helpers.py", line 81, in get_project_core_dir
os.makedirs(core_dir)
File "/usr/local/lib/python3.7/os.py", line 221, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/builder/home/.platformio'
============================================================
An unexpected error occurred. Further steps:
Verify that you have the latest version of PlatformIO using
pip install -U platformio
commandTry to find answer in FAQ Troubleshooting section
https://docs.platformio.org/page/faq.html
Report this problem to the developers
https://github.com/platformio/platformio-core/issues
============================================================
ERROR
ERROR: build step 0 "sglahn/platformio-core:latest" failed: exit status 1
The text was updated successfully, but these errors were encountered: