Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions main_em.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@
if not ret.json().get('enabled', False):
raise RuntimeError('Main app is not enabled, sleeping for a while...')
except (httpx.RequestError, RuntimeError) as e:
print(f'{MAX_TRIES-_max_tries+1}/{MAX_TRIES}: Error checking main app status: {e}', flush=True)
print(
f'{MAX_TRIES-_max_tries+1}/{MAX_TRIES}:'
f' [Embedding server] Waiting for the main app to be enabled/ready: {e}',
flush=True,
)
_last_err = e
sleep(STARTUP_CHECK_SEC)
_max_tries -= 1
Expand All @@ -69,7 +73,14 @@
break

if not _enabled:
logger.error('Failed waiting for the main app to be enabled, exiting...', exc_info=_last_err)
logger.error(
'Failed waiting for the main app to be enabled. This could indicate an issue with the AppAPI'
' Deploy Daemon setup or some issue in the main app setup. Some common causes of the latter'
' could be no/no stable internet connection to download the required models, disk space full,'
' or this app not being able to contact the Nextcloud server to report progress of the model'
' download.',
exc_info=_last_err,
)
exit(1)

# update model path to be in the persistent storage if it is not already valid
Expand Down
Loading