-
-
Notifications
You must be signed in to change notification settings - Fork 909
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
Sonic Pi v4.5.x "GUI was unable to connect to the Ruby server" #3370
Comments
I'm slightly confused. The zip log files you submitted are for version 3.3.1 running. The logs shown on the issue show version 4.5 attempting to start, but having difficulty accessing the boot daemon. |
New error message box:Apologies, unable to start... [GUI] - Sonic Pi Server failed to start with this error message:
|
I've seen a very similar issue #3272 raised by another user. You both get invalid argument errors from the daemon, and you both are using System en_HK I wonder if this is the cause of the problem. The API is not able to start the daemon properly and gives the error message. I think this is one for @samaaron to look at. |
Thanks for looking at this Robin. @Xigility could you temporarily change the system language to uk or us English, reboot and see if that fixes things? |
@samaaron weird - I had 6 languages on my system - UK English (Primary), US English, Chinese Traditional (Hong Kong), Cantonese and two unmarked English. I tried removing the two unmarked ones in hopes of them being en_HK but to no avail. Followed the instructions on the Apple official website too. Also got rid of an unmarked English keyboard input just in case that is en_HK. Still didn't work. Did a bit of searching and didn't see any mentions of removing/changing system_language - I had thought General > Language and Region in my System Settings would do the trick but apparently not? Please let me know if there is a way to just nuke en_HK from my sys cause don't think I can or know how to disable/change it. Anyways, probably meaningless but still rebooted the Mac, then Sonic Pi 4.5.0 and then the same Boot Daemon error: Apologies, unable to start... [GUI] - Sonic Pi Server failed to start with this error message:
|
The HK lang thing was just a guess - it may or may not be related. To be honest I would be surprised if it was. Taking another tack, could you try running this in the terminal and let me know what it does/prints out:
|
Hi @samaaron, sorry for the lack of updates for the past 2 days - work was tough. put your terminal command in from a fresh reboot and it prints, without any other action::okhope this helps! |
OK, that's a good sign - that at least appears to have worked! How about trying this:
|
@samaaron well here we go think this might be a hit: when copied and ran command in terminal, returned: /Applications/Sonic Pi 4.5.0.app/Contents/Resources/app/server/native/ruby/bin/ruby: No such file or directory -- /Applications/Sonic Pi 4.5.0.app/Contents/Resources/app/server/ruby/bin/daemon.rb --no-scsynth-inputs (LoadError) EDIT: P.S. sorry for the late reply, been busy for a bit again and haven't been keeping a close eye to GitHub. orz |
Oops, I think I put the quotes in the wrong place. Could you try this:
|
Hi @samaaron , again was busy due to work but got back to this. Put it in terminal, it asked for Microphone access which I allowed, then returned this: 32717 32712 32711 32713 4560 32714 32716 1875216177 hope this helps! |
Hello @samaaron , thanks for the help before, it's been a while - just wondering if there's anything new regarding this issue? |
Hi, could you try the recently released v4.5.1 and let me know if that helps things? https://github.com/sonic-pi-net/sonic-pi/releases/tag/v4.5.1 |
@samaaron Sorry for the late reply, and incoming bad news... Nope! Still the same boot daemon error 。゚ヽ(゚´Д`)ノ゚。Apologies, unable to start... [GUI] - Sonic Pi Server failed to start with this error message: the only thing in the .sonic-pi log is the gui.log file which is listed in the crash report. Changed title of the issue thread for clarity that it doesn't work on 4.5.x. |
Hi, just for sanity can you verify that your Mac is a recent Mac running an M-based Apple Silicon chip and that you have specifically downloaded the Apple Silicon release which has the filename: |
I'm having the same issue. When I run the daemon.rb file, the start of the exception says:
So maybe the package is missing some files? |
Sorry, it's probably more helpful if I include the whole backtrace — looks like it might be a problem with the
|
@samaaron My MacBook’s a 14-inch from 2023 running M2 Pro chip
@jslabovitz your daemon.rb and backtrace indicates you’re using 3.3.0 - try backing up and wiping logs and then load 4.5.1? Logs should be in ~/.sonic-pi as a hidden folder. |
@Xigility the Not sure what's going on with your issue though - I use exactly the same Mac and I've tested it personally on a few others and other than @jslabovitz's issue I've only seen people use it successfully. Quite strange. |
@jslabovitz Could you let me know the contents of this directory:
|
@samaaron Whoops sorry for mistaking the major ruby ver for sonic pi ver! But… When you mentioned Ruby version that got me thinking… Ain’t got time to explain in detail but maybe Ruby version mismatch? Found a Ruby folder in my hard drive Library and that’s 2.6.0 so maybe that (what’s inside looks quite similar to the 3.3.0 inside Sonic Pi) - I’m guessing the gem subfolder inside Sonic Pi doesn’t show up until a successful boot. |
It shouldn't be a problem - Sonic Pi contains its own version of Ruby which is isolated from any system installed version. The claim of being isolated is reinforced when I run the following code in my version of Sonic Pi:
Which returns:
|
@Xigility completely obscure thought. Do you have the following file on your machine:
If not, could you try running
and see if that somehow improves things? |
@Xigility Could you also try running the following and let me know what gets printed to the terminal:
|
@samaaron Sorry, just got off work. the first one I didn't find that log, and touch command returned: touch: /Users/sam/.sonic-pi/log/tau_stdouterr.log: No such file or directory the second one prints: zsh: no such file or directory: /Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/_build/prod/rel/tau/bin/tau Which is weird because when I followed the path for the second one I can actually find the tau exec file so... dunno what's going on there |
@Xigility - oops, I meant:
Pretty sure that won't do much though. Also, very weird that the
If so, could you keep drilling down to that |
@samaaron Apparently, my brain forgot to replace the username - touch command now generated an empty log file of the specified name. I got as far as /Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/_build/prod/rel/tau/bin/. After bin comes tau as a unix executable, and tau.bat |
Ok, so just to confirm, the file
Fails with That really doesn't make any sense to me at all. Could you
and then run the following:
|
yep that's what's been happening WAIT WAIT WAIT - WRONG, I CHANGED SONIC PI NAME IN APPLICATION LET ME TRY AGAIN EDIT: EUREKA - MIX_ENV=prod SECRET_KEY_BASE=sldkfjsdlfjsdfls '/Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/_build/prod/rel/tau/bin/tau' start boots me into beam.smp, and I completely forgot I had renamed Sonic Pi to denote version because I still have 3.3.1 as a failsafe - the initial error with 4.5.1 is without changing Sonic Pi's name however. And 3.3.1 still boots fine even with the app name change |
OK, so are you still unable to boot Sonic Pi? Note - changing the app name in the |
Unfortunately so - even with the MIX_ENV running in background. Apologies, unable to start... [GUI] - Sonic Pi Server failed to start with this error message: |
The problem is somewhere within the C++ API which starts the processes. The pertinent error is:
It's really odd because the arguments seem to be valid, so that running:
appears to work on your machine (please try this again to verify). The next thing we can do is to try and extract more information from the error - but for this I'll need to build a special version of Sonic Pi for you to try. I'll do that some point this weekend when I get chance and hopefully it will help us shed further light on this issue. |
@samaaron Well I ran this '/Applications/Sonic Pi 4.5.1.app/Contents/Resources/app/server/native/ruby/bin/ruby' '/Applications/Sonic Pi 4.5.1.app/Contents/Resources/app/server/ruby/bin/daemon.rb' --no-scsynth-inputs in terminal spits out a random string of numbers, Not sure if that counts as working or not (as in, I can tell it runs, but I know £&%@ all about C++ so I'm not sure the result is expected or an issue) - booting Sonic Pi itself still gives the same error as posted yesterday, not that I expected that to change. |
This has been a long term issue for me - starting from any v4.x.x version whenever I try to load Sonic Pi this error shows up - been stuck on v3.3.1 Beamer for any projects I wanted to do for a good year.
Boot error message below (indicated by hyphens - ):
Apologies, unable to start...
Sorry, Sonic Pi is having issues booting:
GUI was unable to connect to the Ruby server.
Please consider reporting a bug at
http://github.com/samaaron/sonic-pi/issues
System Information
Sonic Pi version: 4.5.0
OS: macOS Ventura (13.2)
scsynth.log
Starting SuperCollider 2024-02-08 08:21:18
Number of Devices: 7
0 : "[NAME REDACTED FOR PRIVACY]'s iPhone 15 Micropho"
1 : "Scarlett 2i2 USB"
2 : "BlackHole 16ch"
3 : "MacBook Pro Microphone"
4 : "MacBook Pro Speakers"
5 : "Microsoft Teams Audio"
6 : "Loopback Audio"
"[NAME REDACTED FOR PRIVACY]’s iPhone 15 Micropho" Input Device
Streams: 1
0 channels 1
"MacBook Pro Speakers" Output Device
Streams: 1
0 channels 2
SC_AudioDriver: sample rate = 48000.000000, driver's block size = 512
SuperCollider 3 server ready.
FAILURE IN SERVER /n_free Node 48 not found
FAILURE IN SERVER /n_free Node 99 not found
FAILURE IN SERVER /n_free Node 150 not found
FAILURE IN SERVER /n_free Node 13 not found
FAILURE IN SERVER /n_free Node 64 not found
FAILURE IN SERVER /n_free Node 115 not found
FAILURE IN SERVER /n_free Node 29 not found
FAILURE IN SERVER /n_free Node 80 not found
FAILURE IN SERVER /n_free Node 131 not found
FAILURE IN SERVER /n_free Node 45 not found
FAILURE IN SERVER /n_free Node 61 not found
FAILURE IN SERVER /n_free Node 96 not found
FAILURE IN SERVER /n_free Node 77 not found
FAILURE IN SERVER /n_free Node 112 not found
FAILURE IN SERVER /n_free Node 93 not found
FAILURE IN SERVER /n_free Node 109 not found
FAILURE IN SERVER /n_free Node 125 not found
FAILURE IN SERVER /n_free Node 147 not found
FAILURE IN SERVER /n_free Node 144 not found
FAILURE IN SERVER /n_free Node 128 not found
FAILURE IN SERVER /n_free Node 141 not found
FAILURE IN SERVER /n_free Node 42 not found
FAILURE IN SERVER /n_free Node 9 not found
FAILURE IN SERVER /n_free Node 26 not found
FAILURE IN SERVER /n_free Node 58 not found
FAILURE IN SERVER /n_free Node 90 not found
FAILURE IN SERVER /n_free Node 106 not found
FAILURE IN SERVER /n_free Node 74 not found
FAILURE IN SERVER /n_free Node 122 not found
FAILURE IN SERVER /n_free Node 138 not found
gui.log
[API] [INFO ] : Args: /Applications/Sonic Pi 4.5.0.app/Contents/Resources/app/server/native/ruby/bin/ruby /Applications/Sonic Pi 4.5.0.app/Contents/Resources/app/server/ruby/bin/clear-logs.rb
[API] [INFO ] : Started...
[API] [ERROR] : StartProcess - Invalid argument
[API] [INFO ] : Starting...
[API] [INFO ] : Log Path: /Users/[NAME REDACTED FOR PRIVACY]/.sonic-pi/log
[API] [INFO ] : Launching Sonic Pi Boot Daemon:
[API] [INFO ] : Args: /Applications/Sonic Pi 4.5.0.app/Contents/Resources/app/server/native/ruby/bin/ruby /Applications/Sonic Pi 4.5.0.app/Contents/Resources/app/server/ruby/bin/daemon.rb --no-scsynth-inputs
[API] [INFO ] : Started...
[API] [ERROR] : StartProcess - Invalid argument
[API] [ERROR] : Failed to start Boot Daemon!
[API] [INFO ] : Attempting to start Boot Daemon failed....
[GUI] - API Boot failed
[GUI] [i18n] - Looping through preferred ui languages
[GUI] - Language setting: system_language
[GUI] - System language: en_HK
[GUI] [i18n] - Looping through preferred ui languages
[GUI] - Using language: en_GB
[GUI] [i18n] - Loading translations for en_GB
[GUI] [i18n] - Error: Failed to load language translation for en_GB
[GUI] - translations available
[GUI] - hiding main window
[GUI] - initialising toolbar icons
[GUI] - setting up window structure
[Debug] Adding language combo box entries...
54
[Debug] Adding language system_language to the combo box
[Debug] Adding language ar to the combo box
[Debug] Adding language bg to the combo box
[Debug] Adding language bn to the combo box
[Debug] Adding language bs to the combo box
[Debug] Adding language ca to the combo box
[Debug] Adding language ca@valencia to the combo box
[Debug] Adding language cs to the combo box
[Debug] Adding language da to the combo box
[Debug] Adding language de to the combo box
[Debug] Adding language el to the combo box
[Debug] Adding language en_AU to the combo box
[Debug] Adding language en_GB to the combo box
[Debug] Adding language en_US to the combo box
[Debug] Adding language eo to the combo box
[Debug] Adding language es to the combo box
[Debug] Adding language et to the combo box
[Debug] Adding language eu to the combo box
[Debug] Adding language fa to the combo box
[Debug] Adding language fi to the combo box
[Debug] Adding language fr to the combo box
[Debug] Adding language ga to the combo box
[Debug] Adding language gl to the combo box
[Debug] Adding language he to the combo box
[Debug] Adding language hi to the combo box
[Debug] Adding language hu to the combo box
[Debug] Adding language hy to the combo box
[Debug] Adding language id to the combo box
[Debug] Adding language is to the combo box
[Debug] Adding language it to the combo box
[Debug] Adding language ja to the combo box
[Debug] Adding language ka to the combo box
[Debug] Adding language ko to the combo box
[Debug] Adding language nb to the combo box
[Debug] Adding language nl to the combo box
[Debug] Adding language pl to the combo box
[Debug] Adding language pt to the combo box
[Debug] Adding language pt_BR to the combo box
[Debug] Adding language ro to the combo box
[Debug] Adding language ru to the combo box
[Debug] Adding language si to the combo box
[Debug] Adding language sk to the combo box
[Debug] Adding language sl to the combo box
[Debug] Adding language sv to the combo box
[Debug] Adding language sw to the combo box
[Debug] Adding language th to the combo box
[Debug] Adding language tr to the combo box
[Debug] Adding language ug to the combo box
[Debug] Adding language uk to the combo box
[Debug] Adding language vi to the combo box
[Debug] Adding language zh to the combo box
[Debug] Adding language zh-Hans to the combo box
[Debug] Adding language zh_HK to the combo box
[Debug] Adding language zh_TW to the combo box
[GUI] - restoring scope states
[GUI] - creating status bar
[GUI] - creating info panel
[GUI] - creating shortcuts
[GUI] - creating tool bar
[GUI] - initialising documentation window
[API] [INFO ] : Waiting Until Ready... 59
[API] [INFO ] : Waiting Until Ready... 58
[API] [INFO ] : Waiting Until Ready... 57
[API] [INFO ] : Waiting Until Ready... 56
[API] [INFO ] : Waiting Until Ready... 55
[API] [INFO ] : Waiting Until Ready... 54
[API] [INFO ] : Waiting Until Ready... 53
[API] [INFO ] : Waiting Until Ready... 52
[API] [INFO ] : Waiting Until Ready... 51
[API] [INFO ] : Waiting Until Ready... 50
[API] [INFO ] : Waiting Until Ready... 49
[API] [INFO ] : Waiting Until Ready... 48
[API] [INFO ] : Waiting Until Ready... 47
[API] [INFO ] : Waiting Until Ready... 46
[API] [INFO ] : Waiting Until Ready... 45
[API] [INFO ] : Waiting Until Ready... 44
[API] [INFO ] : Waiting Until Ready... 43
[API] [INFO ] : Waiting Until Ready... 42
[API] [INFO ] : Waiting Until Ready... 41
[API] [INFO ] : Waiting Until Ready... 40
[API] [INFO ] : Waiting Until Ready... 39
[API] [INFO ] : Waiting Until Ready... 38
[API] [INFO ] : Waiting Until Ready... 37
[API] [INFO ] : Waiting Until Ready... 36
[API] [INFO ] : Waiting Until Ready... 35
[API] [INFO ] : Waiting Until Ready... 34
[API] [INFO ] : Waiting Until Ready... 33
[API] [INFO ] : Waiting Until Ready... 32
[API] [INFO ] : Waiting Until Ready... 31
[API] [INFO ] : Waiting Until Ready... 30
[API] [INFO ] : Waiting Until Ready... 29
[API] [INFO ] : Waiting Until Ready... 28
[API] [INFO ] : Waiting Until Ready... 27
[API] [INFO ] : Waiting Until Ready... 26
[API] [INFO ] : Waiting Until Ready... 25
[API] [INFO ] : Waiting Until Ready... 24
[API] [INFO ] : Waiting Until Ready... 23
[API] [INFO ] : Waiting Until Ready... 22
[API] [INFO ] : Waiting Until Ready... 21
[API] [INFO ] : Waiting Until Ready... 20
[API] [INFO ] : Waiting Until Ready... 19
[API] [INFO ] : Waiting Until Ready... 18
[API] [INFO ] : Waiting Until Ready... 17
[API] [INFO ] : Waiting Until Ready... 16
[API] [INFO ] : Waiting Until Ready... 15
[API] [INFO ] : Waiting Until Ready... 14
[API] [INFO ] : Waiting Until Ready... 13
[API] [INFO ] : Waiting Until Ready... 12
[API] [INFO ] : Waiting Until Ready... 11
[API] [INFO ] : Waiting Until Ready... 10
[API] [INFO ] : Waiting Until Ready... 9
[API] [INFO ] : Waiting Until Ready... 8
[API] [INFO ] : Waiting Until Ready... 7
[API] [INFO ] : Waiting Until Ready... 6
[API] [INFO ] : Waiting Until Ready... 5
[API] [INFO ] : Waiting Until Ready... 4
[API] [INFO ] : Waiting Until Ready... 3
[API] [INFO ] : Waiting Until Ready... 2
[API] [INFO ] : Waiting Until Ready... 1
[API] [INFO ] : Waiting Until Ready... 0
[GUI] - Critical Error. Unable to connect to server..
[GUI] - Sonic Pi Server failed to start with this error message:
> The Boot Daemon could not be started!
Log files attached below:
log.zip
P.S. extra sadness because what if I wanted to try out the new in-built 808 and gabberkicks but god said "Boot Daemon could not be started!" :(
The text was updated successfully, but these errors were encountered: