juliaup icon indicating copy to clipboard operation
juliaup copied to clipboard

Juliaup locked unable to do any process

Open kmp5VT opened this issue 2 years ago • 3 comments
trafficstars

Hello, I am having issues with Juliaup. It will not start a julia session and I cannot perform any actions with it. For example

./juliaup self uninstall
Do you really want to uninstall Julia? yes
Removing background self update task.Juliaup configuration is locked by another process, waiting for it to unlock.
Well, this is embarrassing.

Juliaup had a problem and crashed. To help us diagnose the problem you can send us a crash report.

We have generated a report file at "/tmp/report-6142de80-e61f-48ed-aa36-9382a2c611a9.toml". Submit an issue or email with the subject of "Juliaup Crash Report" and include the report as an attachment.

- Homepage: https://github.com/JuliaLang/juliaup

We take privacy seriously, and do not perform any automated error collection. In order to improve the software, we rely on people to submit reports.

Thank you kindly!

The report file looks like this

name = 'Juliaup'
operating_system = 'unix:Unknown'
crate_version = '1.8.16'
explanation = '''
Panic occurred in file 'src/config_file.rs' at line 189
'''
cause = 'called `Result::unwrap()` on an `Err` value: Os { code: 121, kind: Uncategorized, message: "Remote I/O error" }'
method = 'Panic'
backtrace = '''

   0: 0x7f24919c05be - juliaup::command_config_backgroundselfupdate::run_command_config_backgroundselfupdate::hace4541d624d78b0
   1: 0x7f24919c76c4 - juliaup::command_selfuninstall::run_command_selfuninstall::h8bc208f4440ed76a
   2: 0x7f24918bda76 - juliaup::main::h4fc5cca7d6eff17b
   3: 0x7f24918a8fa3 - std::sys_common::backtrace::__rust_begin_short_backtrace::h0a2f961a6ce889f2
   4: 0x7f24918e5681 - main'''

kmp5VT avatar Apr 06 '23 16:04 kmp5VT

@kmp5VT it seems that juliaup does not have exclusive access to the lockfile. The error seems to have originated here:

https://github.com/JuliaLang/juliaup/blob/0a42faa402ff9081b21c6fa341f581f65dedb4a8/src/config_file.rs#L184-L191

A short description of the Linux errno 121 EREMOTEIO by Bing Chat:

The error code 121 (EREMOTEIO) is a Linux error code that indicates a remote I/O error. This error occurs when there is a communication problem between two devices over a network or serial connection. The error can occur due to various reasons such as network connectivity issues, hardware failure, or software bugs.

Is the lockfile stored on a network disk? Are you sure that your connection is stable?

@davidanthoff, shouldn't the error messages perhaps be improved by including the path of the file it tried to open in the error?

For reference, the same bit of code in the latest commit:

https://github.com/JuliaLang/juliaup/blob/3a5d471ee1b278ef269bf1181258dd19a39b10c5/src/config_file.rs#L245-L254

SaadiSave avatar Jul 11 '23 20:07 SaadiSave

Tangentially related to #631

SaadiSave avatar Jul 11 '23 20:07 SaadiSave

And also probably https://github.com/JuliaLang/juliaup/issues/561.

davidanthoff avatar Jul 11 '23 20:07 davidanthoff