victor-rds / docker-etebase

Docker image files for Etebase server
GNU Affero General Public License v3.0
95 stars 28 forks source link

ModuleNotFoundError: No module named 'myauth' #157

Closed marcus-k closed 2 years ago

marcus-k commented 2 years ago

Brand new to Etesync/Etebase. Just tried creating a new alpine container but the logs contain errors when creating a Superuser.

Docker Compose:

version: "3"

services:
  etebase:
    image: victorrds/etesync:alpine
    container_name: "etebase"
    volumes:
      - ./data:/data:rw
    environment:
      SERVER: http
      SUPER_USER: admin
      SUPER_PASS: password
    restart: unless-stopped
    ports:
      - 3735:3735
    user: 1000:1000

Error log:

2022-06-18T23:31:38+00:00 [Info] [Entrypoint]: Creating Super User
2022-06-18T23:31:38+00:00 [Info] [Entrypoint]: Starting Etebase
Traceback (most recent call last):
  File "/etebase/manage.py", line 21, in <module>
    main()
  File "/etebase/manage.py", line 17, in main
    execute_from_command_line(sys.argv)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 419, in execute_from_command_line
    utility.execute()
  File "/usr/local/lib/python3.10/site-packages/django/core/management/__init__.py", line 413, in execute
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 354, in run_from_argv
    self.fetch_command(subcommand).run_from_argv(self.argv)
    self.execute(*args, **cmd_options)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/base.py", line 398, in execute
    output = self.handle(*args, **options)
  File "/usr/local/lib/python3.10/site-packages/django/core/management/commands/shell.py", line 93, in handle
    exec(sys.stdin.read(), globals())
  File "<string>", line 1, in <module>
ModuleNotFoundError: No module named 'myauth'
INFO:     Started server process [1]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://0.0.0.0:3735 (Press CTRL+C to quit)
  Applying sessions.0001_initial... OK
  Applying token_auth.0001_initial... OK

I also cannot login to http://0.0.0.0:373/admin with the Django Superuser details listed in the docker-compose file. Switching to an older version (victorrds/etesync:0.8.3-alpine) appears to work however without any errors.

victor-rds commented 2 years ago

That's my mistake, forgot to update the entrypoint script after the server changes in packages names, I will fix ASAP.

The root cause is this change etesync/server@9d6e0ae60a88d791ab534631cd4dedb9618fb4d5 and this line: https://github.com/victor-rds/docker-etebase/blob/69adcc7a74d139c50af734b64ab9c710608b7167/context/entrypoint.sh#L240

Thanks for reporting!