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

Error creating admin user. I accepted default value "oubiga" #106

Closed
oubiga opened this issue May 8, 2014 · 6 comments
Closed

Error creating admin user. I accepted default value "oubiga" #106

oubiga opened this issue May 8, 2014 · 6 comments

Comments

@oubiga
Copy link

oubiga commented May 8, 2014

Hi,
I got this error when I was trying to install django-cms using djangocms-installer.
I set a “Hobby Dev Heroku Postgres” database url.
Os x, Python 2.7.6, pip==1.5.4 and virtualenv==1.11.4

...
Creating admin user
Username (leave blank to use 'oubiga'): 
Traceback (most recent call last):
  File "manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/core/management/base.py", line 242, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/core/management/base.py", line 285, in execute
    output = self.handle(*args, **options)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/contrib/auth/management/commands/createsuperuser.py", line 102, in handle
    self.UserModel._default_manager.db_manager(database).get_by_natural_key(username)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/contrib/auth/models.py", line 167, in get_by_natural_key
    return self.get(**{self.model.USERNAME_FIELD: username})
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/models/manager.py", line 151, in get
    return self.get_queryset().get(*args, **kwargs)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/models/query.py", line 301, in get
    num = len(clone)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/models/query.py", line 77, in __len__
    self._fetch_all()
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/models/query.py", line 854, in _fetch_all
    self._result_cache = list(self.iterator())
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/models/query.py", line 220, in iterator
    for row in compiler.results_iter():
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 713, in results_iter
    for rows in self.execute_sql(MULTI):
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 786, in execute_sql
    cursor.execute(sql, params)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/backends/util.py", line 69, in execute
    return super(CursorDebugWrapper, self).execute(sql, params)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
    return self.cursor.execute(sql, params)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/utils.py", line 99, in __exit__
    six.reraise(dj_exc_type, dj_exc_value, traceback)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/django/db/backends/util.py", line 53, in execute
    return self.cursor.execute(sql, params)
django.db.utils.DatabaseError: SSL SYSCALL error: Operation timed out

Traceback (most recent call last):
  File "/Users/oubiga/Envs/uxiolopezvenv/bin/djangocms", line 11, in <module>
    sys.exit(execute())
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/djangocms_installer/main.py", line 29, in execute
    django.setup_database(config_data)
  File "/Users/oubiga/Envs/uxiolopezvenv/lib/python2.7/site-packages/djangocms_installer/django/__init__.py", line 263, in setup_database
    "manage.py", "createsuperuser"])
  File "/usr/local/Cellar/python/2.7.6/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 540, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/Users/oubiga/Envs/uxiolopezvenv/bin/python', '-W', 'ignore', 'manage.py', 'createsuperuser']' returned non-zero exit status 1```
@yakky
Copy link
Member

yakky commented May 8, 2014

Could you provide the parameters given to the installer?

@oubiga
Copy link
Author

oubiga commented May 8, 2014

Sure. Blank means default.

Database configuration (in URL format) [default sqlite://localhost/project.db]: postgres://eyxfxiletcvtyc:PASSWORD@ec2-54-228-195-63.eu-west-1.compute.amazonaws.com:5432/dat2g69h82l5o0

django CMS version (choices: 2.4, 3.0, stable, develop) [default stable]:

Django version (choices: 1.4, 1.5, 1.6, stable) [default stable]:

Activate Django I18N / L10N setting (choices: yes, no) [default yes]:

Install and configure reversion support (choices: yes, no) [default yes]:

Languages to enable. Option can be provided multiple times, or as a comma separated list: english, spanish, galician

Optional default time zone [default America/Chicago]: Europe/Madrid

Activate Django timezone support (choices: yes, no) [default yes]:

Activate CMS permission management (choices: yes, no) [default yes]: 

Use Twitter Bootstrap Theme (choices: yes, no) [default no]: 

Load a starting page with examples after installation (choices: yes, no) [default no]:

@yakky
Copy link
Member

yakky commented May 8, 2014

I'll try to reproduce on Heroku
At first glance looks a timeout error when contacting database
Also: be aware that ony language codes are allowed in the languages setting.
I'll fix the string to clarify that

@oubiga
Copy link
Author

oubiga commented May 8, 2014

Ok, @yakky. I'll try it again from scratch.
Thank you.

@oubiga
Copy link
Author

oubiga commented May 9, 2014

@yakky, don't worry anymore about it. I think it simply was a problem with gunicorn and psycopg2 installation. Today I've used django-toolbelt to install them and everything seems to be correct. So, djangocms-installer is working fine :)
So sorry. Thank you.

@yakky
Copy link
Member

yakky commented May 9, 2014

Thank you for using it 😄
And feel free to report any other issue or join #django-cms IRC channel if need help

@yakky yakky closed this as completed May 9, 2014
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