Webserver shutdown and restart when switching profiles
#1
Hello everyone, this is my first post so please be nice Big Grin

I have been playing around with XBMC for a month now and I'm loving it!

I've installed XBMC Live 9.11 R26018 on my acer revo and have been using it happily for some time now.

I recently found out about profiles so I decided to set them up and put a lock on the master profile. My problem is that I'm using the android remote to control XBMC which relies on the HTTP API to send commands.

I looked at the debug log (below) and it seems the WebServer is being shutdown when I'm switching between profiles, but it doesn't start up again until I've logged entered my lock code. The problem with this is I get a box asking for me to enter my lock code but the remote I'm using no longer works and I have to plug in a keyboard or mouse to enter the code.

Does anyone know a way I can get around this issue? or somehow stop the webserver from shutting down? I'm not entirely sure what to do!

Code:
17:28:24 T:130931568 M:1438232576   DEBUG: webs: accept request
17:28:24 T:3078772624 M:1438232576   DEBUG: HttpApi Start command: GetCurrentlyPlaying  paras: GetCurrentlyPlaying
17:28:24 T:3078772624 M:1438232576   DEBUG: OnKey: 11 pressed, action is 7
17:28:25 T:3078772624 M:1438105600   DEBUG: ------ Window Deinit (DialogContextMenu.xml) ------
17:28:25 T:3078772624 M:1438994432   DEBUG: NetworkMessage - Signaling network services to stop
17:28:25 T:3078772624 M:1438994432  NOTICE: Webserver: Stopping...
17:28:25 T:3078772624 M:1438994432  NOTICE: ES: Stopping event server
17:28:25 T:3078772624 M:1438994432   DEBUG: NetworkMessage - Waiting for network services to stop
17:28:25 T:3078772624 M:1438994432  NOTICE: stopping zeroconf publishing
17:28:25 T:3078772624 M:1438994432   DEBUG: CLastfmScrobbler: Journal with 0 entries saved to special://masterprofile/LastfmScrobbler.xml
17:28:25 T:3078772624 M:1438994432   DEBUG: CLibrefmScrobbler: Journal with 0 entries saved to special://masterprofile/LibrefmScrobbler.xml
17:28:25 T:130931568 M:1438994432   DEBUG: WebServer:Exiting thread sockReady=0, sockSelect=0.
17:28:25 T:130931568 M:1438994432   DEBUG: WebServer:OnExit - Exit web server.
17:28:25 T:130931568 M:1438994432   DEBUG: Thread 130931568 terminating
17:28:25 T:3078772624 M:1438994432   DEBUG: xbmcHttpShim ends
17:28:25 T:3078772624 M:1438994432   DEBUG: xbmcHttp ends
17:28:25 T:3078772624 M:1438994432  NOTICE: Webserver: Stopped...
17:28:25 T:105962352 M:1439019008  NOTICE: ES: UDP Event server stopped
17:28:25 T:105962352 M:1439019008   DEBUG: Thread 105962352 terminating
17:28:25 T:3078772624 M:1439019008   DEBUG: NetworkMessage - Signaling network services to stop
17:28:25 T:3078772624 M:1439019008  NOTICE: ES: Stopping event server
17:28:25 T:3078772624 M:1439019008   DEBUG: NetworkMessage - Waiting for network services to stop
17:28:25 T:3078772624 M:1439019008  NOTICE: stopping zeroconf publishing
17:28:25 T:3078772624 M:1439019008   DEBUG: CLastfmScrobbler: Journal with 0 entries saved to special://masterprofile/LastfmScrobbler.xml
17:28:25 T:3078772624 M:1439019008   DEBUG: CLibrefmScrobbler: Journal with 0 entries saved to special://masterprofile/LibrefmScrobbler.xml
17:28:25 T:3078772624 M:1439019008  NOTICE: special://profile/ is mapped to: special://masterprofile/profiles/profile01/
17:28:25 T:3078772624 M:1439019008  NOTICE: loading special://profile/guisettings.xml
17:28:25 T:3078772624 M:1439019008  NOTICE: Getting hardware information now...
17:28:25 T:3078772624 M:1439019008    INFO: Using digital output
17:28:25 T:3078772624 M:1439019008    INFO: AC3 pass through is enabled
17:28:25 T:3078772624 M:1439019008    INFO: DTS pass through is enabled
17:28:25 T:3078772624 M:1439019008  NOTICE: Checking resolution 12
17:28:25 T:3078772624 M:1439019008  NOTICE: Loading player core factory settings from special://xbmc/system/playercorefactory.xml.
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerCoreConfig::<ctor>: created player DVDPlayer for core 1
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerCoreConfig::<ctor>: created player oldmplayercore for core 1
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerCoreConfig::<ctor>: created player PAPlayer for core 3
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: system rules
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtv
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: hdhomerun/myth/rtmp/mms/udp
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: lastfm/shout
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: rtsp
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: streams
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: flv/aacp/sdp
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: mp2
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvd
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdfile
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: dvdimage
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: sdp/asf
17:28:25 T:3078772624 M:1439019008   DEBUG: CPlayerSelectionRule::Initialize: creating rule: nsv
17:28:25 T:3078772624 M:1439019008  NOTICE: Loaded playercorefactory configuration
17:28:25 T:3078772624 M:1439019008  NOTICE: Loading player core factory settings from special://masterprofile/playercorefactory.xml.
17:28:25 T:3078772624 M:1439019008  NOTICE: special://masterprofile/playercorefactory.xml does not exist. Skipping.
17:28:25 T:3078772624 M:1439019008  NOTICE: No advancedsettings.xml to load (special://masterprofile/advancedsettings.xml)
17:28:25 T:3078772624 M:1439019008  NOTICE: Default DVD Player: dvdplayer
17:28:25 T:3078772624 M:1439019008  NOTICE: Default Video Player: dvdplayer
17:28:25 T:3078772624 M:1439019008  NOTICE: Default Audio Player: paplayer
17:28:25 T:3078772624 M:1439019008  NOTICE: special://masterprofile/profiles/profile01/sources.xml
17:28:26 T:3078772624 M:1442344960 WARNING: file doesnt have <fontset> with name 'Aeon_Standard', defaulting to first fontset
Reply
#2
well problem here is that one profile might have the webserver enabled and the other might not, hence the shutdown off it. This means that its actually correct doing so but its not very nice since you rely of it for input.

This is a tricky mess and I guess at some point we should just always have the webserver running, but we would need to be sure its 100% secure first.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
Hi, Thanks for the reply

I've checked the settings and they both have the webserver enabled. Both profiles seem to be using the same settings because as soon as I put in the master lock code, the webserver restarts and I can use the remote again.

Maybe it's just the order in which things are started up when loading the profile?
Reply
#4
yes but when you are in between profiles you could possibly switch to one that doesn't have it enabled (now you probably have it enabled on all profiles) so therefor its disabled during the login to not compromise security.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#5
Oh right.. I see, I made the mistake of thinking that the network settings were global settings because they just happen to be the same for both my profiles!

Looks like I might have to get an IR remote then, although it would have been ideal to be able to always use the android remote.

Just out of curiosity, do you know if anything will ever be done to keep the webserver running all the time? I guess you would only allow access to library if a profile is logged in and when noone is logged to only allow access direction arrows and a selection key.

Thanks for your time.
Reply

Logout Mark Read Team Forum Stats Members Help
Webserver shutdown and restart when switching profiles0