Code Monkey home page Code Monkey logo

pyrar's People

Contributors

james-stevens avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

pyrar's Issues

error Starting gunicorn

Not sure what a healthy start is supposed to look like, yet. I'm still getting some errors and reloads, despite being confident I haven't botched any of the setup. Any ideas on this? (just took a small sample of the output before I killed it)

root@vps:/opt/config# /opt/pyrar/INSTALL_ON_UBUNTU_SERVER/run_pyrar
chown: /usr/share/doc/postfix/readme: No such file or directory
Jun 26 00:14:08 82503dbea2e8 syslogd 1.5.1: restart (remote reception).
Jun 26 00:14:08 82503dbea2e8 init: starting pid 81, tty '': '/usr/local/bin/start_wsgi_webui'
Jun 26 00:14:08 82503dbea2e8 init: starting pid 83, tty '': '/usr/local/bin/start_wsgi_admin'
Jun 26 00:14:08 82503dbea2e8 init: starting pid 86, tty '': '/usr/local/bin/start_pdns'
Jun 26 00:14:08 82503dbea2e8 init: starting pid 89, tty '': '/usr/local/bin/start_nginx'
Jun 26 00:14:08 82503dbea2e8 init: starting pid 92, tty '': '/usr/local/bin/start_backend_runner'
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 Loading '/usr/lib/pdns/pdns/libgmysqlbackend.so'
Jun 26 00:14:08 82503dbea2e8 pdns[90]: Loading '/usr/lib/pdns/pdns/libgmysqlbackend.so'
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 This is a standalone pdns
Jun 26 00:14:08 82503dbea2e8 pdns[90]: This is a standalone pdns
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 Created local state directory '/var/run/pdns/'
Jun 26 00:14:08 82503dbea2e8 pdns[90]: Created local state directory '/var/run/pdns/'
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 Listening on controlsocket in '/var/run/pdns/pdns.controlsocket'
Jun 26 00:14:08 82503dbea2e8 pdns[90]: Listening on controlsocket in '/var/run/pdns/pdns.controlsocket'
Jun 26 00:14:08 82503dbea2e8 init: starting pid 95, tty '': '/usr/local/bin/start_cardproc'
Jun 26 00:14:08 82503dbea2e8 su: + pts/0 root:daemon
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 UDP server bound to 0.0.0.0:53
Jun 26 00:14:08 82503dbea2e8 pdns[90]: UDP server bound to 0.0.0.0:53
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 UDP server bound to 0.0.0.0:5353
Jun 26 00:14:08 82503dbea2e8 pdns[90]: UDP server bound to 0.0.0.0:5353
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 TCP server bound to 0.0.0.0:53
Jun 26 00:14:08 82503dbea2e8 pdns[90]: TCP server bound to 0.0.0.0:53
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 TCP server bound to 0.0.0.0:5353
Jun 26 00:14:08 82503dbea2e8 pdns[90]: TCP server bound to 0.0.0.0:5353
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 PowerDNS Authoritative Server 4.6.2 (C) 2001-2022 PowerDNS.COM BV
Jun 26 00:14:08 82503dbea2e8 pdns[90]: PowerDNS Authoritative Server 4.6.2 (C) 2001-2022 PowerDNS.COM BV
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 Using 64-bits mode. Built using gcc 11.2.1 20220219 on May 13 2022 11:37:19 by buildozer@build-3-16-x86_64.
Jun 26 00:14:08 82503dbea2e8 pdns[90]: Using 64-bits mode. Built using gcc 11.2.1 20220219 on May 13 2022 11:37:19 by buildozer@build-3-16-x86_64.
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Jun 26 00:14:08 82503dbea2e8 pdns[90]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Jun 26 00:14:08 82503dbea2e8 init: starting pid 98, tty '': '/usr/local/bin/start_spooler'
Jun 26 00:14:08 82503dbea2e8 init: starting pid 104, tty '': '/usr/sbin/crond -f -c /etc/crontabs -l 9'
Jun 26 00:14:08 82503dbea2e8 init: starting pid 107, tty '': '/usr/sbin/postfix start-fg >/tmp/postfix.log 2>&1'
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 [webserver] Listening for HTTP requests on 0.0.0.0:8081
Jun 26 00:14:08 82503dbea2e8 pdns[90]: [webserver] Listening for HTTP requests on 0.0.0.0:8081
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 Creating backend connection for TCP
Jun 26 00:14:08 82503dbea2e8 pdns[90]: Creating backend connection for TCP
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 About to create 3 backend threads for UDP
Jun 26 00:14:08 82503dbea2e8 pdns[90]: About to create 3 backend threads for UDP
Jun 26 00:14:08 82503dbea2e8 sqlsh: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:08 82503dbea2e8 sqlsh: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 26 00:14:08 82503dbea2e8 sqlsh: [sqlsh:19/] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 26 00:14:08 82503dbea2e8 pdns[90]: Done launching threads, ready to distribute questions
Jun 26 00:14:08 82503dbea2e8 pdns: Jun 26 00:14:08 Done launching threads, ready to distribute questions
Jun 26 00:14:09 82503dbea2e8 run_cardproc.py: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:09 82503dbea2e8 run_cardproc.py: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 26 00:14:09 82503dbea2e8 run_spooler.py: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:09 82503dbea2e8 run_spooler.py: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 26 00:14:09 82503dbea2e8 admin_ui: [2023-06-26 00:14:09 +0000] [87] [INFO] Starting gunicorn 20.0.4
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [87] Starting gunicorn 20.0.4
Jun 26 00:14:09 82503dbea2e8 admin_ui: [2023-06-26 00:14:09 +0000] [87] [INFO] Listening at: unix:/run/wsgi_admin.sock (87)
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [87] Listening at: unix:/run/wsgi_admin.sock (87)
Jun 26 00:14:09 82503dbea2e8 admin_ui: [2023-06-26 00:14:09 +0000] [87] [INFO] Using worker: sync
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [87] Using worker: sync
Jun 26 00:14:09 82503dbea2e8 admin_ui: [2023-06-26 00:14:09 +0000] [155] [INFO] Booting worker with pid: 155
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [155] Booting worker with pid: 155
Jun 26 00:14:09 82503dbea2e8 admin_ui: [2023-06-26 00:14:09 +0000] [157] [INFO] Booting worker with pid: 157
Jun 26 00:14:09 82503dbea2e8 admin_ui: [2023-06-26 00:14:09 +0000] [158] [INFO] Booting worker with pid: 158
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [157] Booting worker with pid: 157
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [158] Booting worker with pid: 158
Jun 26 00:14:09 82503dbea2e8 webui: [2023-06-26 00:14:09 +0000] [84] [INFO] Starting gunicorn 20.0.4
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [84] Starting gunicorn 20.0.4
Jun 26 00:14:09 82503dbea2e8 webui: [2023-06-26 00:14:09 +0000] [84] [INFO] Listening at: unix:/run/wsgi_webui.sock (84)
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [84] Listening at: unix:/run/wsgi_webui.sock (84)
Jun 26 00:14:09 82503dbea2e8 webui: [2023-06-26 00:14:09 +0000] [84] [INFO] Using worker: sync
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [84] Using worker: sync
Jun 26 00:14:09 82503dbea2e8 webui: [2023-06-26 00:14:09 +0000] [161] [INFO] Booting worker with pid: 161
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [161] Booting worker with pid: 161
Jun 26 00:14:09 82503dbea2e8 webui: [2023-06-26 00:14:09 +0000] [164] [INFO] Booting worker with pid: 164
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [164] Booting worker with pid: 164
Jun 26 00:14:09 82503dbea2e8 run_spooler.py[105]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 26 00:14:09 82503dbea2e8 run_spooler.py[105]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/registry.json'
Jun 26 00:14:09 82503dbea2e8 run_spooler.py[105]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/priority.json'
Jun 26 00:14:09 82503dbea2e8 run_spooler.py[105]: [run_spooler:163/run_server] SMTP SPOOLER RUNNING
Jun 26 00:14:09 82503dbea2e8 webui: [2023-06-26 00:14:09 +0000] [167] [INFO] Booting worker with pid: 167
Jun 26 00:14:09 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:09 +0000] [99] [INFO] Starting gunicorn 20.0.4
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [99] Starting gunicorn 20.0.4
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [167] Booting worker with pid: 167
Jun 26 00:14:09 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:09 +0000] [99] [INFO] Listening at: unix:/run/epp/wsgi_epprest_centralnic.sock (99)
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [99] Listening at: unix:/run/epp/wsgi_epprest_centralnic.sock (99)
Jun 26 00:14:09 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:09 +0000] [99] [INFO] Using worker: sync
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [99] Using worker: sync
Jun 26 00:14:09 82503dbea2e8 run_cardproc.py[102]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 26 00:14:09 82503dbea2e8 run_cardproc.py[102]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/registry.json'
Jun 26 00:14:09 82503dbea2e8 run_cardproc.py[102]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/priority.json'
Jun 26 00:14:09 82503dbea2e8 run_cardproc.py[102]: [run_cardproc:54/run_server] PAY-ENGINE RUNNING
Jun 26 00:14:09 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:09 +0000] [170] [INFO] Booting worker with pid: 170
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [170] Booting worker with pid: 170
Jun 26 00:14:09 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:09 +0000] [171] [INFO] Booting worker with pid: 171
Jun 26 00:14:09 82503dbea2e8 webui: [2023-06-26 00:14:09 +0000] [173] [INFO] Booting worker with pid: 173
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [171] Booting worker with pid: 171
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [173] Booting worker with pid: 173
Jun 26 00:14:09 82503dbea2e8 webui: [2023-06-26 00:14:09 +0000] [177] [INFO] Booting worker with pid: 177
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [177] Booting worker with pid: 177
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [179] Booting worker with pid: 179
Jun 26 00:14:09 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:09 +0000] [179] [INFO] Booting worker with pid: 179
Jun 26 00:14:09 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:09 +0000] [181] [INFO] Booting worker with pid: 181
Jun 26 00:14:09 localhost gunicorn.wsgi.error: [181] Booting worker with pid: 181
Jun 26 00:14:09 82503dbea2e8 postfix/postfix-script[197]: starting the Postfix mail system
Jun 26 00:14:09 82503dbea2e8 postfix/master[198]: daemon started -- version 3.7.6, configuration /etc/postfix
Jun 26 00:14:10 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:10 82503dbea2e8 last message repeated 2 times
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 26 00:14:11 82503dbea2e8 last message repeated 2 times
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [181] Exception in worker process Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process self.load_wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load return self.load_wsgiapp() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app mod = importlib.import_module(module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [181] Worker exiting (pid: 181)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [181] [ERROR] Exception in worker process
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: Traceback (most recent call last):
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: worker.init_process()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.load_wsgi()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.wsgi = self.app.wsgi()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.callable = self.load()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return self.load_wsgiapp()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return util.import_app(self.app_uri)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: mod = importlib.import_module(module)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return _bootstrap._gcd_import(name[level:], package, level)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1050, in _gcd_import
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1027, in _find_and_load
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1006, in _find_and_load_unlocked
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 688, in _load_unlocked
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 883, in exec_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 241, in _call_with_frames_removed
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/opt/pyrar/python/epprest/wsgi.py", line 5, in
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: from epprest.run_eppapi import application
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/opt/pyrar/python/epprest/run_eppapi.py", line 53, in
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: raise ValueError(f"Client PEM file for '{this_reg}' at '{client_pem}' not found")
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: ValueError: Client PEM file for 'centralnic' at '/opt/pyrar/pems/centralnic.pem' not found
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [181] [INFO] Worker exiting (pid: 181)
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [171] [ERROR] Exception in worker process
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: Traceback (most recent call last):
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: worker.init_process()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.load_wsgi()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.wsgi = self.app.wsgi()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.callable = self.load()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return self.load_wsgiapp()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return util.import_app(self.app_uri)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: mod = importlib.import_module(module)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return _bootstrap._gcd_import(name[level:], package, level)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1050, in _gcd_import
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1027, in _find_and_load
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1006, in _find_and_load_unlocked
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 688, in _load_unlocked
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 883, in exec_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 241, in _call_with_frames_removed
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/opt/pyrar/python/epprest/wsgi.py", line 5, in
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: from epprest.run_eppapi import application
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/opt/pyrar/python/epprest/run_eppapi.py", line 53, in
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: raise ValueError(f"Client PEM file for '{this_reg}' at '{client_pem}' not found")
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: ValueError: Client PEM file for 'centralnic' at '/opt/pyrar/pems/centralnic.pem' not found
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [170] [ERROR] Exception in worker process
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: Traceback (most recent call last):
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: worker.init_process()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.load_wsgi()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.wsgi = self.app.wsgi()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.callable = self.load()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return self.load_wsgiapp()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return util.import_app(self.app_uri)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: mod = importlib.import_module(module)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return _bootstrap._gcd_import(name[level:], package, level)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1050, in _gcd_import
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1027, in _find_and_load
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1006, in _find_and_load_unlocked
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 688, in _load_unlocked
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 883, in exec_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 241, in _call_with_frames_removed
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/opt/pyrar/python/epprest/wsgi.py", line 5, in
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: from epprest.run_eppapi import application
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/opt/pyrar/python/epprest/run_eppapi.py", line 53, in
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: raise ValueError(f"Client PEM file for '{this_reg}' at '{client_pem}' not found")
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: ValueError: Client PEM file for 'centralnic' at '/opt/pyrar/pems/centralnic.pem' not found
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [170] Exception in worker process Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process self.load_wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load return self.load_wsgiapp() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app mod = importlib.import_module(module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [171] Exception in worker process Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process self.load_wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load return self.load_wsgiapp() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app mod = importlib.import_module(module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [170] [INFO] Worker exiting (pid: 170)
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [170] Worker exiting (pid: 170)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [171] [INFO] Worker exiting (pid: 171)
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [171] Worker exiting (pid: 171)
Jun 26 00:14:11 82503dbea2e8 su: + pts/0 root:daemon
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/payment.json'
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/payment.json'
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [179] [ERROR] Exception in worker process
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: Traceback (most recent call last):
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: worker.init_process()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.load_wsgi()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.wsgi = self.app.wsgi()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: self.callable = self.load()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return self.load_wsgiapp()
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return util.import_app(self.app_uri)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: mod = importlib.import_module(module)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: return _bootstrap._gcd_import(name[level:], package, level)
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1050, in _gcd_import
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1027, in _find_and_load
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 1006, in _find_and_load_unlocked
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 688, in _load_unlocked
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 883, in exec_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "", line 241, in _call_with_frames_removed
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/opt/pyrar/python/epprest/wsgi.py", line 5, in
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: from epprest.run_eppapi import application
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: File "/opt/pyrar/python/epprest/run_eppapi.py", line 53, in
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: raise ValueError(f"Client PEM file for '{this_reg}' at '{client_pem}' not found")
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: ValueError: Client PEM file for 'centralnic' at '/opt/pyrar/pems/centralnic.pem' not found
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [179] Exception in worker process Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process self.load_wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load return self.load_wsgiapp() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app mod = importlib.import_module(module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [179] [INFO] Worker exiting (pid: 179)
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [179] Worker exiting (pid: 179)
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:11 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/payment.json'
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [99] [INFO] Shutting down: Master
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [99] Shutting down: Master
Jun 26 00:14:11 82503dbea2e8 epprest_centralnic: [2023-06-26 00:14:11 +0000] [99] [INFO] Reason: Worker failed to boot.
Jun 26 00:14:11 localhost gunicorn.wsgi.error: [99] Reason: Worker failed to boot.
Jun 26 00:14:12 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 26 00:14:12 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:12 82503dbea2e8 init: process '/usr/local/bin/start_wsgi_epprest centralnic' (pid 80) exited. Scheduling for restart.
Jun 26 00:14:12 82503dbea2e8 gunicorn: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 26 00:14:12 82503dbea2e8 last message repeated 2 times

bind address conflict

Did a fresh install of everything today:

root@vps:/opt/config# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

And attempted to do some workarounds before posting this, but am at a standstill with this issue:

root@vps:/opt/config# /opt/pyrar/INSTALL_ON_UBUNTU_SERVER/run_pyrar
docker: Error response from daemon: driver failed programming external connectivity on endpoint cool_lehmann (c4393953f2933b527f91c223a60475be8278b5d7f37c991820b6d5898af81e65): Error starting userland proxy: listen tcp4 0.0.0.0:53: bind: address already in use.

Confirming that resolver is the conflict:

root@vps:~# sudo ss -tulwnp | grep :53
udp UNCONN 0 0 127.0.0.54:53 0.0.0.0:* users:(("systemd-resolve",pid=2374,fd=15))
udp UNCONN 0 0 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=2374,fd=13))
tcp LISTEN 0 4096 127.0.0.53%lo:53 0.0.0.0:* users:(("systemd-resolve",pid=2374,fd=14))
tcp LISTEN 0 4096 127.0.0.54:53 0.0.0.0:* users:(("systemd-resolve",pid=2374,fd=16))

Will disable it and see what happens:

root@vps:# sudo rm /etc/resolv.conf
root@vps:
# sudo touch /etc/resolv.conf
root@vps:# sudo systemctl restart docker
root@vps:
# /opt/pyrar/INSTALL_ON_UBUNTU_SERVER/run_pyrar

After about 60 seconds has passed, I finally get some output and see a lot of reloading along with some errors.

chown: /usr/share/doc/postfix/readme: No such file or directory
Jun 24 22:52:16 ab16b506a356 syslogd 1.5.1: restart (remote reception).
Jun 24 22:52:16 ab16b506a356 init: starting pid 88, tty '': '/usr/local/bin/start_pdns'
Jun 24 22:52:16 ab16b506a356 init: starting pid 89, tty '': '/usr/local/bin/start_nginx'
Jun 24 22:52:16 ab16b506a356 init: starting pid 92, tty '': '/usr/local/bin/start_backend_runner'
Jun 24 22:52:16 ab16b506a356 init: starting pid 96, tty '': '/usr/local/bin/start_cardproc'
Jun 24 22:52:16 ab16b506a356 su: + pts/0 root:daemon
Jun 24 22:52:16 ab16b506a356 init: starting pid 100, tty '': '/usr/local/bin/start_spooler'
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 Loading '/usr/lib/pdns/pdns/libgmysqlbackend.so'
Jun 24 22:52:16 ab16b506a356 pdns[90]: Loading '/usr/lib/pdns/pdns/libgmysqlbackend.so'
Jun 24 22:52:16 ab16b506a356 init: starting pid 103, tty '': '/usr/sbin/crond -f -c /etc/crontabs -l 9'
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 This is a standalone pdns
Jun 24 22:52:16 ab16b506a356 pdns[90]: This is a standalone pdns
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 Created local state directory '/var/run/pdns/'
Jun 24 22:52:16 ab16b506a356 pdns[90]: Created local state directory '/var/run/pdns/'
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 Listening on controlsocket in '/var/run/pdns/pdns.controlsocket'
Jun 24 22:52:16 ab16b506a356 pdns[90]: Listening on controlsocket in '/var/run/pdns/pdns.controlsocket'
Jun 24 22:52:16 ab16b506a356 init: starting pid 107, tty '': '/usr/sbin/postfix start-fg >/tmp/postfix.log 2>&1'
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 UDP server bound to 0.0.0.0:5353
Jun 24 22:52:16 ab16b506a356 pdns[90]: UDP server bound to 0.0.0.0:5353
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 TCP server bound to 0.0.0.0:5353
Jun 24 22:52:16 ab16b506a356 pdns[90]: TCP server bound to 0.0.0.0:5353
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 PowerDNS Authoritative Server 4.6.2 (C) 2001-2022 PowerDNS.COM BV
Jun 24 22:52:16 ab16b506a356 pdns[90]: PowerDNS Authoritative Server 4.6.2 (C) 2001-2022 PowerDNS.COM BV
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 Using 64-bits mode. Built using gcc 11.2.1 20220219 on May 13 2022 11:37:19 by buildozer@build-3-16-x86_64.
Jun 24 22:52:16 ab16b506a356 pdns[90]: Using 64-bits mode. Built using gcc 11.2.1 20220219 on May 13 2022 11:37:19 by buildozer@build-3-16-x86_64.
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Jun 24 22:52:16 ab16b506a356 pdns[90]: PowerDNS comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it according to the terms of the GPL version 2.
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 [webserver] Listening for HTTP requests on 0.0.0.0:8081
Jun 24 22:52:16 ab16b506a356 pdns[90]: [webserver] Listening for HTTP requests on 0.0.0.0:8081
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 Creating backend connection for TCP
Jun 24 22:52:16 ab16b506a356 pdns[90]: Creating backend connection for TCP
Jun 24 22:52:16 ab16b506a356 pdns: Jun 24 22:52:16 About to create 3 backend threads for UDP
Jun 24 22:52:16 ab16b506a356 pdns[90]: About to create 3 backend threads for UDP
Jun 24 22:52:16 ab16b506a356 sqlsh: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 24 22:52:16 ab16b506a356 sqlsh: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 24 22:52:16 ab16b506a356 sqlsh: [sqlsh:19/] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 24 22:52:17 ab16b506a356 run_cardproc.py: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 24 22:52:17 ab16b506a356 run_cardproc.py: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 24 22:52:17 ab16b506a356 pdns[90]: Done launching threads, ready to distribute questions
Jun 24 22:52:17 ab16b506a356 pdns: Jun 24 22:52:17 Done launching threads, ready to distribute questions
Jun 24 22:52:17 ab16b506a356 run_cardproc.py[101]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'
Jun 24 22:52:17 ab16b506a356 run_cardproc.py[101]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/registry.json'
Jun 24 22:52:17 ab16b506a356 run_cardproc.py[101]: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/priority.json'
Jun 24 22:52:17 ab16b506a356 run_cardproc.py[101]: [run_cardproc:54/run_server] PAY-ENGINE RUNNING
Jun 24 22:52:17 ab16b506a356 admin_ui: [2023-06-24 22:52:17 +0000] [86] [INFO] Starting gunicorn 20.0.4
Jun 24 22:52:17 localhost gunicorn.wsgi.error: [86] Starting gunicorn 20.0.4
Jun 24 22:52:17 ab16b506a356 admin_ui: [2023-06-24 22:52:17 +0000] [86] [INFO] Listening at: unix:/run/wsgi_admin.sock (86)
Jun 24 22:52:17 localhost gunicorn.wsgi.error: [86] Listening at: unix:/run/wsgi_admin.sock (86)
Jun 24 22:52:17 ab16b506a356 admin_ui: [2023-06-24 22:52:17 +0000] [86] [INFO] Using worker: sync
Jun 24 22:52:17 localhost gunicorn.wsgi.error: [86] Using worker: sync
Jun 24 22:52:17 ab16b506a356 admin_ui: [2023-06-24 22:52:17 +0000] [157] [INFO] Booting worker with pid: 157
Jun 24 22:52:17 localhost gunicorn.wsgi.error: [157] Booting worker with pid: 157
Jun 24 22:52:17 ab16b506a356 run_spooler.py: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/policy.json'
Jun 24 22:52:17 ab16b506a356 run_spooler.py: [fileloader:54/check_for_new] -> Reloading file '/opt/pyrar/config/logins.json'

Jun 24 22:52:19 ab16b506a356 epprest_namereg: raise ValueError(f"Registry '{this_reg}' not in '{static.LOGINS_FILE}'")
Jun 24 22:52:19 ab16b506a356 epprest_namereg: ValueError: Registry 'namereg' not in '/opt/pyrar/config/logins.json'
Jun 24 22:52:19 localhost gunicorn.wsgi.error: [192] Exception in worker process Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process self.load_wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load return self.load_wsgiapp() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app mod = importlib.import_module(module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 24 22:52:19 ab16b506a356 epprest_namereg: [2023-06-24 22:52:19 +0000] [192] [INFO] Worker exiting (pid: 192)
Jun 24 22:52:19 localhost gunicorn.wsgi.error: [192] Worker exiting (pid: 192)
Jun 24 22:52:19 localhost gunicorn.wsgi.error: [195] Exception in worker process Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker worker.init_process() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process self.load_wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi self.wsgi = self.app.wsgi() File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi self.callable = self.load() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load return self.load_wsgiapp() File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp return util.import_app(self.app_uri) File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app mod = importlib.import_module(module) File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 24 22:52:19 localhost gunicorn.wsgi.error: [195] Worker exiting (pid: 195)
Jun 24 22:52:19 ab16b506a356 epprest_namereg: [2023-06-24 22:52:19 +0000] [195] [ERROR] Exception in worker process
Jun 24 22:52:19 ab16b506a356 epprest_namereg: Traceback (most recent call last):
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/usr/lib/python3.10/site-packages/gunicorn/arbiter.py", line 583, in spawn_worker
Jun 24 22:52:19 ab16b506a356 epprest_namereg: worker.init_process()
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 119, in init_process
Jun 24 22:52:19 ab16b506a356 epprest_namereg: self.load_wsgi()
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/usr/lib/python3.10/site-packages/gunicorn/workers/base.py", line 144, in load_wsgi
Jun 24 22:52:19 ab16b506a356 epprest_namereg: self.wsgi = self.app.wsgi()
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/usr/lib/python3.10/site-packages/gunicorn/app/base.py", line 67, in wsgi
Jun 24 22:52:19 ab16b506a356 epprest_namereg: self.callable = self.load()
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 49, in load
Jun 24 22:52:19 ab16b506a356 epprest_namereg: return self.load_wsgiapp()
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/usr/lib/python3.10/site-packages/gunicorn/app/wsgiapp.py", line 39, in load_wsgiapp
Jun 24 22:52:19 ab16b506a356 epprest_namereg: return util.import_app(self.app_uri)
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 358, in import_app
Jun 24 22:52:19 ab16b506a356 epprest_namereg: mod = importlib.import_module(module)
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/usr/lib/python3.10/importlib/init.py", line 126, in import_module
Jun 24 22:52:19 ab16b506a356 epprest_namereg: return _bootstrap._gcd_import(name[level:], package, level)
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "", line 1050, in _gcd_import
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "", line 1027, in _find_and_load
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "", line 1006, in _find_and_load_unlocked
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "", line 688, in _load_unlocked
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "", line 883, in exec_module
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "", line 241, in _call_with_frames_removed
Jun 24 22:52:19 ab16b506a356 epprest_namereg: File "/opt/pyrar/python/epprest/wsgi.py", line 5, in

Appreciate any input. Also, thanks for adding the random password generator automatically. Makes things simple. :)

Issue with config

not able to run with docker because of the policy.json file is not found in config folder. Pls can you share how to create the policy.json file or can you make a default config file add in dockerfile

Traceback (most recent call last): File "/opt/pyrar/python/bin/policy_subst.py", line 9, in <module> from librar.policy import this_policy as policy File "/opt/pyrar/python/librar/policy.py", line 84, in <module> this_policy = Policy() File "/opt/pyrar/python/librar/policy.py", line 63, in __init__ self.file = fileloader.FileLoader(static.POLICY_FILE) File "/opt/pyrar/python/librar/fileloader.py", line 49, in __init__ self.check_for_new() File "/opt/pyrar/python/librar/fileloader.py", line 52, in check_for_new if (new_time := have_newer(self.last_mtime, self.filename)) is None: File "/opt/pyrar/python/librar/fileloader.py", line 31, in have_newer raise PermissionError(f"'{file_name}' not found or not readable") PermissionError: '/opt/pyrar/config/policy.json' not found or not readable

Test Run fails

Hello!

I seem to be running into the same issue on each of my attempts to install this, and am subsequently stuck on Test Run. I would greatly appreciate any advice.

root@vps:/opt/config# /opt/pyrar/INSTALL_ON_UBUNTU_SERVER/run_pyrar
Traceback (most recent call last):
File "/opt/pyrar/python/bin/policy_subst.py", line 27, in
content = template.render(**merge_data)
File "/usr/lib/python3.10/site-packages/jinja2/environment.py", line 1291, in render
self.environment.handle_exception()
File "/usr/lib/python3.10/site-packages/jinja2/environment.py", line 925, in handle_exception
raise rewrite_traceback_stack(source=source)
File "/opt/pyrar/policy_subst/pdns.conf", line 40, in top-level template code
gmysql-host={{logins.pdns.server}}
File "/usr/lib/python3.10/site-packages/jinja2/environment.py", line 474, in getattr
return getattr(obj, attribute)
jinja2.exceptions.UndefinedError: 'None' has no attribute 'pdns'
/usr/local/bin/run_init: .: line 18: can't open '/run/policy_subst/env.inc': No such file or directory

For reference:

root@vps:/opt/config# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.10
Release: 22.10
Codename: kinetic

I was thinking maybe Docker isn't set up correctly, but I have this:

root@vps:/opt/config# sudo docker run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.
To generate this message, Docker took the following steps:

  1. The Docker client contacted the Docker daemon.
  2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
  3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
  4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
$ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
https://hub.docker.com/

For more examples and ideas, visit:
https://docs.docker.com/get-started/

and

root@vps:/run# docker image ls
REPOSITORY TAG IMAGE ID CREATED SIZE
jamesstevens/pyrar latest 71b930cd2418 13 hours ago 164MB
hello-world latest 9c7a54a9a43c 7 weeks ago 13.3kB

Something is definitely missing, I'm just unsure of what.

Thank you in advance!

EDIT: I guess there's a bad link somewhere to the /policy_subst/ directory for env.inc?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.