einsteinx2/WaveBox

Potential hang on failed service start

Closed this issue · 1 comments

From Ben's post:

Merged. However, I noticed another issue with the previous service enhancements. On Linux, if it can't start the services, it hangs the console. Ctrl+C doesn't work. Not sure why yet didn't get to debug, but something isn't shutting down. Maybe you can take a look? Run WaveBox on linux, with a new config file so it doesn't find any media folders and see what happens. That reproduces it for me.

From what I can tell, I don't appear to have this issue. When the FileManagerService attempts to start, it checks for valid media folders. If there aren't any, it won't start, causing the server to stop. WaveBox does exit successfully for me. Here's a log:

2013-07-18 09:23:44,283 INFO WaveBox.WaveBoxService [50] - Initializing WaveBoxService
2013-07-18 09:23:44,306 INFO WaveBox.WaveBoxService [93] - BuildDate timestamp: 1374143023
2013-07-18 09:23:44,308 INFO WaveBox.WaveBoxService [102] - Created temp folder: /tmp/wavebox
2013-07-18 09:23:44,309 INFO WaveBox.WaveBoxService [153] - Starting...
2013-07-18 09:23:44,309 INFO WaveBox.WaveBoxService [158] - Started!
2013-07-18 09:23:44,367 INFO WaveBox.WaveBoxMain [37] - Initializing WaveBox 0.9.0.0 on Linux platform...
2013-07-18 09:23:44,421 INFO WaveBox.Static.Database [45] - Database file doesn't exist; Creating it : wavebox.db
2013-07-18 09:23:44,461 INFO WaveBox.Static.Database [72] - Query log database file doesn't exist; Creating it : wavebox_querylog.db
2013-07-18 09:23:44,475 INFO WaveBox.Static.ServerSettings [334] - Setting file doesn't exist; Creating it : wavebox.conf
2013-07-18 09:23:44,478 INFO WaveBox.Static.ServerSettings [57] - Reading settings: /home/matt/.wavebox/wavebox.conf
2013-07-18 09:23:44,546 INFO WaveBox.Static.ServerSettings [371] - Media folder does not exist: /srv/your/media/here
2013-07-18 09:23:44,712 INFO WaveBox.Static.ServerSettings [89] - settings changed: True
2013-07-18 09:23:44,714 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: autoupdate -> WaveBox.Service.Services.AutoUpdateService
2013-07-18 09:23:44,714 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: cron -> WaveBox.Service.Services.CronService
2013-07-18 09:23:44,714 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: devicesync -> WaveBox.Service.Services.DeviceSyncService
2013-07-18 09:23:44,715 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: dynamicdns -> WaveBox.Service.Services.DynamicDnsService
2013-07-18 09:23:44,715 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: filemanager -> WaveBox.Service.Services.FileManagerService
2013-07-18 09:23:44,715 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: http -> WaveBox.Service.Services.HttpService
2013-07-18 09:23:44,715 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: jukebox -> WaveBox.Service.Services.JukeboxService
2013-07-18 09:23:44,716 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: nat -> WaveBox.Service.Services.NatService
2013-07-18 09:23:44,716 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: transcode -> WaveBox.Service.Services.TranscodeService
2013-07-18 09:23:44,716 INFO WaveBox.Service.ServiceFactory [45] - Discovered service: zeroconf -> WaveBox.Service.Services.ZeroConfService
2013-07-18 09:23:44,718 INFO WaveBox.Service.ServiceManager [141] - Starting all registered services...
2013-07-18 09:23:44,718 INFO WaveBox.Service.Services.AutoUpdateService [76] - Checking for updates
2013-07-18 09:23:44,737 INFO WaveBox.Service.ServiceManager [231] -   - Started: autoupdate
2013-07-18 09:23:44,806 INFO WaveBox.Service.ServiceManager [231] -   - Started: devicesync
2013-07-18 09:23:44,826 ERROR WaveBox.Service.Services.DynamicDnsService [40] - Could not start DynamicDns service, due to null ServerUrl
2013-07-18 09:23:44,826 ERROR WaveBox.Service.ServiceManager [237] -   ! Failed to start: dynamicdns
2013-07-18 09:23:44,826 ERROR WaveBox.Service.ServiceManager [158] - Failed to start service from list: dynamicdns
2013-07-18 09:23:44,846 INFO WaveBox.Service.ServiceManager [231] -   - Started: jukebox
2013-07-18 09:23:44,857 INFO WaveBox.Service.ServiceManager [231] -   - Started: nat
2013-07-18 09:23:44,858 ERROR WaveBox.Service.Services.ZeroConfService [36] - Could not start ZeroConf service, due to null ServerUrl
2013-07-18 09:23:44,858 ERROR WaveBox.Service.ServiceManager [237] -   ! Failed to start: zeroconf
2013-07-18 09:23:44,858 ERROR WaveBox.Service.ServiceManager [158] - Failed to start service from list: zeroconf
2013-07-18 09:23:44,859 INFO WaveBox.Service.Services.CronService [30] - Scheduling and starting all cronjobs...
2013-07-18 09:23:44,860 INFO WaveBox.OperationQueue.DelayedOperationQueue [92] - Queuing new PodcastFeedCheck!
2013-07-18 09:23:44,861 INFO WaveBox.OperationQueue.DelayedOperationQueue [92] - Queuing new UserPurge!
2013-07-18 09:23:44,861 INFO WaveBox.Service.Services.CronService [40] - All cronjobs started!
2013-07-18 09:23:44,863 INFO WaveBox.Service.ServiceManager [231] -   - Started: cron *
2013-07-18 09:23:44,865 INFO WaveBox.OperationQueue.DelayedOperationQueue [92] - Queuing new PodcastFeedCheck!
2013-07-18 09:23:44,865 INFO WaveBox.OperationQueue.DelayedOperationQueue [46] - WaveBox.Service.Services.Cron.FeedCheckOperation fired
2013-07-18 09:23:44,865 INFO WaveBox.OperationQueue.DelayedOperationQueue [92] - Queuing new OrphanScanOperation!
2013-07-18 09:23:44,865 WARN WaveBox.Service.Services.FileManagerService [119] - No media folders defined, cannot start FileManager service
2013-07-18 09:23:44,866 ERROR WaveBox.Service.ServiceManager [237] -   ! Failed to start: filemanager
2013-07-18 09:23:44,866 INFO WaveBox.OperationQueue.DelayedOperationQueue [92] - Queuing new UserPurge!
2013-07-18 09:23:44,866 ERROR WaveBox.Service.ServiceManager [242] - Service filemanager is required, exiting now!
2013-07-18 09:23:44,866 INFO WaveBox.OperationQueue.DelayedOperationQueue [46] - WaveBox.Service.Services.Cron.UserPurgeOperation fired
[zsh|matt@servnerr-2]:~/wavebox/WaveBox.Server (master) ±

Can you provide any more info, @einsteinx2 ?

Probably fixed due to merge of #123 .