Hi,
I’m trying to set up the application and after running the docker run command, the docker container immediately exits (I confirm this with docker ps -a ) without any output. When running docker events in the background to see more info, I get this output:
2019-08-29T16:11:45.200062466+02:00 container create 4e8650f5116ed8384021aa185375148850799252b56f5679c6afde457449d356 (image=robwolff3/ga-webserver, name=gawebserver)
4e8650f5116ed8384021aa185375148850799252b56f5679c6afde457449d356
2019-08-29T16:11:45.502792885+02:00 network connect fbf910b6257585325b4c9ede0e902fdd43f7d69cd85e4d021f15e33c8014b138 (container=4e8650f5116ed8384021aa185375148850799252b56f5679c6afde457449d356, name=bridge, type=bridge)
2019-08-29T16:11:46.861398538+02:00 container start 4e8650f5116ed8384021aa185375148850799252b56f5679c6afde457449d356 (image=robwolff3/ga-webserver, name=gawebserver)
2019-08-29T16:11:47.078032080+02:00 container die 4e8650f5116ed8384021aa185375148850799252b56f5679c6afde457449d356 (exitCode=1, image=robwolff3/ga-webserver, name=gawebserver)
2019-08-29T16:11:47.610913892+02:00 network disconnect fbf910b6257585325b4c9ede0e902fdd43f7d69cd85e4d021f15e33c8014b138 (container=4e8650f5116ed8384021aa185375148850799252b56f5679c6afde457449d356, name=bridge, type=bridge)
Did anyone have the same problem? Or does anyone know how to solve this?
UPDATE: nevermind, I was running on raspberry pi so I had to modify the dockerfile like ryan4559 said, now it doesn’t exit immediately.
UPDATE2: Afterwards I ran into the same problem as ciB , where after going through the steps on <local_ip>:9324 I get the error “invalid grant” and the docker container keeps restarting with this as output of “docker logs -f /gawebserver” :
[Info] Start WebUI for handling oauth2
[29/Aug/2019:19:54:46] ENGINE Listening for SIGTERM.
[29/Aug/2019:19:54:46] ENGINE Listening for SIGHUP.
[29/Aug/2019:19:54:46] ENGINE Listening for SIGUSR1.
[29/Aug/2019:19:54:46] ENGINE Bus STARTING
CherryPy Checker:
The Application mounted at '' has an empty config.
[29/Aug/2019:19:54:46] ENGINE Started monitor thread 'Autoreloader'.
[29/Aug/2019:19:54:47] ENGINE Serving on http://0.0.0.0:9324
[29/Aug/2019:19:54:47] ENGINE Bus STARTED
192.168.0.216 - - [29/Aug/2019:19:54:56] "GET / HTTP/1.1" 200 714 "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36"
[29/Aug/2019:19:55:20] HTTP
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/cherrypy/_cprequest.py", line 628, in respond
self._do_respond(path_info)
File "/usr/local/lib/python3.5/dist-packages/cherrypy/_cprequest.py", line 687, in _do_respond
response.body = self.handler()
File "/usr/local/lib/python3.5/dist-packages/cherrypy/lib/encoding.py", line 219, in __call__
self.body = self.oldhandler(*args, **kwargs)
File "/usr/local/lib/python3.5/dist-packages/cherrypy/_cpdispatch.py", line 54, in __call__
return self.callable(*self.args, **self.kwargs)
File "/oauth.py", line 46, in token
self.oauth2.fetch_token(self.user_data['token_uri'], client_secret=self.user_data['client_secret'], code=token)
File "/usr/local/lib/python3.5/dist-packages/requests_oauthlib/oauth2_session.py", line 307, in fetch_token
self._client.parse_request_body_response(r.text, scope=self.scope)
File "/usr/local/lib/python3.5/dist-packages/oauthlib/oauth2/rfc6749/clients/base.py", line 421, in parse_request_body_response
self.token = parse_token_response(body, scope=scope)
File "/usr/local/lib/python3.5/dist-packages/oauthlib/oauth2/rfc6749/parameters.py", line 431, in parse_token_response
validate_token_parameters(params)
File "/usr/local/lib/python3.5/dist-packages/oauthlib/oauth2/rfc6749/parameters.py", line 438, in validate_token_parameters
raise_from_error(params.get('error'), params)
File "/usr/local/lib/python3.5/dist-packages/oauthlib/oauth2/rfc6749/errors.py", line 405, in raise_from_error
raise cls(**kwargs)
oauthlib.oauth2.rfc6749.errors.InvalidGrantError: (invalid_grant) Bad Request
[29/Aug/2019:19:55:20] HTTP
Request Headers:
ACCEPT-ENCODING: gzip, deflate
UPGRADE-INSECURE-REQUESTS: 1
REFERER: http://192.168.0.123:9324/
CONNECTION: keep-alive
HOST: 192.168.0.123:9324
USER-AGENT: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36
Remote-Addr: 192.168.0.216
ACCEPT-LANGUAGE: en-US,en;q=0.9
CACHE-CONTROL: max-age=0
COOKIE: Squeezebox-player=cc%3Acc%3A09%3A1c%3A42%3Adc
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3
192.168.0.216 - - [29/Aug/2019:19:55:20] "GET /token?token=4%2FqgE2mnSjHIuBhd1UWxKkuLu_5v7ycLQ2alLswF_iRgCMdp_lLcYxyHM HTTP/1.1" 500 2479 "http://192.168.0.123:9324/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.87 Safari/537.36"
[29/Aug/2019:19:55:25] ENGINE SystemExit raised: shutting down HTTP server
[29/Aug/2019:19:55:25] ENGINE Bus STOPPING
[29/Aug/2019:19:55:25] ENGINE HTTP Server cherrypy._cpwsgi_server.CPWSGIServer(('0.0.0.0', 9324)) shut down
[29/Aug/2019:19:55:25] ENGINE Stopped thread 'Autoreloader'.
[29/Aug/2019:19:55:25] ENGINE Bus STOPPED
[29/Aug/2019:19:55:25] ENGINE Bus EXITING
[29/Aug/2019:19:55:25] ENGINE Bus EXITED
[29/Aug/2019:19:55:25] ENGINE Waiting for child threads to terminate...
ALSA lib pcm.c:8382:(snd_pcm_set_params) Sample format not available for CAPTURE: Invalid argument
[FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
ALSA lib pcm.c:8382:(snd_pcm_set_params) Sample format not available for CAPTURE: Invalid argument
[FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
ALSA lib pcm.c:8382:(snd_pcm_set_params) Sample format not available for CAPTURE: Invalid argument
[FATAL:audio_input_stream.cc(47)] Input device could not be opened: default
To me it looks like something is wrong with the .asoundrc file I’ve put into the container, because I have no idea what this file should contain so I copied the first one I could find online, this is the content:
pcm.!default {
type hw
card 1
}
ctl.!default {
type hw
card 1
}
I took card 1 because I guess it indicates which audio card to take, so since I’m using a dummy audio driver, and by issuing "cat /proc/asound/cards I got :
0 [ALSA ]: bcm2835_alsa - bcm2835 ALSA
bcm2835 ALSA
1 [Dummy ]: Dummy - Dummy
Dummy 1
I assume the card in .asoundrc should be 1.
Can anybody tell me if I’m doing the right things here?
Thank you in advance!