You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
write help or how to install, configure and run this #186
"If you want to test locally, you should copy HACKING/.env.sample to HACKING/.env, and talk to an RTP about filling in secrets."
HACKING/.env.sample - not found
After create network - podman network create proxstar
and run ./HACKING/launch_env.sh
FileNotFoundError: [Errno 2] No such file or directory: '/opt/app-root/bin/websockify'
podman run --rm -it --network=proxstar --name=proxstar -p 8000:8000 -p 8001:8001 --env-file=HACKING/.env '--entrypoint=["gunicorn", "proxstar:app", "--bind=0.0.0.0:8000"]' proxstar
[2023-01-24 20:05:59 +0000] [1] [INFO] Starting gunicorn 20.0.4
Booting Websockify server in daemon mode...
Websockify is stopped. Starting websockify.
Traceback (most recent call last):
File "/usr/local/bin/gunicorn", line 8, in
sys.exit(run())
File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 228, in run
super().run()
File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 198, in run
self.start()
File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 138, in start
self.cfg.on_starting(self)
File "/opt/proxstar/gunicorn.conf.py", line 39, in on_starting
start_websockify(app.config['WEBSOCKIFY_PATH'], app.config['WEBSOCKIFY_TARGET_FILE'])
File "/opt/proxstar/gunicorn.conf.py", line 21, in start_websockify
subprocess.call(
File "/usr/local/lib/python3.8/subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/local/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/app-root/bin/websockify'
Containers creates a script ./HACKING/launch_env.sh in your repo
command in this file -> podman run --rm -it --network=proxstar --name=proxstar -p 8000:8000 -p 8001:8001 --env-file=HACKING/.env '--entrypoint=["gunicorn", "proxstar:app", "--bind=0.0.0.0:8000"]' proxstar
Since an error occurs during the creation of the container by the script, the last container in the script is not created, so I cannot enter it, it was not created due to an error
Yes, we host our service behind keycloak, but all of that should be configurable, so you can use your own instance. You just have to point it there. You're gonna need to change the fields in the .env file under # OIDC and # LDAP accordingly.
proxstar -
oic.utils.keyio.UpdateFailed: {"error": "service_error", "error_description": "Remote key update from 'https://keycloak2.xxx:8443/realms/xxx/protocol/openid-connect/certs' failed, HTTP status HTTPSConnectionPool(host='keycloak2.xxx', port=8443): Max retries exceeded with url: /realms/xxx/protocol/openid-connect/certs (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))"}
main local CA installed to container proxstar
on keycloak installed cert from this CA
why this cert is not valid?
Hmm... I can't think of anything off the top of my head. Have you configured all of your OIDC environment variables (check config.py for a complete list)? We use flask_pyoidc for authentication. Maybe try checking in those communities?
To be clear, is this an error log from Proxstar? Do you have a more complete backtrace?
Activity
WillNilges commentedon Jan 20, 2023
Hey @urobasa, thanks for the issue!
Did you see the instructions in the
HACKINGdirectory? Anything in particular you're confused on? Lemme know, and I'll do my best to clear it up!urobasa commentedon Jan 21, 2023
"If you want to test locally, you should copy HACKING/.env.sample to HACKING/.env, and talk to an RTP about filling in secrets."
HACKING/.env.sample - not found
urobasa commentedon Jan 21, 2023
./HACKING/launch_env.sh
Error: unable to find network with name or ID proxstar: network not found
urobasa commentedon Jan 21, 2023
After create network - podman network create proxstar
and run ./HACKING/launch_env.sh
FileNotFoundError: [Errno 2] No such file or directory: '/opt/app-root/bin/websockify'
urobasa commentedon Jan 24, 2023
@WillNilges
./HACKING/launch_env.sh
33c4783919c387b6d394a5a2aa90b0211d79ecd4430f959cee7a35a81e817355
78755156ab1c600b448d9a22813866612ce2b998ba9308e1645b4cb7c74779a4
1fd19edd79f6ba5878d3e2dc1801495d6ed56bd603168aa45dedb17e7df79379
86b386b86a24a57215602319f4d7d4678a961a1b5e69d44b361aaa6708dd07f9
[2023-01-24 20:05:59 +0000] [1] [INFO] Starting gunicorn 20.0.4
Booting Websockify server in daemon mode...
Websockify is stopped. Starting websockify.
Traceback (most recent call last):
File "/usr/local/bin/gunicorn", line 8, in
sys.exit(run())
File "/usr/local/lib/python3.8/site-packages/gunicorn/app/wsgiapp.py", line 58, in run
WSGIApplication("%(prog)s [OPTIONS] [APP_MODULE]").run()
File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 228, in run
super().run()
File "/usr/local/lib/python3.8/site-packages/gunicorn/app/base.py", line 72, in run
Arbiter(self).run()
File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 198, in run
self.start()
File "/usr/local/lib/python3.8/site-packages/gunicorn/arbiter.py", line 138, in start
self.cfg.on_starting(self)
File "/opt/proxstar/gunicorn.conf.py", line 39, in on_starting
start_websockify(app.config['WEBSOCKIFY_PATH'], app.config['WEBSOCKIFY_TARGET_FILE'])
File "/opt/proxstar/gunicorn.conf.py", line 21, in start_websockify
subprocess.call(
File "/usr/local/lib/python3.8/subprocess.py", line 340, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/local/lib/python3.8/subprocess.py", line 858, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/opt/app-root/bin/websockify'
WillNilges commentedon Jan 24, 2023
Hey, sorry about the delay, currently having health isssues.
.env.samplegot renamed. Lives here now.podman network create proxstar#4. Probably an issue with where websockify resides in your container. Can you get a shell in there and see ifwhich websockifyresolves?urobasa commentedon Jan 24, 2023
Containers creates a script ./HACKING/launch_env.sh in your repo
command in this file ->
podman run --rm -it --network=proxstar --name=proxstar -p 8000:8000 -p 8001:8001 --env-file=HACKING/.env '--entrypoint=["gunicorn", "proxstar:app", "--bind=0.0.0.0:8000"]' proxstar
Since an error occurs during the creation of the container by the script, the last container in the script is not created, so I cannot enter it, it was not created due to an error
urobasa commentedon Jan 24, 2023
I wish you get well
WillNilges commentedon Jan 24, 2023
Thanks :)
You should still be able to launch the container manually with a different entrypoint, and poke around.
urobasa commentedon Feb 7, 2023
It is available to house members at proxstar.csh.rit.edu behind PYOIDC authentication.
is this a prerequisite?
is my local ldap not enough?
WillNilges commentedon Feb 9, 2023
Yes, we host our service behind keycloak, but all of that should be configurable, so you can use your own instance. You just have to point it there. You're gonna need to change the fields in the
.envfile under# OIDCand# LDAPaccordingly.urobasa commentedon Feb 14, 2023
your env contains ldap user and password and required for run web interface
but there is no variable for ldap server.
Is it in your hardcode?
WillNilges commentedon Feb 23, 2023
The
PROXSTAR_LDAP_BIND_DNvariable should consist of a URI (not just a username) that has all the information that proxstar needs (sans the password)It'll look something like this:
urobasa commentedon Jun 15, 2023
after start keycloak i get error
oic.utils.keyio.UpdateFailed: {"error": "service_error", "error_description": "Remote key update from 'https://keycloak2.xxx:8443/realms/xxx/protocol/openid-connect/certs' failed, HTTP status HTTPSConnectionPool(host='keycloak2.xxx', port=8443): Max retries exceeded with url: /realms/xxx/protocol/openid-connect/certs (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1131)')))"}
main local CA installed to container proxstar
on keycloak installed cert from this CA
why this cert is not valid?
WillNilges commentedon Jun 17, 2023
Hmm... I can't think of anything off the top of my head. Have you configured all of your OIDC environment variables (check
config.pyfor a complete list)? We useflask_pyoidcfor authentication. Maybe try checking in those communities?To be clear, is this an error log from Proxstar? Do you have a more complete backtrace?