Hi, response about the issue that the admin user does already exist. Docker knowledge is required here: I had to delete the volumes to start from the beginning. == docker volume rm weblatedocker_postgres-data weblatedocker_weblate-data ==
Now the setup works and I am able to log in as an admin with following: == (git clone https://github.com/WeblateOrg/docker.git weblate-docker) && cd weblate-docker && (docker-compose build && docker-compose run --rm weblate migrate) && (docker-compose run --rm weblate collectstatic <<< yes) && (docker-compose run --rm weblate createadmin | grep "Creating user admin with password" | awk '{ print $6 }' >> weblate-admin-password.txt) && (docker-compose up -d) == Regards, Mario Regards, Mario On Tue, Aug 30, 2016 at 5:42 PM, Mario Ernst <mario.er...@gmail.com> wrote: > >> >> The admin password is printed out when you create admin user (step 7 of >> the installation instructions): >> >> https://docs.weblate.org/en/latest/admin/deployments.html#weblate-and-d >> ocker >> >> For security reasons, there is no hardcoded password in the image. >> > > Ok, thanks again for the quick reply: What I get in this step is > following: > > == > Postgres is up > Creating user admin with password ILDzahFwR2StK > Traceback (most recent call last): > File "/app/bin/django-admin", line 11, in <module> > sys.exit(execute_from_command_line()) > File > "/app/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 353, in execute_from_command_line > utility.execute() > File > "/app/local/lib/python2.7/site-packages/django/core/management/__init__.py", > line 345, in execute > self.fetch_command(subcommand).run_from_argv(self.argv) > File > "/app/local/lib/python2.7/site-packages/django/core/management/base.py", > line 348, in run_from_argv > self.execute(*args, **cmd_options) > File > "/app/local/lib/python2.7/site-packages/django/core/management/base.py", > line 399, in execute > output = self.handle(*args, **options) > File "/app/local/lib/python2.7/site-packages/weblate/ > accounts/management/commands/createadmin.py", line 58, in handle > user = User.objects.create_user('admin', 'ad...@example.com', > password) > File "/app/local/lib/python2.7/site-packages/django/contrib/auth/models.py", > line 154, in create_user > return self._create_user(username, email, password, **extra_fields) > File "/app/local/lib/python2.7/site-packages/django/contrib/auth/models.py", > line 148, in _create_user > user.save(using=self._db) > File > "/app/local/lib/python2.7/site-packages/django/contrib/auth/base_user.py", > line 74, in save > super(AbstractBaseUser, self).save(*args, **kwargs) > File "/app/local/lib/python2.7/site-packages/django/db/models/base.py", > line 708, in save > force_update=force_update, update_fields=update_fields) > File "/app/local/lib/python2.7/site-packages/django/db/models/base.py", > line 736, in save_base > updated = self._save_table(raw, cls, force_insert, force_update, > using, update_fields) > File "/app/local/lib/python2.7/site-packages/django/db/models/base.py", > line 820, in _save_table > result = self._do_insert(cls._base_manager, using, fields, update_pk, > raw) > File "/app/local/lib/python2.7/site-packages/django/db/models/base.py", > line 859, in _do_insert > using=using, raw=raw) > File "/app/local/lib/python2.7/site-packages/django/db/models/manager.py", > line 122, in manager_method > return getattr(self.get_queryset(), name)(*args, **kwargs) > File "/app/local/lib/python2.7/site-packages/django/db/models/query.py", > line 1039, in _insert > return query.get_compiler(using=using).execute_sql(return_id) > File > "/app/local/lib/python2.7/site-packages/django/db/models/sql/compiler.py", > line 1060, in execute_sql > cursor.execute(sql, params) > File "/app/local/lib/python2.7/site-packages/django/db/backends/utils.py", > line 79, in execute > return super(CursorDebugWrapper, self).execute(sql, params) > File "/app/local/lib/python2.7/site-packages/django/db/backends/utils.py", > line 64, in execute > return self.cursor.execute(sql, params) > File "/app/local/lib/python2.7/site-packages/django/db/utils.py", line > 95, in __exit__ > six.reraise(dj_exc_type, dj_exc_value, traceback) > File "/app/local/lib/python2.7/site-packages/django/db/backends/utils.py", > line 64, in execute > return self.cursor.execute(sql, params) > django.db.utils.IntegrityError: duplicate key value violates unique > constraint "auth_user_username_key" > DETAIL: Key (username)=(admin) already exists. > == > > So I am not sure whether this issue is caused by any previous installation > trial or anything else. Maybe I will find out, any hints welcome. > > Cheers, > Mario > >
_______________________________________________ Weblate mailing list Weblate@lists.cihar.com https://lists.cihar.com/cgi-bin/mailman/listinfo/weblate