Installed via curl install.py
fished this out of /lokole/logs/lokole_celery_worker.stderr.log
[2021-05-13 15:35:43,700: ERROR/ForkPoolWorker-1] Task opwen_email_client.webapp.tasks.sync[8af92df3-5f9b-4dda-a917-8f6d1ff96452] raised unexpected: TypeError('gethostbyname() argument 1 must be str, bytes or bytearray, not None')
Traceback (most recent call last):
File "/lokole/venv/lib/python3.7/site-packages/celery/app/trace.py", line 412, in trace_task
R = retval = fun(*args, **kwargs)
File "/lokole/venv/lib/python3.7/site-packages/celery/app/trace.py", line 704, in protected_call
return self.run(*args, **kwargs)
File "/lokole/venv/lib/python3.7/site-packages/opwen_email_client/webapp/tasks.py", line 41, in sync
if check_connection(AppConfig.STORAGE_ACCOUNT_HOST, 80):
File "/lokole/venv/lib/python3.7/site-packages/opwen_email_client/util/network.py", line 7, in check_connection
host = gethostbyname(hostname)
TypeError: gethostbyname() argument 1 must be str, bytes or bytearray, not None
pi@raspberrypi:~ $ cat /lokole/state/settings.env
OPWEN_APP_ROOT=
OPWEN_STATE_DIRECTORY=/lokole/state
OPWEN_SESSION_KEY=edit
OPWEN_MAX_UPLOAD_SIZE_MB=10
OPWEN_SIM_TYPE=Ethernet
OPWEN_EMAIL_SERVER_HOSTNAME=mailserver.lokole.ca
OPWEN_CLIENT_NAME=jv-rpi-stock
OPWEN_ROOT_DOMAIN=lokole.ca
OPWEN_RESTART_PATH=/lokole/state/lokole_restarter/lokole_gunicorn=HUP,/lokole/state/lokole_restarter/lokole_celery_worker=,/lokole/state/lokole_restarter/lokole_celery_beat=
OPWEN_SYNC_SCHEDULE=1,16,31,46
OPWEN_CLIENT_ID=edit
OPWEN_REMOTE_ACCOUNT_NAME=edit
OPWEN_REMOTE_ACCOUNT_KEY=edit
OPWEN_REMOTE_RESOURCE_CONTAINER=compressedpackages
Only the server has this variable passed to the running processes. Think this would need to be embedded in the registration reply info.
Installed via curl install.py
fished this out of /lokole/logs/lokole_celery_worker.stderr.log
pi@raspberrypi:~ $ cat /lokole/state/settings.env
Only the server has this variable passed to the running processes. Think this would need to be embedded in the registration reply info.