Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: expected str, bytes or os.PathLike object, not NoneType #1

Closed
benzntech opened this issue Mar 13, 2019 · 1 comment
Closed

Comments

@benzntech
Copy link

Got this error

[1552494902] Starting NatriumCast Server...
Traceback (most recent call last):
  File "natriumcast.py", line 919, in <module>
    print(os.path.join(cert_dir, cert_crt_file), os.path.join(cert_dir, cert_key_file))
  File "/root/natrium-wallet-server/venv/lib/python3.6/posixpath.py", line 80, in join
    a = os.fspath(a)
TypeError: expected str, bytes or os.PathLike object, not NoneType
@bbedward
Copy link
Collaborator

Hi,

You need to set the environment variables pointing to the certificates. Readme describes how to generate these using certbot

export NANO_KEY_FILE=privkey.pem
export NANO_CRT_FILE=fullchain.pem

There's no way to configure it to run without https currently, although I think recommended deployment will probably change to running behind a reverse proxy soon.

@bbedward bbedward closed this as completed May 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants