Problem:
Upgrade to Smartproxy 3.10.1 from 3.9.1 and register it as a new service in Windows. The service failed to start. This also affects the latest 3.13.0 smartproxy.
I troubleshoot the issue, and it is due to the version of concurrent-ruby 1.3.5
Release v1.3.5, edge v0.7.2 (15 January 2025)
concurrent-ruby:
- (#1062) Remove dependency on logger.
concurrent-ruby-edge:
- (#1062) Remove dependency on logger.
the smartproxy Gemfile install the latest.
gem ‘concurrent-ruby’, ‘~> 1.0’, require: ‘concurrent’
I can work around the issue by changing the Gemfile to
gem ‘concurrent-ruby’, ‘= 1.3.4’, require: ‘concurrent’ and rerun the bundle
command.
Expected outcome:
Service in running state.
Foreman and Proxy versions:
Foreman 3.10.1, Smartproxy 3.10.1
Foreman and Proxy plugin versions:
Distribution and version:
Other relevant data:
2025-01-30 11:15:24 -0800 Service is initializing
2025-01-30 11:15:29 -0800 Service is running
2025-01-30 11:15:29 -0800 Daemon failure: uninitialized constant Logger
Did you mean? Logging C:/smart-proxy/smart-proxy-3.10.1/lib/proxy/log_buffer/buffer.rb:42:in initialize' C:/smart-proxy/smart-proxy-3.10.1/lib/proxy/log_buffer/buffer.rb:34:in
new’
C:/smart-proxy/smart-proxy-3.10.1/lib/proxy/log_buffer/buffer.rb:34:in instance' C:/smart-proxy/smart-proxy-3.10.1/lib/proxy/log_buffer/decorator.rb:12:in
initialize’
C:/smart-proxy/smart-proxy-3.10.1/lib/proxy/log_buffer/decorator.rb:6:in new' C:/smart-proxy/smart-proxy-3.10.1/lib/proxy/log_buffer/decorator.rb:6:in
instance’
C:/smart-proxy/smart-proxy-3.10.1/lib/proxy/log.rb:8:in logger' C:/smart-proxy/smart-proxy-3.10.1/lib/launcher.rb:148:in
rescue in launch’
C:/smart-proxy/smart-proxy-3.10.1/lib/launcher.rb:126:in launch' C:/smart-proxy/smart-proxy-3.10.1/bin/smart-proxy-win-service:28:in
service_main’
C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/win32-service-2.3.2/lib/win32/daemon.rb:321:in mainloop' C:/Ruby27-x64/lib/ruby/gems/2.7.0/gems/win32-service-2.3.2/lib/win32/daemon.rb:211:in
mainloop’
C:/smart-proxy/smart-proxy-3.10.1/bin/smart-proxy-win-service:39:in `’