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

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

Open
ph00lt0 opened this issue Oct 5, 2022 · 1 comment
Open

Comments

@ph00lt0
Copy link

ph00lt0 commented Oct 5, 2022

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
Copy link
Author

ph00lt0 commented Oct 5, 2022

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.

@ph00lt0 ph00lt0 changed the title Impossible to install requirements on Docker image Createsuperuser broken in Docker image Oct 5, 2022
@ph00lt0 ph00lt0 changed the title Createsuperuser broken in Docker image Createsuperuser broken in Docker image .radicatle.creds is unkown. Oct 5, 2022
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

1 participant