Julia stopped working

Julia stopped working. I came back ot my computer today (it was fine yesterday), and now it won’t start in vscode (latest version on ubuntu 24.04). I tried in terminal but get this:

loman@famous-fred:~$ julia
Error: The Julia launcher failed to load a configuration file.

Caused by:
    0: Failed to parse self configuration file '"/home/loman/.juliaup/juliaupself.json"' for reading.
    1: control character (\u0000-\u001F) found while parsing a string at line 6 column 0
loman@famous-fred:~$ 

I open my “/home/loman/.juliaup/juliaupself.json” file and it looks like this:

{
  "StartupSelfUpdateInterval": 1440,
  "ModifyPath": true,
  "JuliaupChannel": "release",
  "LastSelfUpdate": "2025-01-14T15:19:46

I have never touched this file before. I tried adding a } at the end, but that had no effect.

Did you put a " at the end of the date string on line 5 to close it? Then } on line 6.

(TBH I don’t know anything about this configuration file.)

1 Like

Yeah, tried updating to

{
  "StartupSelfUpdateInterval": 1440,
  "ModifyPath": true,
  "JuliaupChannel": "release",
  "LastSelfUpdate": "2025-01-14T15:19:46"
  }

as well, didn’t work :frowning:

Maybe a comma after the date string. Also, the error message says there’s a control character in there. Try removing all trailing characters after the date string and typing in the comma, double quote, newline, and close curly bracket. Or restoring from backup.

I was first surprised by this name, since my config file (ok on MacOS) is just juliaup.json and also in .Julia/juliaup/.

Then I found this issue

which is maybe related to your problem? They recommend to install from the original homepage (and not via e.g. apt-get from Ubuntu). Maybe reinstalling as recommended there might help?

1 Like

Unfortunately I do not have sudo access on my machine, so have limited ability to change installations, but I will forward this to IT to see if they can use it. Thanks!

This is how it looks on my machine:

ufechner@framework:~/.juliaup$ cat juliaupself.json 
{
  "StartupSelfUpdateInterval": 1440,
  "ModifyPath": true,
  "JuliaupChannel": "release",
  "LastSelfUpdate": "2025-01-16T15:01:53.563126929Z"
}

Note that the time string is somewhat different and has a Z at the end.

4 Likes

Thanks, yes this thing work :slight_smile:

{
  "StartupSelfUpdateInterval": 1440,
  "ModifyPath": true,
  "JuliaupChannel": "release",
  "LastSelfUpdate": "2025-01-16T14:59:02.261627367Z"
}
2 Likes