-
-
Notifications
You must be signed in to change notification settings - Fork 923
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
GUI was unable to connect to the Ruby server. #3126
Comments
Hi there, sorry you're having issues. Would it be possible to open up a Ruby text file within the app, add a new line and try again? The file is:
The line to add is on 788. Here's how it currently looks:
Could you add
Let me know if that helps in any way! |
Worked like a charm. Thanks mate! |
That’s wonderful to hear. This fix has already been committed and will be part of a bug fix release this week. Thank-you so much for helping me test it! have fun with sonic pi :-) |
Hi, I've got the same problem. I'm using Intel Mac from 2020, but still got the same message on 4.3.0. Any updates on this? |
@chloehkai - sorry you’re having issues. Please could you open a new issue and include all the log files from your machine - hopefully we’ll be able to figure out what’s going wrong for you. |
Excuses, er heeft zich een kritische fout voorgedaan tijdens het opstarten: Denk eraan bugs te raporteren Sonic Pi Boot Error ReportSystem InformationSonic Pi version: 4.3.0 Logs: spider.log: Exiting - shutting down scsynth server... Sending /quit command to scsynth Stopping OSC server... Stopped OSC server... daemon.log:
|
same problem. not possible anymore to start the application :( |
Apologies, a critical error occurred during startup:
GUI was unable to connect to the Ruby server.
Please consider reporting a bug at
http://github.com/samaaron/sonic-pi/issues
Sonic Pi Boot Error Report
System Information
Sonic Pi version: 4.0.0
OS: macOS 11.6
Logs:
spider.log:
'Sonic Pi Spider Server booting...
The time is 2022-07-09 18:37:55 -0400
Using primary protocol: udp
Detecting port numbers...
Ports: {:server_port=>30318, :gui_port=>30319, :scsynth_port=>30320, :scsynth_send_port=>30320, :osc_cues_port=>4560, :tau_port=>30321, :listen_to_tau_port=>30325}
Token: -549074090
Opening UDP Server to listen to GUI on port: 30318
Spider - Pulling in modules...
Spider - Starting Runtime Server
TauComms - Sending /ping to tau: 127.0.0.1:30321
TauComms - Sending /ping to tau: 127.0.0.1:30321
TauComms - Sending /ping to tau: 127.0.0.1:30321
TauComms - Sending /ping to tau: 127.0.0.1:30321
TauComms - Unable to connect to tau (SIGTERM). Exiting...
Spider - Failed to start server: exit
/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_comms.rb:96:in
exit' /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_comms.rb:96:in
rescue in block_until_tau_ready!'/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_comms.rb:92:in
block_until_tau_ready!' /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_api.rb:69:in
block_until_tau_ready!'/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_api.rb:48:in
initialize' /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/runtime.rb:1466:in
new'/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/runtime.rb:1466:in
initialize' /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/lang/sound.rb:70:in
block (2 levels) in included'/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/lang/ixi.rb:72:in
block (2 levels) in included' /Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/sonic-pi-server.rb:241:in
new'/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/sonic-pi-server.rb:241:in `
daemon.log:
[2022-07-09 18:37:53] Welcome to the Daemon Booter
[2022-07-09 18:37:53] ----------------------------
[2022-07-09 18:37:53] SuperCollider inputs disabled by GUI
[2022-07-09 18:37:53] checked port 30318, #UDPSocket:0x000000010d841ee0
[2022-07-09 18:37:53] checked port 30319, #UDPSocket:0x000000010d841af8
[2022-07-09 18:37:53] checked port 30320, #UDPSocket:0x000000010d841850
[2022-07-09 18:37:53] checked port 4560, #UDPSocket:0x000000010d841580
[2022-07-09 18:37:53] checked port 30321, #UDPSocket:0x000000010d841328
[2022-07-09 18:37:53] checked port 30322, #UDPSocket:0x000000010d8410a8
[2022-07-09 18:37:53] checked port 30323, #UDPSocket:0x000000010d840e00
[2022-07-09 18:37:53] checked port 30324, #UDPSocket:0x000000010d840ba8
[2022-07-09 18:37:53] checked port 30325, #UDPSocket:0x000000010d840928
[2022-07-09 18:37:53] Selected ports:
[2022-07-09 18:37:53] {"spider-listen-to-gui"=>30318, "gui-send-to-spider"=>30318, "gui-listen-to-spider"=>30319, "spider-send-to-gui"=>30319, "scsynth"=>30320, "scsynth-send"=>30320, "osc-cues"=>4560, "tau"=>30321, "spider"=>30322, "phx"=>30323, "daemon"=>30324, "spider-listen-to-tau"=>30325}
[2022-07-09 18:37:53] Booting Scsynth
[2022-07-09 18:37:53] ---- Audio Config Issue ----
[2022-07-09 18:37:53] Could not find /Users/maxd/.sonic-pi/config/audio-settings.toml - reverting to default audio options.
[2022-07-09 18:37:53] This is not critical - reverting to default audio options
[2022-07-09 18:37:53] ----------------------------
[2022-07-09 18:37:53] Got Audio Settings toml hash: {}
[2022-07-09 18:37:53] Unified Audio Settings toml hash: {}
[2022-07-09 18:37:53] Combined Audio Settings toml hash with GUI scsynth inputs hash: {"-I"=>"0"}
[2022-07-09 18:37:53] Merged Audio Settings toml hash: {"-u"=>30320, "-a"=>"1024", "-m"=>"131072", "-D"=>"0", "-R"=>"0", "-l"=>"1", "-i"=>0, "-o"=>"16", "-b"=>"4096", "-B"=>"127.0.0.1", "-I"=>"0"}
[2022-07-09 18:37:53] Process Booter - booting /Applications/Sonic Pi.app/Contents/Resources/app/server/native/scsynth with args ["-u", "30320", "-a", "1024", "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "0", "-o", "16", "-b", "4096", "-B", "127.0.0.1", "-I", "0"]
[2022-07-09 18:37:53] /Applications/Sonic Pi.app/Contents/Resources/app/server/native/scsynth -u 30320 -a 1024 -m 131072 -D 0 -R 0 -l 1 -i 0 -o 16 -b 4096 -B 127.0.0.1 -I 0
[2022-07-09 18:37:53] Waiting for the SuperCollider Server to have booted...
[2022-07-09 18:37:53] Sending /status to server: localhost:30320
[2022-07-09 18:37:54] Sending /status to server: localhost:30320
[2022-07-09 18:37:54] Receiving ack from scsynth
[2022-07-09 18:37:54] SuperCollider Server connection established
[2022-07-09 18:37:54] Booting Tau...
[2022-07-09 18:37:54] Fetching Tau toml opts...
[2022-07-09 18:37:54] Requesting tau send us its pid. Sending /send-pid-to-daemon, -549074090 to localhost:30321
[2022-07-09 18:37:54] Daemon listening to info from Tau on port 30324
[2022-07-09 18:37:54] Process Booter - booting sh with args ["/Applications/Sonic Pi.app/Contents/Resources/app/server/beam/tau/boot-mac.sh", "true", "false", "true", "true", "4560", "30321", "30325", "30324", "/Users/maxd/.sonic-pi/log/tau.log", "true", "true", "30323", "iuPzBFUjbvyZlNpKcLJFrY8jg2IpRkVii8Hh/vnuMaAhi0+vPj2kUcF23vSz4ZQen0O12SsjBdinNbJF3iHkLQ==", "-549074090", "prod"]
[2022-07-09 18:37:54] sh /Applications/Sonic Pi.app/Contents/Resources/app/server/beam/tau/boot-mac.sh true false true true 4560 30321 30325 30324 /Users/maxd/.sonic-pi/log/tau.log true true 30323 iuPzBFUjbvyZlNpKcLJFrY8jg2IpRkVii8Hh/vnuMaAhi0+vPj2kUcF23vSz4ZQen0O12SsjBdinNbJF3iHkLQ== -549074090 prod
[2022-07-09 18:37:54] Booting Spider Server
[2022-07-09 18:37:54] 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/sonic-pi-server.rb", "-u", "30318", "30319", "30320", "30320", "4560", "30321", "30325", "-549074090"]
[2022-07-09 18:37:54] /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/sonic-pi-server.rb -u 30318 30319 30320 30320 4560 30321 30325 -549074090
[2022-07-09 18:37:54] 30324 30319 30318 30320 4560 30321 30323 -549074090
[2022-07-09 18:37:54] Blocking main thread until exit signal received...
[2022-07-09 18:37:55] Requesting tau send us its pid. Sending /send-pid-to-daemon, -549074090 to localhost:30321
[2022-07-09 18:37:55] Error talking to Tau - connection refused (perhaps Tau is still booting?)
[2022-07-09 18:37:56] Requesting tau send us its pid. Sending /send-pid-to-daemon, -549074090 to localhost:30321
[2022-07-09 18:37:57] Requesting tau send us its pid. Sending /send-pid-to-daemon, -549074090 to localhost:30321
[2022-07-09 18:37:57] Error talking to Tau - connection refused (perhaps Tau is still booting?)
[2022-07-09 18:37:58] Requesting tau send us its pid. Sending /send-pid-to-daemon, -549074090 to localhost:30321
[2022-07-09 18:37:59] [EXIT] Daemon Process has completed:
[2022-07-09 18:37:59] Daemon Booter is now exiting.
[2022-07-09 18:37:59] Cleaning up any running processes...
[2022-07-09 18:37:59] Process Booter - killing /Applications/Sonic Pi.app/Contents/Resources/app/server/native/ruby/bin/ruby with pid 27123 and args ["--enable-frozen-string-literal", "-E", "utf-8", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/sonic-pi-server.rb", "-u", "30318", "30319", "30320", "30320", "4560", "30321", "30325", "-549074090"], wait_thr status: #<Process::Waiter:0x000000010d7f8970 sleep>, sleep
[2022-07-09 18:37:59] Process Booter - killing /Applications/Sonic Pi.app/Contents/Resources/app/server/native/scsynth with pid 27120 and args ["-u", "30320", "-a", "1024", "-m", "131072", "-D", "0", "-R", "0", "-l", "1", "-i", "0", "-o", "16", "-b", "4096", "-B", "127.0.0.1", "-I", "0"], wait_thr status: #<Process::Waiter:0x000000010d8f9b30 sleep>, sleep
[2022-07-09 18:37:59] Sending TERM kill command to 27120
[2022-07-09 18:37:59] Process 27120 still running, waiting for it to finish... [5]
[2022-07-09 18:37:59] Sending TERM kill command to 27123
[2022-07-09 18:37:59] Process 27123 still running, waiting for it to finish... [5]
[2022-07-09 18:37:59] Requesting tau send us its pid. Sending /send-pid-to-daemon, -549074090 to localhost:30321
[2022-07-09 18:37:59] Error talking to Tau - connection refused (perhaps Tau is still booting?)
[2022-07-09 18:38:00] Process 27120 terminated
[2022-07-09 18:38:00] Process 27123 terminated
[2022-07-09 18:38:00] Requesting tau send us its pid. Sending /send-pid-to-daemon, -549074090 to localhost:30321
[2022-07-09 18:38:00] Daemon received Pid from Tau: [-549074090, 27124]
[2022-07-09 18:38:00] Killing Tau with pid 27124
[2022-07-09 18:38:00] Process Booter - killing sh with pid 27124 and args ["/Applications/Sonic Pi.app/Contents/Resources/app/server/beam/tau/boot-mac.sh", "true", "false", "true", "true", "4560", "30321", "30325", "30324", "/Users/maxd/.sonic-pi/log/tau.log", "true", "true", "30323", "iuPzBFUjbvyZlNpKcLJFrY8jg2IpRkVii8Hh/vnuMaAhi0+vPj2kUcF23vSz4ZQen0O12SsjBdinNbJF3iHkLQ==", "-549074090", "prod"], wait_thr status: #<Process::Waiter:0x000000010d8e90f0 sleep>, sleep
[2022-07-09 18:38:00] Sending TERM kill command to 27124
[2022-07-09 18:38:00] Process 27124 still running, waiting for it to finish... [5]
tau.log:
18:37:55.771 [info] All systems booting....
18:37:55.771 [info] Extracting env TAU_ENV string: prod
18:37:55.771 [info] Extracting env TAU_MIDI_ENABLED bool: true
18:37:55.771 [info] Extracting env TAU_LINK_ENABLED bool: true
18:37:55.771 [info] Extracting env TAU_CUES_ON bool: true
18:37:55.771 [info] Extracting env TAU_OSC_IN_UDP_LOOPBACK_RESTRICTED bool: false
18:37:55.771 [info] Extracting env TAU_MIDI_ON bool: true
18:37:55.771 [info] Extracting env TAU_LINK_ON bool: true
18:37:55.771 [info] Extracting env TAU_OSC_IN_UDP_PORT int: 4560
18:37:55.771 [info] Extracting env TAU_API_PORT int: 30321
18:37:55.771 [info] Extracting env TAU_SPIDER_PORT int: 30325
18:37:55.771 [info] Extracting env TAU_DAEMON_PORT int: 30324
18:37:55.771 [info] Extracting env TAU_DAEMON_TOKEN int: -549074090
18:37:55.771 [info] Initialising MIDI native interface
18:37:55.790 [info] Initialising Link native interface
18:37:55.827 [info] Starting Phoenix server
18:37:55.827 [info] Starting with MIDI server enabled
18:37:55.827 [info] Starting with Link server enabled
18:37:55.827 [info]
+--------------------------------------+
This is the Sonic Pi Link Server
Powered by Erlang 25
Number of detected peers:
0
Current tempo:
60.0
+--------------------------------------+
18:37:58.817 [info]
+--------------------------------------+
This is the Sonic Pi MIDI Server
Powered by Erlang 25
Detected MIDI input ports:
[]
Detected MIDI output ports:
[]
+--------------------------------------+
18:37:58.817 [info]
+--------------------------------------+
This is the Sonic Pi OSC Server
== Tau ==
Powered by Erlang 25
OSC cue forwarding to {127, 0, 0, 1}
on port 30325
+--------------------------------------+
18:37:58.818 [info]
+--------------------------------------+
This is the Sonic Pi API Server
Powered by Erlang 25
+--------------------------------------+
18:37:58.821 [info] Running TauWeb.Endpoint with cowboy 2.9.0 at 127.0.0.1:30323 (http)
18:37:58.821 [info] Access TauWeb.Endpoint at http://localhost:30323
18:38:00.678 [info] API /send-pid-to-daemon -> sending pid to Daemon...
18:38:00.679 [info] SIGTERM received - shutting down
scsynth.log:
Number of Devices: 6
0 : "Max Mayhew’s AirPods P"
1 : "Max Mayhew’s AirPods P"
2 : "MacBook Pro Microphone"
3 : "MacBook Pro Speakers"
4 : "Microsoft Teams Audio"
5 : "ZoomAudioD"
"Max Mayhew’s AirPods P" Input Device
Streams: 1
0 channels 1
"Max Mayhew’s AirPods P" Output Device
Streams: 1
0 channels 2
SC_AudioDriver: sample rate = 48000.000000, driver's block size = 512
SuperCollider 3 server ready.
gui.log:
[API] [INFO ] : Starting...
[API] [INFO ] : Home dir writable:
[API] [INFO ] : Log Path: /Users/maxd/.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] [INFO ] : Reading Boot Daemon output...
[API] [INFO ] : daemon_stdout: 30324
[API] [INFO ] : daemon_stdout: 30319
[API] [INFO ] : daemon_stdout: 30318
[API] [INFO ] : daemon_stdout: 30320
[API] [INFO ] : daemon_stdout: 4560
[API] [INFO ] : daemon_stdout: 30321
[API] [INFO ] : daemon_stdout: 30323
[API] [INFO ] : daemon_stdout: -549074090
[API] [INFO ] : Setting up OSC sender to Spider on port 30318
[API] [INFO ] : Setting up OSC sender to Daemon on port 30324
[API] [INFO ] : Setting up OSC sender to Tau on port 30321
[API] [INFO ] : Setting up Boot Daemon keep alive loop
[API] [INFO ] : API Init Started...
[API] [INFO ] : API State set to: Initializing...
[API] [INFO ] : Going to start pinging server...
[API] [INFO ] : Starting UDP OSC Server on port 30319...
[GUI] - API Init successful
[API] [INFO ] : Pinging Spider Server until a response is received...
[GUI] - API Init successful
[API] [INFO ] : Waiting for Sonic Pi Spider Server to respond...
[API] [INFO ] : UDP OSC Server ready and listening
[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
[GUI] [i18n] - Loading translations for en
[GUI] - translations available
[GUI] - hiding main window
[GUI] - initialising toolbar icons
[GUI] - setting up window structure
[Debug] Adding language combo box entries...
2
[Debug] Adding language system_language to the combo box
[Debug] Adding language en_GB to the combo box
[GUI] [i18n] - Warning: Predefined language name not found: 'en_Latn_US'
[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 ] : .
[API] [INFO ] : Waiting Until Ready... 58
[API] [INFO ] : .
[API] [INFO ] : Waiting Until Ready... 57
[API] [INFO ] : .
[API] [INFO ] : Waiting Until Ready... 56
[API] [INFO ] : .
[API] [INFO ] : Waiting Until Ready... 55
[API] [INFO ] : UDP OSC Server is no longer listening
[API] [INFO ] : .
[API] [ERROR] : Oh no, Spider Server got to an Error State whilst starting...
[GUI] - Critical Error. Unable to connect to server..
[GUI] - Sonic Pi Server failed to start with this error message:
'"]> Server Exception:
exit
["/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_comms.rb:96:in
exit'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_comms.rb:96:in
rescue in block_until_tau_ready!'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_comms.rb:92:inblock_until_tau_ready!'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_api.rb:69:in
block_until_tau_ready!'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/tau_api.rb:48:ininitialize'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/runtime.rb:1466:in
new'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/runtime.rb:1466:ininitialize'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/lang/sound.rb:70:in
block (2 levels) in included'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/lib/sonicpi/lang/ixi.rb:72:inblock (2 levels) in included'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/sonic-pi-server.rb:241:in
new'", "/Applications/Sonic Pi.app/Contents/Resources/app/server/ruby/bin/sonic-pi-server.rb:241:in `[GUI] - Sonic Pi Server failed to start with this error message:
> Critical error! Could not connect to Sonic Pi Server.
The text was updated successfully, but these errors were encountered: