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

[Critical] Issue with lock file creation prevents uploading to Arduino boards. #1609

Closed
SushiDude opened this Issue Oct 6, 2013 · 3 comments

Comments

2 participants
@SushiDude

SushiDude commented Oct 6, 2013

Let me prefix this by stating that this issue is of a critical nature as it prevents uploading to Arduino boards, thus breaking the ability for people to use their Arduinos in any meaningful way. I also wish to state that I am running Arch Linux, but I have reason to believe this issue affects Slackware, Fedora, and will start to affect many other distributions in the future.

Upon launching the Arduino IDE the terminal output presents the following error message:

check_group_uucp(): error testing lock file creation Error details:Permission deniedcheck_lock_status: No permission to create lock file.

I believe this is to due to the fact that the Arduino is attempting to write to the /run/lock directory which it should not be doing. It should write to the value of $XDG_RUNTIME_DIR, this is typically /run/user/$UID.

Many wiki pages, including the Arduino Wiki and Arch Wiki are currently recommending that users chmod 777 their /run/lock directories in order to make Arduino work; this is obviously an excruciatingly bad idea. I will be updating the wiki pages to warn users against doing such dangerous action shortly after I finish this report.

The Arduino IDE should check the value of environmental variable $XDG_RUNTIME_DIR and if the variable is undefined, use /run/user/$UID. The use of /run/lock should be avoided under all situations.

@ffissore

This comment has been minimized.

Show comment
Hide comment
@ffissore

ffissore Oct 11, 2013

Contributor

This problem is caused by RXTX, which is the root of much evil. It will be fixed in version 1.5.6 when we'll get rid of it and replace it with https://github.com/scream3r/java-simple-serial-connector/
A test branch is already available: https://github.com/arduino/Arduino/tree/ide-1.5.x-jssc

Contributor

ffissore commented Oct 11, 2013

This problem is caused by RXTX, which is the root of much evil. It will be fixed in version 1.5.6 when we'll get rid of it and replace it with https://github.com/scream3r/java-simple-serial-connector/
A test branch is already available: https://github.com/arduino/Arduino/tree/ide-1.5.x-jssc

@SushiDude

This comment has been minimized.

Show comment
Hide comment
@SushiDude

SushiDude Oct 23, 2013

The nightly version is working.

SushiDude commented Oct 23, 2013

The nightly version is working.

@SushiDude SushiDude closed this Oct 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment