Page MenuHomePhabricator
Paste P15650

Speechoid error 500 when multiple requests in quick succession
ActivePublic

Authored by Sebastian_Berlin-WMSE on Thu, Apr 29, 8:14 AM.
wikispeech-server_1 | /srv/wikispeech-mockup/wikispeech_server/tmp/tmp262u8kjq: No such file or directory
wikispeech-server_1 | ERROR: ERROR: opusenc was not found. You should probably run something like
wikispeech-server_1 | sudo apt install opus-tools
wikispeech-server_1 |
wikispeech-server_1 | [2021-04-29 08:09:05,719] ERROR in app: Exception on / [POST]
wikispeech-server_1 | Traceback (most recent call last):
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 2447, in wsgi_app
wikispeech-server_1 | response = self.full_dispatch_request()
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1952, in full_dispatch_request
wikispeech-server_1 | rv = self.handle_user_exception(e)
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask_cors/extension.py", line 165, in wrapped_function
wikispeech-server_1 | return cors_after_request(app.make_response(f(*args, **kwargs)))
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1821, in handle_user_exception
wikispeech-server_1 | reraise(exc_type, exc_value, tb)
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/_compat.py", line 39, in reraise
wikispeech-server_1 | raise value
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1950, in full_dispatch_request
wikispeech-server_1 | rv = self.dispatch_request()
wikispeech-server_1 | File "/opt/lib/python/site-packages/flask/app.py", line 1936, in dispatch_request
wikispeech-server_1 | return self.view_functions[rule.endpoint](**req.view_args)
wikispeech-server_1 | File "./wikispeech_server/wikispeech.py", line 289, in wikispeech
wikispeech-server_1 | result = synthesise(lang, voice_name, markup,"markup",output_type, hostname=hostname)
wikispeech-server_1 | File "./wikispeech_server/wikispeech.py", line 704, in synthesise
wikispeech-server_1 | (audio_file, audio_data) = saveAndConvertAudio(audio_file)
wikispeech-server_1 | File "./wikispeech_server/wikispeech.py", line 1044, in saveAndConvertAudio
mary-tts_1 | DONE runnning htsMLSAVocoder
wikispeech-server_1 | audio_data = "%s" % encode_audio(tmpopus).decode()
wikispeech-server_1 | File "./wikispeech_server/wikispeech.py", line 726, in encode_audio
wikispeech-server_1 | f=open(wav_file, "rb")
wikispeech-server_1 | FileNotFoundError: [Errno 2] No such file or directory: '/srv/wikispeech-mockup/wikispeech_server/tmp/tmp262u8kjq.opus'
wikispeech-server_1 | 172.16.0.164 - - [29/Apr/2021 08:09:05] "POST / HTTP/1.1" 500 -