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

docker pull recksato/robosats-client:v0.6.3-alpha results in an image with no main.js #1373

Open
gStart9 opened this issue Jul 8, 2024 · 3 comments

Comments

@gStart9
Copy link

gStart9 commented Jul 8, 2024

Describe the bug
In an attempt to update robosats-startos for StartOS, we pull down the latest dockerhub robosats-client image.
Doing so results in an image with no main.js (attempting to load the front-end in a browser calls main.js but receives a 404

To Reproduce
Steps to reproduce the behavior:

  1. docker pull recksato/robosats-client:v0.6.3-alpha
  2. docker run --rm --entrypoint="/bin/sh" -it recksato/robosats-client:v0.6.3-alpha
  3. cd /usr/src/robosats/static/frontend
  4. ls -al and see that main.js is missing

Expected behavior
main.js should be there and requesting it via the browser should not result in a 404

Desktop (please complete the following information):

  • OS: Debian 12
  • Browser: Firefox
  • Version: 127
@gStart9
Copy link
Author

gStart9 commented Jul 8, 2024

afaict this has been happening since v0.6.1

@gStart9
Copy link
Author

gStart9 commented Jul 17, 2024

Hi @Reckless-Satoshi or @KoalaSat

Do you have any idea what is going wrong here? Is recksato/robosats-client:v0.6.3-alpha even the docker image I should be pulling?

When I try instead to pull in recksato/robosats:v0.6.3-alpha, and have it call:
/usr/src/robosats/scripts/entrypoint.sh

I get further but get python errors:

# sh -x /usr/src/robosats/scripts/entrypoint.sh
+ python manage.py migrate
Traceback (most recent call last):
  File "/usr/src/robosats/manage.py", line 22, in <module>
    main()
  File "/usr/src/robosats/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 382, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python3.12/site-packages/django/conf/__init__.py", line 89, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python3.12/site-packages/django/conf/__init__.py", line 76, in _setup
    self._wrapped = Settings(settings_module)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/conf/__init__.py", line 190, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/robosats/robosats/settings.py", line 30, in <module>
    SECRET_KEY = config("SECRET_KEY")
                 ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/decouple.py", line 248, in __call__
    return self.config(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/decouple.py", line 107, in __call__
    return self.get(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/decouple.py", line 92, in get
    raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: SECRET_KEY not found. Declare it as envvar or define a default value.
+ [ ]
+ python manage.py collectstatic --noinput
Traceback (most recent call last):
  File "/usr/src/robosats/manage.py", line 22, in <module>
    main()
  File "/usr/src/robosats/manage.py", line 18, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.12/site-packages/django/core/management/__init__.py", line 382, in execute
    settings.INSTALLED_APPS
  File "/usr/local/lib/python3.12/site-packages/django/conf/__init__.py", line 89, in __getattr__
    self._setup(name)
  File "/usr/local/lib/python3.12/site-packages/django/conf/__init__.py", line 76, in _setup
    self._wrapped = Settings(settings_module)
                    ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/django/conf/__init__.py", line 190, in __init__
    mod = importlib.import_module(self.SETTINGS_MODULE)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/usr/src/robosats/robosats/settings.py", line 30, in <module>
    SECRET_KEY = config("SECRET_KEY")
                 ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/decouple.py", line 248, in __call__
    return self.config(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/decouple.py", line 107, in __call__
    return self.get(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/decouple.py", line 92, in get
    raise UndefinedValueError('{} not found. Declare it as envvar or define a default value.'.format(option))
decouple.UndefinedValueError: SECRET_KEY not found. Declare it as envvar or define a default value.
+ [ ]
+ [ ! -f /usr/src/robosats/api/lightning/lightning_pb2.py ]
+ cp -R /tmp/hold_pb2.py /tmp/hold_pb2_grpc.py /tmp/invoices_pb2.py /tmp/invoices_pb2_grpc.py /tmp/lightning_pb2.py /tmp/lightning_pb2_grpc.py /tmp/node_pb2.py /tmp/node_pb2_grpc.py /tmp/primitives_pb2.py /tmp/primitives_pb2_grpc.py /tmp/router_pb2.py /tmp/router_pb2_grpc.py /tmp/signer_pb2.py /tmp/signer_pb2_grpc.py /tmp/verrpc_pb2.py /tmp/verrpc_pb2_grpc.py /usr/src/robosats/api/lightning/
+ exec

@KoalaSat
Copy link
Member

SECRET_KEY not found

Seems like you don't have your ENV variables properly set

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