etesync / server

The Etebase server (so you can run your own)
https://www.etesync.com
GNU Affero General Public License v3.0
1.48k stars 75 forks source link

Createsuperuser broken in Docker image .radicatle.creds is unkown. #153

Open ph00lt0 opened 1 year ago

ph00lt0 commented 1 year ago

Due to the permissions set on the requirements file which is owned by root, it is impossible to install the requirements without sudo. The etesync user which does not have the sudo command therefore cannot install the requirements. It would be a good idea to add the requirements installation in the docker initialization but for update etc it probably would be good to change the permissions as well.

ph00lt0 commented 1 year ago

I just discovered it is actually part of the installation process. In that case I probably have hit on another error. I am trying to create my super admin to start using this docker instance but I get the error:

etesync@etesync-etesync-dav1:/app$ cd etesync_dav/                                                
etesync@etesync-etesync-dav1:/app/etesync_dav$ python ./manage.py createsuperuser                 
Traceback (most recent call last):                                                                
  File "./manage.py", line 23, in <module>                                                        
    from .radicale.creds import Credentials                                                       
ImportError: attempted relative import with no known parent package   

I assumed this was due to requirements not being installed.