Are there two components required to properly support XBox One integration? Iām seeing āXBox Oneā and āXBox One Smartglass REST Serverā in Supervisor-> Add-ons.
I keep seeing errors in my log regarding XBox, and Iām doing my best to get my install tweaked to as few issues as possible.
In my āXBox Oneā add-on log:
127.0.0.1 - - [2020-07-09 07:43:31] "GET /auth/refresh HTTP/1.1" 500 251 0.004246
127.0.0.1 - - [2020-07-09 07:43:40] "GET /versions HTTP/1.1" 200 317 0.096225
127.0.0.1 - - [2020-07-09 07:43:40] "GET /auth HTTP/1.1" 200 5616 0.002187
[2020-07-09 07:43:40,134] WARNING in manager: Token Auth failed: No valid RefreshToken. Attempting auth via credentials
[2020-07-09 07:43:40,135] ERROR in app: {'success': False, 'message': 'AuthenticationManager was not able to authenticate with provided tokens or user credentials!'}
In the āXBox One Smartglass REST Serverā log:
[s6-init] making user provided files available at /var/run/s6/etc...exited 0.
[s6-init] ensuring user provided files have correct perms...exited 0.
[fix-attrs.d] applying ownership & permissions fixes...
[fix-attrs.d] done.
[cont-init.d] executing container initialization scripts...
[cont-init.d] done.
[services.d] starting services
[services.d] done.
[2020-07-08 19:44:34,500] INFO in rest_server: Starting Xbox Smartglass REST server started on 0.0.0.0:5557
[2020-07-08 19:44:34,501] DEBUG in rest_server: Setting tokenfile path to /root/.local/share/xbox/tokens.json
[2020-07-08 19:44:34,502] INFO in rest_server: Trying to load & refresh tokens
[2020-07-08 19:44:34,529] INFO in manager: Loaded token <class 'xbox.webapi.authentication.token.AccessToken'> from file
[2020-07-08 19:44:34,530] INFO in manager: Loaded token <class 'xbox.webapi.authentication.token.RefreshToken'> from file
[2020-07-08 19:44:34,532] INFO in manager: Loaded token <class 'xbox.webapi.authentication.token.UserToken'> from file
[2020-07-08 19:44:34,533] INFO in manager: Loaded token <class 'xbox.webapi.authentication.token.XSTSToken'> from file
[2020-07-08 19:44:34,534] WARNING in manager: Token Auth failed: No valid RefreshToken. Attempting auth via credentials
[2020-07-08 19:44:34,535] WARNING in rest_server: Failed to authenticate with tokenfile from /root/.local/share/xbox/tokens.json, error: AuthenticationManager was not able to authenticate with provided tokens or user credentials!
Traceback (most recent call last):
File "/usr/bin/xbox-rest-server", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3.8/site-packages/xbox/rest/scripts/rest_server.py", line 55, in main
server.serve_forever()
File "/usr/lib/python3.8/site-packages/gevent/baseserver.py", line 387, in serve_forever
self.start()
File "/usr/lib/python3.8/site-packages/gevent/baseserver.py", line 325, in start
self.init_socket()
File "/usr/lib/python3.8/site-packages/gevent/pywsgi.py", line 1482, in init_socket
StreamServer.init_socket(self)
File "/usr/lib/python3.8/site-packages/gevent/server.py", line 180, in init_socket
self.socket = self.get_listener(self.address, self.backlog, self.family)
File "/usr/lib/python3.8/site-packages/gevent/server.py", line 192, in get_listener
return _tcp_listener(address, backlog=backlog, reuse_addr=cls.reuse_addr, family=family)
File "/usr/lib/python3.8/site-packages/gevent/server.py", line 288, in _tcp_listener
sock.bind(address)
OSError: [Errno 98] Address in use: ('0.0.0.0', 5557)
[cmd] /run.sh exited 1
[cont-finish.d] executing container finish scripts...
[cont-finish.d] done.
[s6-finish] waiting for services.
[s6-finish] sending all processes the TERM signal.