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 · 34 comments
Open

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

Xigility opened this issue Feb 8, 2024 · 34 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.

@0x4D5352
Copy link

Receiving similar errors, M1 Mac studio running Sonic Pi 4.5.1. Here's the full crash dump:

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 14.5
spider.log
Sonic Pi Spider Server booting...
The time is 2024-06-17 16:08:30 -0500
Using primary protocol: udp
Detecting port numbers...
Ports: {:server_port=>33329, :gui_port=>33330, :scsynth_port=>33331, :scsynth_send_port=>33331, :osc_cues_port=>4560, :tau_port=>33332, :listen_to_tau_port=>33336}
Token: 1150388521
Opening UDP Server to listen to GUI on port: 33329
Spider - Pulling in modules...
Spider - Starting Runtime Server
TauComms - Sending /ping to tau: 127.0.0.1:33332
TauComms - Receiving ack from tau
TauComms - connection established
studio - init
scsynth boot - Waiting for the SuperCollider Server to have booted...
scsynth boot - Sending /status to server: 127.0.0.1:33331
scsynth boot - Receiving ack from scsynth
scsynth boot - Server connection established
scsynth - clear!
scsynth - clear schedule 
scsynth - schedule cleared!
scsynth - group clear 0
scsynth - group clear 0 completed
Studio - Initialised SuperCollider Audio Server v3.13.0
Studio - Resetting server
Studio - Reset and setup groups and busses
Studio - Clearing scsynth
scsynth - clear schedule
scsynth - clear scsynth
scsynth - clear!
scsynth - clear schedule 
scsynth - schedule cleared!
scsynth - group clear 0
scsynth - group clear 0 completed
scsynth - cleared scsynth
scsynth - bus allocators reset
Studio - Allocating audio bus
Studio - Create Base Synth Groups
Studio - Starting mixer
Studio - Starting scope
Spider - Runtime Server Initialised
Spider - Registering incoming Spider Server API endpoints
Spider - Booted Successfully.
Spider - v4.5.1, OS osx, on Ruby  3.3.1 | 3.3.0.
Spider - ------------------------------------------
Spider - Exception!
Connection refused - send(2)
["/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:763:in `block in <main>'"]
Spider - Exception!
Connection refused - send(2)
["/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:817:in `block in <main>'"]
Spider - Exception!
Connection refused - send(2)
["/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:755:in `block in <main>'"]
Spider - Server is exiting.
Spider - Shutting down GUI...
Spider - Goodbye :-)
/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:843:in `join': Interrupt
    from /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:843:in `<main>'
Exiting - shutting down scsynth server...
Sending /quit command to scsynth
Stopping OSC server...
Stopped OSC server...

daemon.log
[2024-06-17 16:08:25] Welcome to the Daemon Booter
[2024-06-17 16:08:25] ----------------------------
[2024-06-17 16:08:25] SuperCollider inputs disabled by GUI
[2024-06-17 16:08:25] checked port 33329, #<UDPSocket:0x000000011e04ea60>
[2024-06-17 16:08:25] checked port 33330, #<UDPSocket:0x000000011e04e858>
[2024-06-17 16:08:25] checked port 33331, #<UDPSocket:0x000000011e04e768>
[2024-06-17 16:08:25] checked port 4560, #<UDPSocket:0x000000011e04e650>
[2024-06-17 16:08:25] checked port 33332, #<UDPSocket:0x000000011e04e560>
[2024-06-17 16:08:25] checked port 33333, #<UDPSocket:0x000000011e04e470>
[2024-06-17 16:08:25] checked port 33334, #<UDPSocket:0x000000011e04e380>
[2024-06-17 16:08:25] checked port 33335, #<UDPSocket:0x000000011e04e290>
[2024-06-17 16:08:25] checked port 33336, #<UDPSocket:0x000000011e04e1a0>
[2024-06-17 16:08:25] Selected ports: 
[2024-06-17 16:08:25] {"spider-listen-to-gui"=>33329, "gui-send-to-spider"=>33329, "gui-listen-to-spider"=>33330, "spider-send-to-gui"=>33330, "scsynth"=>33331, "scsynth-send"=>33331, "osc-cues"=>4560, "tau"=>33332, "spider"=>33333, "phx"=>33334, "daemon"=>33335, "spider-listen-to-tau"=>33336}
[2024-06-17 16:08:25] Booting Scsynth
[2024-06-17 16:08:25] ---- Audio Config Issue ----
[2024-06-17 16:08:25] Could not find /Users/mussar/.sonic-pi/config/audio-settings.toml - reverting to default audio options.
[2024-06-17 16:08:25] This is not critical - reverting to default audio options
[2024-06-17 16:08:25] ----------------------------
[2024-06-17 16:08:25] Got Audio Settings toml hash: {}
[2024-06-17 16:08:25] Unified Audio Settings toml hash: {}
[2024-06-17 16:08:25] Combined Audio Settings toml hash with GUI scsynth inputs hash: {"-i"=>"0"}
[2024-06-17 16:08:25] Merged Audio Settings toml hash: {"-u"=>33331, "-a"=>"1024", "-m"=>"131072", "-D"=>"0", "-R"=>"0", "-l"=>"1", "-i"=>"0", "-o"=>"16", "-b"=>"4096", "-B"=>"127.0.0.1", "-U"=>"/Applications/Sonic Pi.app/Contents/Resources/app/server/native/supercollider/Resources/plugins"}
[2024-06-17 16:08:26] Process Booter - booting /Applications/Sonic Pi.app/Contents/Resources/app/server/native/scsynth with args ["-u", "33331", "-a", "1024", "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "0", "-o", "16", "-b", "4096", "-B", "127.0.0.1", "-U", "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/supercollider/Resources/plugins"]
[2024-06-17 16:08:26] /Applications/Sonic Pi.app/Contents/Resources/app/server/native/scsynth -u 33331 -a 1024 -m 131072 -D 0 -R 0 -l 1 -i 0 -o 16 -b 4096 -B 127.0.0.1 -U /Applications/Sonic Pi.app/Contents/Resources/app/server/native/supercollider/Resources/plugins
[2024-06-17 16:08:26] Waiting for the SuperCollider Server to have booted...
[2024-06-17 16:08:26] Sending /status to server: localhost:33331
[2024-06-17 16:08:26] [scsynth] Number of Devices: 14
[2024-06-17 16:08:26] [scsynth]    0 : "U34G2G4R3"
[2024-06-17 16:08:26] [scsynth]    1 : "Mac Studio Speakers"
[2024-06-17 16:08:26] [scsynth]    2 : "Microsoft Teams Audio"
[2024-06-17 16:08:26] [scsynth]    3 : "Pro Tools Audio Bridge 16"
[2024-06-17 16:08:26] [scsynth]    4 : "Pro Tools Audio Bridge 2-A"
[2024-06-17 16:08:26] [scsynth]    5 : "Pro Tools Audio Bridge 2-B"
[2024-06-17 16:08:26] [scsynth]    6 : "Pro Tools Audio Bridge 32"
[2024-06-17 16:08:26] [scsynth]    7 : "Pro Tools Audio Bridge 64"
[2024-06-17 16:08:26] [scsynth]    8 : "Pro Tools Audio Bridge 6"
[2024-06-17 16:08:26] [scsynth]    9 : "To VOD Audio"
[2024-06-17 16:08:26] [scsynth]    10 : "Mic Passthru"
[2024-06-17 16:08:26] [scsynth]    11 : "Loopback"
[2024-06-17 16:08:26] [scsynth]    12 : "Universal Audio Thunderbolt"
[2024-06-17 16:08:26] [scsynth]    13 : "ZoomAudioD"
[2024-06-17 16:08:26] [scsynth] 
[2024-06-17 16:08:26] [scsynth] "Universal Audio Thunderbolt" Input Device
[2024-06-17 16:08:26] [scsynth]    Streams: 1
[2024-06-17 16:08:26] [scsynth]       0  channels 10
[2024-06-17 16:08:26] [scsynth] 
[2024-06-17 16:08:26] [scsynth] "Universal Audio Thunderbolt" Output Device
[2024-06-17 16:08:26] [scsynth]    Streams: 1
[2024-06-17 16:08:26] [scsynth]       0  channels 6
[2024-06-17 16:08:26] [scsynth] 
[2024-06-17 16:08:26] [scsynth] SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512
[2024-06-17 16:08:27] Sending /status to server: localhost:33331
[2024-06-17 16:08:28] Sending /status to server: localhost:33331
[2024-06-17 16:08:29] Sending /status to server: localhost:33331
[2024-06-17 16:08:29] [scsynth] SuperCollider 3 server ready.
[2024-06-17 16:08:30] Sending /status to server: localhost:33331
[2024-06-17 16:08:30] Receiving ack from scsynth
[2024-06-17 16:08:30] SuperCollider Server connection established
[2024-06-17 16:08:30] Extracting Scsynth info
[2024-06-17 16:08:30] Booting Tau...
[2024-06-17 16:08:30] Fetching Tau toml opts...
[2024-06-17 16:08:30] Requesting tau send us its pid. Sending /send-pid-to-daemon, 1150388521 to localhost:33332
[2024-06-17 16:08:30] Daemon listening to info from Tau on port 33335
[2024-06-17 16:08:30] Process Booter - booting sh with args ["/Applications/Sonic Pi.app/Contents/Resources/app/server/beam/tau/boot-mac.sh"]
[2024-06-17 16:08:30] sh /Applications/Sonic Pi.app/Contents/Resources/app/server/beam/tau/boot-mac.sh
[2024-06-17 16:08:30] Booting Spider Server
[2024-06-17 16:08:30] Process Booter - booting /Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/bin/ruby with args ["--enable-frozen-string-literal", "-E", "utf-8", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb", "-u", "33329", "33330", "33331", "33331", "4560", "33332", "33336", "1150388521"]
[2024-06-17 16:08:30] /Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/bin/ruby --enable-frozen-string-literal -E utf-8 /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb -u 33329 33330 33331 33331 4560 33332 33336 1150388521
[2024-06-17 16:08:30] 33335 33330 33329 33331 4560 33332 33334 1150388521
[2024-06-17 16:08:30] Blocking main thread until exit signal received...
[2024-06-17 16:08:30] [sh] Booting Tau on macOS...
[2024-06-17 16:08:30] [ruby] Sonic Pi Spider Server booting...
[2024-06-17 16:08:30] [ruby] The time is 2024-06-17 16:08:30 -0500
[2024-06-17 16:08:30] [ruby] Using primary protocol: udp
[2024-06-17 16:08:30] [ruby] Detecting port numbers...
[2024-06-17 16:08:30] [ruby] Ports: {:server_port=>33329, :gui_port=>33330, :scsynth_port=>33331, :scsynth_send_port=>33331, :osc_cues_port=>4560, :tau_port=>33332, :listen_to_tau_port=>33336}
[2024-06-17 16:08:30] [ruby] Token: 1150388521
[2024-06-17 16:08:30] [ruby] Opening UDP Server to listen to GUI on port: 33329
[2024-06-17 16:08:30] [ruby] Spider - Pulling in modules...
[2024-06-17 16:08:30] [ruby] Spider - Starting Runtime Server
[2024-06-17 16:08:30] [ruby] TauComms - Sending /ping to tau: 127.0.0.1:33332
[2024-06-17 16:08:30] [ruby] TauComms - Receiving ack from tau
[2024-06-17 16:08:30] [ruby] TauComms - connection established
[2024-06-17 16:08:30] [ruby] studio - init
[2024-06-17 16:08:30] [ruby] scsynth boot - Waiting for the SuperCollider Server to have booted...
[2024-06-17 16:08:30] [ruby] scsynth boot - Sending /status to server: 127.0.0.1:33331
[2024-06-17 16:08:30] [ruby] scsynth boot - Receiving ack from scsynth
[2024-06-17 16:08:30] [ruby] scsynth boot - Server connection established
[2024-06-17 16:08:30] [ruby] scsynth - clear!
[2024-06-17 16:08:30] [ruby] scsynth - clear schedule 
[2024-06-17 16:08:30] [ruby] scsynth - schedule cleared!
[2024-06-17 16:08:31] Requesting tau send us its pid. Sending /send-pid-to-daemon, 1150388521 to localhost:33332
[2024-06-17 16:08:31] Error talking to Tau - connection refused (perhaps Tau is still booting?)
[2024-06-17 16:08:31] [ruby] scsynth - group clear 0
[2024-06-17 16:08:31] [ruby] scsynth - group clear 0 completed
[2024-06-17 16:08:31] [ruby] Studio - Initialised SuperCollider Audio Server v3.13.0
[2024-06-17 16:08:31] [ruby] Studio - Resetting server
[2024-06-17 16:08:31] [ruby] Studio - Reset and setup groups and busses
[2024-06-17 16:08:31] [ruby] Studio - Clearing scsynth
[2024-06-17 16:08:31] [ruby] scsynth - clear schedule
[2024-06-17 16:08:31] [ruby] scsynth - clear scsynth
[2024-06-17 16:08:31] [ruby] scsynth - clear!
[2024-06-17 16:08:31] [ruby] scsynth - clear schedule 
[2024-06-17 16:08:31] [ruby] scsynth - schedule cleared!
[2024-06-17 16:08:31] [ruby] scsynth - group clear 0
[2024-06-17 16:08:31] [ruby] scsynth - group clear 0 completed
[2024-06-17 16:08:31] [ruby] scsynth - cleared scsynth
[2024-06-17 16:08:31] [ruby] scsynth - bus allocators reset
[2024-06-17 16:08:31] [ruby] Studio - Allocating audio bus
[2024-06-17 16:08:31] [ruby] Studio - Create Base Synth Groups
[2024-06-17 16:08:31] [ruby] Studio - Starting mixer
[2024-06-17 16:08:31] [ruby] Studio - Starting scope
[2024-06-17 16:08:31] [ruby] Spider - Runtime Server Initialised
[2024-06-17 16:08:31] [ruby] Spider - Registering incoming Spider Server API endpoints
[2024-06-17 16:08:31] [ruby] Spider - Booted Successfully.
[2024-06-17 16:08:31] [ruby] Spider - v4.5.1, OS osx, on Ruby  3.3.1 | 3.3.0.
[2024-06-17 16:08:31] [ruby] Spider - ------------------------------------------
[2024-06-17 16:08:32] Requesting tau send us its pid. Sending /send-pid-to-daemon, 1150388521 to localhost:33332
[2024-06-17 16:08:32] Daemon received Pid from Tau: [1150388521, 50385]
[2024-06-17 16:08:35] Sending scsynth info to GUI...
[2024-06-17 16:08:35] {:hw_in=>"Not connected", :hw_out=>"Universal Audio Thunderbolt", :hw_in_chans=>0, :hw_out_chans=>6, :sc_sample_rate=>44100, :sc_block_size=>512}
[2024-06-17 16:08:35] Out [6 ch]: Universal Audio Thunderbolt
In [0 ch]: Not connected
Sample Rate: 44100
Block Size: 512
[2024-06-17 16:09:03] [EXIT] Daemon Process has completed:
[2024-06-17 16:09:03] Daemon Booter is now exiting.
[2024-06-17 16:09:03] Cleaning up any running processes...
[2024-06-17 16:09:03] [ruby] Spider - Exception!
[2024-06-17 16:09:03] Process Booter - killing /Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/bin/ruby with pid 50383 and args ["--enable-frozen-string-literal", "-E", "utf-8", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb", "-u", "33329", "33330", "33331", "33331", "4560", "33332", "33336", "1150388521"], wait_thr status: #<Process::Waiter:0x000000011e043598 sleep>, sleep
[2024-06-17 16:09:03] Process Booter - killing /Applications/Sonic Pi.app/Contents/Resources/app/server/native/scsynth with pid 50373 and args ["-u", "33331", "-a", "1024", "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "0", "-o", "16", "-b", "4096", "-B", "127.0.0.1", "-U", "/Applications/Sonic Pi.app/Contents/Resources/app/server/native/supercollider/Resources/plugins"], wait_thr status: #<Process::Waiter:0x000000011e04a4d8 sleep>, sleep
[2024-06-17 16:09:03] Killing Tau with pid 50385
[2024-06-17 16:09:03] Sending TERM kill command to 50383
[2024-06-17 16:09:03] Process 50383 still running, waiting for it to finish... [5]
[2024-06-17 16:09:03] Sending TERM kill command to 50373
[2024-06-17 16:09:03] [ruby] Connection refused - send(2)
[2024-06-17 16:09:03] Process 50373 still running, waiting for it to finish... [5]
[2024-06-17 16:09:03] [ruby] ["/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:763:in `block in <main>'"]
[2024-06-17 16:09:03] Process Booter - killing sh with pid 50385 and args ["/Applications/Sonic Pi.app/Contents/Resources/app/server/beam/tau/boot-mac.sh"], wait_thr status: #<Process::Waiter:0x000000011e044948 sleep>, sleep
[2024-06-17 16:09:03] Sending TERM kill command to 50385
[2024-06-17 16:09:03] Process 50385 still running, waiting for it to finish... [5]
[2024-06-17 16:09:03] [ruby] Spider - Exception!
[2024-06-17 16:09:03] [ruby] Connection refused - send(2)
[2024-06-17 16:09:03] [ruby] ["/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:817:in `block in <main>'"]
[2024-06-17 16:09:03] [ruby] Spider - Exception!
[2024-06-17 16:09:03] [ruby] Connection refused - send(2)
[2024-06-17 16:09:03] [ruby] ["/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/osc/udp_client.rb:33:in `send'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:755:in `block in <main>'"]
[2024-06-17 16:09:03] [ruby] Spider - Server is exiting.
[2024-06-17 16:09:03] [ruby] Spider - Shutting down GUI...
[2024-06-17 16:09:03] [ruby] Spider - Goodbye :-)
[2024-06-17 16:09:03] [ruby] /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:843:in `join': Interrupt
[2024-06-17 16:09:03] [ruby] 	from /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/spider-server.rb:843:in `<main>'
[2024-06-17 16:09:03] [ruby] Exiting - shutting down scsynth server...
[2024-06-17 16:09:03] [ruby] Sending /quit command to scsynth
[2024-06-17 16:09:03] [ruby] Stopping OSC server...
[2024-06-17 16:09:03] [ruby] Stopped OSC server...

tau.log
16:08:30.733 [info] All systems booting....
16:08:30.733 [info] Initialising MIDI native interface
16:08:30.751 [info] Initialising Link native interface
16:08:30.776 [info] Starting Phoenix server
16:08:30.777 [info] Starting with MIDI server enabled
16:08:30.777 [info] Starting with Link server enabled
16:08:30.778 [info] 
+--------------------------------------+
    This is the Sonic Pi Link Server    
       Powered by Erlang 26             
                                        
   Number of detected peers:           
   0 
                                        
   Current tempo:          
   60.0 
+--------------------------------------+



16:08:30.793 [info] 
+--------------------------------------+
    This is the Sonic Pi MIDI Server    
       Powered by Erlang 26             
                                        
   Detected MIDI input ports:           
   [~c"vienna_instruments_midi"] 
                                        
   Detected MIDI output ports:          
   [] 
+--------------------------------------+



16:08:30.793 [info] 
+--------------------------------------+
    This is the Sonic Pi OSC Server     
             == Tau ==                  
       Powered by Erlang 26             
                                        
        Incoming OSC on port 4560         
  OSC cue forwarding to {127, 0, 0, 1}              
                     on port 33336         
+--------------------------------------+



16:08:30.794 [info] 
+--------------------------------------+
    This is the Sonic Pi API Server     
       Powered by Erlang 26             
                                        
       API listening on port 33332         
+--------------------------------------+



16:08:30.795 [info] Running TauWeb.Endpoint with cowboy 2.10.0 at 0.0.0.0:33334 (http)
16:08:30.795 [info] Access TauWeb.Endpoint at http://localhost:33334
16:08:32.042 [info] API /send-pid-to-daemon -> sending pid to Daemon...

scsynth.log
Number of Devices: 14
   0 : "U34G2G4R3"
   1 : "Mac Studio Speakers"
   2 : "Microsoft Teams Audio"
   3 : "Pro Tools Audio Bridge 16"
   4 : "Pro Tools Audio Bridge 2-A"
   5 : "Pro Tools Audio Bridge 2-B"
   6 : "Pro Tools Audio Bridge 32"
   7 : "Pro Tools Audio Bridge 64"
   8 : "Pro Tools Audio Bridge 6"
   9 : "To VOD Audio"
   10 : "Mic Passthru"
   11 : "Loopback"
   12 : "Universal Audio Thunderbolt"
   13 : "ZoomAudioD"

"Universal Audio Thunderbolt" Input Device
   Streams: 1
      0  channels 10

"Universal Audio Thunderbolt" Output Device
   Streams: 1
      0  channels 6

SC_AudioDriver: sample rate = 44100.000000, driver's block size = 512
SuperCollider 3 server ready.

gui.log
[API] [INFO ] : Args: /Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/bin/ruby /Applications/Sonic Pi.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/mussar/.sonic-pi/log
[API] [INFO ] : Launching Sonic Pi Boot Daemon:
[API] [INFO ] : Args: /Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/bin/ruby /Applications/Sonic Pi.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_US
[GUI] [i18n] - Looping through preferred ui languages
[GUI] - Using language: en_US
[GUI] [i18n] - Loading translations for en_US
[GUI] [i18n] - Error: Failed to load language translation for en_US
[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!

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

5 participants