-
Notifications
You must be signed in to change notification settings - Fork 13.3k
permission denied on 2.5.0beta #5483
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
Comments
Looks like a paranoid system configuration. Can you give the full OS config? I'm assuming you're running from a Linux/UNIX-like system, yes? And there is a "~/" before the ".arduino15" that you've not copied? If not, then maybe your Arduino copy is having trouble with $(HOME) From a bash prompt, please try
Both should give some form of "ERROR: Mode not specified..." message. If they don't, then could you have the Arduino tree on a filesystem mounted as NOEXEC (so that nothing can run from it?). Another possibility is a SELINUX enforcing mode config that doesn't allow executing the file. |
Samer problem here on OSX (Mojave), will try suggestions and revert. Install was done via board manager. UPDATE: Solved by issuing command:
|
Correct on linux, ubuntu 18.04And the path was fully qualified, I just removed the /home/user
I had tried running the command direct from the command line and it does give me the mode not specified message, so there is something about it being called from the ide that's messing with things
Sent from my Verizon, Samsung Galaxy smartphone
-------- Original message --------From: "Earle F. Philhower, III" <[email protected]> Date: 12/11/18 21:29 (GMT-08:00) To: esp8266/Arduino <[email protected]> Cc: Chad Gibeaut <[email protected]>, Author <[email protected]> Subject: Re: [esp8266/Arduino] permission denied on 2.5.0beta (#5483)
Looks like a paranoid system configuration. Can you give the full OS config?
I'm assuming you're running from a Linux/UNIX-like system, yes? And there is a "~/" before the ".arduino15" that you've not copied? If not, then maybe your Arduino copy is having trouble with $(HOME)
From a bash prompt, please try
python ~/.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta1/tools/signing.py
.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta1/tools/signing.py
Both should give some form of "ERROR: Mode not specified..." message.
If they don't, then could you have the Arduino tree on a filesystem mounted as NOEXEC (so that nothing can run from it?). Another possibility is a SELINUX enforcing mode config that doesn't allow executing the file.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/esp8266/Arduino","title":"esp8266/Arduino","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/esp8266/Arduino"}},"updates":{"snippets":[{"icon":"PERSON","message":"@earlephilhower in #5483: Looks like a paranoid system configuration. Can you give the full OS config?\r\n\r\nI'm assuming you're running from a Linux/UNIX-like system, yes? And there is a \"~/\" before the \".arduino15\" that you've not copied? If not, then maybe your Arduino copy is having trouble with $(HOME)\r\n\r\nFrom a bash prompt, please try\r\n`python ~/.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta1/tools/signing.py`\r\n\r\n` .arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta1/tools/signing.py`\r\n\r\nBoth should give some form of \"ERROR: Mode not specified...\" message.\r\n\r\nIf they don't, then could you have the Arduino tree on a filesystem mounted as NOEXEC (so that nothing can run from it?). Another possibility is a SELINUX enforcing mode config that doesn't allow executing the file."}],"action":{"name":"View Issue","url":"#5483 (comment)"}}}
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#5483 (comment)",
"url": "#5483 (comment)",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Worked like a charm :) |
Same thing on Mac OS High Sierra and the suggested command in the terminal worked perfectly. Thanks @Swiftnesses |
Welcome guys, glad I could help :) |
Yup, looks like there is a packaging issue in the IDE installed package. Deleting my GIT copy and using the boards manager to install 2.5.0-b1 I too see:
The GIT version itself has the +x bit set on the file, so I'll have to peek at our packing script... |
Actually, it;s even worse. The packaged platform.txt is missing many lines vs. the GIT repo!
|
The boards packager was deleting what was at the time it was written unused lines in fht platform.txt file before deploying to Arduino. One of these lines is now needed for signing to work, so don't delete it. Also, explicitly call "python signing.py" because it looks like Arduino is sanitizing/removing executable bits on files when extracting from boards manager installations. Fixes esp8266#5483
* Keep signing commands in platform.txt on release The boards packager was deleting what was at the time it was written unused lines in fht platform.txt file before deploying to Arduino. One of these lines is now needed for signing to work, so don't delete it. Also, explicitly call "python signing.py" because it looks like Arduino is sanitizing/removing executable bits on files when extracting from boards manager installations. Fixes #5483 * Create the build subdir, if needed, for autosign If the temporary build/core directory isn't available, make it in order that Updater.cpp will see the generated signing header and not the one in the main core.
Still actual hack to fix (more general solution than @Swiftnesses's):
|
Until -beta2 is released this is not going to show up ini tour board-manager installs. However, the fix doesn't actually amke signing work. The platform.txt file needs to be corrected, which is that the PR does and you'll get with the next beta. |
Why beta versions available in stable update channel? |
@a-x- I suggest reading our release model.
|
I have spend a few day with different versions old and new, any kind of config none of working. Why this that happen with esp-01 since i have remember off and on bump with uploading code we got error: espcomm_open failed. |
Basic Infos
Platform
Settings in IDE
Problem Description
Detailed problem description goes here.
When compiling any code, I get a permission denied error like so
.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta1/tools/signing.py: permission denied
Permisions for that folder looked fine, but I even did a chmod 777 on the entire directory to see if that would change anything, it did not.
This is with the latest beta version of the board info (2.5.0beta)
When I downgrade it to the previous version, it works fine.
Debug Messages
.arduino15/packages/esp8266/hardware/esp8266/2.5.0-beta1/tools/signing.py: permission denied
The text was updated successfully, but these errors were encountered: