Skip to content
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

Open
Xigility opened this issue Feb 8, 2024 · 33 comments
Open

Sonic Pi v4.5.x "GUI was unable to connect to the Ruby server" #3370

Xigility opened this issue Feb 8, 2024 · 33 comments

Comments

@Xigility
Copy link

Xigility commented Feb 8, 2024

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!" :(

@rbnpi
Copy link
Contributor

rbnpi commented Feb 8, 2024

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.
Is your Mac intel based or running Apple silicon?
For now I would isolate version 3.3.1 by temporarily renaming your ~/.sonic-pi folder to say ~/.sonic-piOLD
It's worth restarting your machine, then trying to start 4.5 (it should create a new ~/.sonic-pi folder and contents.
Also you have quite a log of external audio devices connected. Till you get things going I would unplug these and disconnect your iphone from the computer. Just go bog standard Mac speaker output and built in mic input.
Report back how it goes. It is useful to include the new zipped log files if it doesn't work.

@Xigility
Copy link
Author

Xigility commented Feb 8, 2024

New error message box:

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)
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]/.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!

Mac is Silicon based. Error message above was generated with only essential audio I/Os.

New log below:

log 2.zip

afaik the log only contains a .writetest file and the gui.log that looked really similar to the error message above.

@rbnpi
Copy link
Contributor

rbnpi commented Feb 8, 2024

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.

@samaaron
Copy link
Collaborator

samaaron commented Feb 8, 2024

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?

@Xigility
Copy link
Author

Xigility commented Feb 9, 2024

@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...
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)
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]/.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!

New log files from retries below:

log.zip

EDIT: typo

@samaaron
Copy link
Collaborator

samaaron commented Feb 9, 2024

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:

'/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'

@Xigility
Copy link
Author

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:

:ok

hope this helps!

@samaaron
Copy link
Collaborator

OK, that's a good sign - that at least appears to have worked!

How about trying this:

'/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'

@Xigility
Copy link
Author

Xigility commented Feb 29, 2024

@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

@samaaron
Copy link
Collaborator

samaaron commented Mar 1, 2024

Oops, I think I put the quotes in the wrong place. Could you try this:

'/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

@Xigility
Copy link
Author

Xigility commented Mar 7, 2024

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!

@Xigility
Copy link
Author

Hello @samaaron , thanks for the help before, it's been a while - just wondering if there's anything new regarding this issue?

@samaaron
Copy link
Collaborator

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

@Xigility
Copy link
Author

Xigility commented May 2, 2024

@samaaron Sorry for the late reply, and incoming bad news...

Nope! Still the same boot daemon error 。゚ヽ(゚´Д`)ノ゚。

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.1
OS: macOS Ventura (13.2)
gui.log
[API] [INFO ] : Args: /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/clear-logs.rb
[API] [INFO ] : Started...
[API] [ERROR] : StartProcess - Invalid argument
[API] [INFO ] : Starting...
[API] [INFO ] : Log Path: /Users/[username]/.sonic-pi/log
[API] [INFO ] : Launching Sonic Pi Boot Daemon:
[API] [INFO ] : Args: /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
[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!

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.

@Xigility Xigility changed the title Sonic Pi v4.5.0 "GUI was unable to connect to the Ruby server" Sonic Pi v4.5.x "GUI was unable to connect to the Ruby server" May 2, 2024
@samaaron
Copy link
Collaborator

samaaron commented May 2, 2024

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: Sonic-Pi-for-Mac-arm64-v4-5-1.dmg

@jslabovitz
Copy link

I'm having the same issue. When I run the daemon.rb file, the start of the exception says:

<internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- racc/parser.rb (LoadError)

So maybe the package is missing some files?

@jslabovitz
Copy link

Sorry, it's probably more helpful if I include the whole backtrace — looks like it might be a problem with the tomlrb gem:

<internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require': cannot load such file -- racc/parser.rb (LoadError)
	from <internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
	from /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/tomlrb-2.0.0/lib/tomlrb/generated_parser.rb:7:in `<top (required)>'
	from <internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
	from <internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
	from /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/tomlrb-2.0.0/lib/tomlrb/parser.rb:1:in `<top (required)>'
	from <internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
	from <internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
	from /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/tomlrb-2.0.0/lib/tomlrb.rb:9:in `<top (required)>'
	from <internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
	from <internal:/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/rubygems/core_ext/kernel_require.rb>:136:in `require'
	from /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/daemon.rb:31:in `<main>'

@Xigility
Copy link
Author

Xigility commented May 3, 2024

@samaaron My MacBook’s a 14-inch from 2023 running M2 Pro chip
image
Pretty sure I’ve got the right installer too.

image
And the installer gives me this

@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.

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

@Xigility the 3.3.0 in @jslabovitz's comment refers to the major Ruby version not the Sonic Pi version.

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.

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

@jslabovitz Could you let me know the contents of this directory:

ls "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/gems/3.3.0/gems/racc-1.7.3/lib"

@Xigility
Copy link
Author

Xigility commented May 3, 2024

@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.
image

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

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:

$LOAD_PATH.each do |p|
  puts p
end

Which returns:

{run: 12, time: 0.0}
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/rb-native/3.3.0/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/wavefile-0.8.1/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/tzinfo-2.0.6/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/tomlrb-2.0.0/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/text-1.3.1/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/rugged-1.7.2/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/ruby-beautify/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/rouge/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/multi_json/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/mocha-1.1.0/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/minitest-5.18.1/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/metaclass-0.0.4/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/memoist-0.16.2/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/locale-2.1.2/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/kramdown-2.1.0/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/i18n-1.14.1/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/gettext-3.4.3/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/concurrent-ruby-1.2.2/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/blankslate/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/vendor/activesupport-7.0.6/lib/"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/gems/3.3.0/gems/racc-1.7.3/lib"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/gems/3.3.0/extensions/arm64-darwin-22/3.3.0-static/racc-1.7.3"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/site_ruby/3.3.0"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/site_ruby/3.3.0/arm64-darwin22"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/site_ruby"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/vendor_ruby/3.3.0"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/vendor_ruby/3.3.0/arm64-darwin22"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/vendor_ruby"
 ├─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0"
 └─ "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/lib/ruby/3.3.0/arm64-darwin22"

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

@Xigility completely obscure thought. Do you have the following file on your machine:

"/Users/sam/.sonic-pi/log/tau_stdouterr.log"

If not, could you try running

touch "/Users/sam/.sonic-pi/log/tau_stdouterr.log"

and see if that somehow improves things?

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

@Xigility Could you also try running the following and let me know what gets printed to the terminal:

MIX_ENV=prod SECRET_KEY_BASE=sldkfjsdlfjsdfls '/Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/_build/prod/rel/tau/bin/tau' start

@Xigility
Copy link
Author

Xigility commented May 3, 2024

@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

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

@Xigility - oops, I meant:

touch: ~/.sonic-pi/log/tau_stdouterr.log

Pretty sure that won't do much though.

Also, very weird that the tau directory doesn't exist. Do you have this directory:

/Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/

If so, could you keep drilling down to that _build/prod/rel/tau/bin/tau directory and see how far you get before the next directory doesn't exist.

@Xigility
Copy link
Author

Xigility commented May 3, 2024

@samaaron Apparently, my brain forgot to replace the username - touch command now generated an empty log file of the specified name.
EDIT: returned nothing

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
EDIT 2: There is no tau folder following bin, only two files

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

Ok, so just to confirm, the file /Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/_build/prod/rel/tau/bin/tau does exist on your machine but running the command:

MIX_ENV=prod SECRET_KEY_BASE=sldkfjsdlfjsdfls '/Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/_build/prod/rel/tau/bin/tau' start

Fails with zsh: no such file or directory: /Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/_build/prod/rel/tau/bin/tau

That really doesn't make any sense to me at all.

Could you cd into the bin directory (which you confirmed exists):

cd '/Applications/Sonic Pi.app/Contents/Resources/server/beam/tau/_build/prod/rel/tau/bin/'

and then run the following:

MIX_ENV=prod SECRET_KEY_BASE=sldkfjsdlfjsdfls ./tau start

@Xigility
Copy link
Author

Xigility commented May 3, 2024

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
returned prod, pressing arrow keys afterwards is responsive.

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

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

OK, so are you still unable to boot Sonic Pi?

Note - changing the app name in the /Applications directory shouldn't affect its ability to boot. I just changed it on my machine and it booted just fine.

@Xigility
Copy link
Author

Xigility commented May 3, 2024

Unfortunately so - even with the MIX_ENV running in background.

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.1
OS: macOS Ventura (13.2)
gui.log
[API] [INFO ] : Args: /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/clear-logs.rb
[API] [INFO ] : Started...
[API] [ERROR] : StartProcess - Invalid argument
[API] [INFO ] : Starting...
[API] [INFO ] : Log Path: /Users/[username]/.sonic-pi/log
[API] [INFO ] : Launching Sonic Pi Boot Daemon:
[API] [INFO ] : Args: /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
[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!

@samaaron
Copy link
Collaborator

samaaron commented May 3, 2024

The problem is somewhere within the C++ API which starts the processes. The pertinent error is:

API] [ERROR] : StartProcess - Invalid argument

It's really odd because the arguments seem to be valid, so that running:

 '/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

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.

@Xigility
Copy link
Author

Xigility commented May 4, 2024

@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,
e.g. 38506 38501 38500 38502 4560 38503 38505 2064246297 and after about 1 minute it shuts down on its own and chucks me right back into -zsh.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants