Django install script on Ubuntu 8.04 LTS

Hi Support,

I seem to be having problems with the install script for Django 1.1. The site only has the web directory and MySQL enabled. The install script seems to hang while trying to install Django. The output from the install script is:


Install Script
In domain python-test.owdev.co.uk
Downloading http://www.djangoproject.com/download/1.1/tarball/ ..
Downloading http://media.djangoproject.com/releases/1.1/Django-1.1.tar.gz (5609609 bytes) ..
Received 1024 bytes (0 %)
Received 561152 bytes (10 %)
Received 1122304 bytes (20 %)
Received 1683456 bytes (30 %)
Received 2244608 bytes (40 %)
Received 2805760 bytes (50 %)
Received 3365888 bytes (60 %)
Received 3927040 bytes (70 %)
Received 4488192 bytes (80 %)
Received 5049344 bytes (90 %)
Received 5609609 bytes (100 %)
.. download complete.
Downloading http://www.saddi.com/software/flup/dist/flup-1.0.tar.gz (46766 bytes) ..
Received 1024 bytes (2 %)
Received 5120 bytes (10 %)
Received 10240 bytes (21 %)
Received 14336 bytes (30 %)
Received 19456 bytes (41 %)
Received 23552 bytes (50 %)
Received 28672 bytes (61 %)
Received 32768 bytes (70 %)
Received 37888 bytes (81 %)
Received 43008 bytes (91 %)
Received 46766 bytes (100 %)
.. download complete.

Now installing Django version 1.1 ..

[now the install just hangs, no further output]

I have taken a look at the source of the install script, and I can confirm the following:

  • Some files appear in the public_html dir (these are: bin, lib, myproject, php5.fcgi)
  • Tables appear in the database
  • Apache does not seem to be configured
  • settings.py does contain the correct database login details
  • There does not seem to be any trace of django.fcgi in the site directory

My guess is that some command is requiring a yes/no confirmation which it is never getting.

Some more system info:

Ubuntu 8.04 LTS
Python 2.5.2
Virtualmin 3.73 Pro

# uname -a
Linux dev3 2.6.24-24-server #1 SMP Sat Aug 22 00:59:57 UTC 2009 x86_64 GNU/Linux

Status: 
Closed (fixed)

Comments

Sounds like some process launched by the installer is hung, or waiting for input.

Would it be possible for you to attach the output of the command pstree -l to this bug report when the hang happens?

Hi Jamie,

The output is as follows:


# pstree -l
init─┬─apache2───6*[apache2]
├─atd
├─cron───cron───sh───collectinfo.pl
├─dd
├─dhclient3
├─freshclam
├─6*[getty]
├─klogd
├─mailmanctl───8*[python]
├─master─┬─pickup
│ └─qmgr
├─miniserv.pl───miniserv.pl───sh───su───sh───python
├─miniserv.pl
├─mysqld_safe─┬─logger
│ └─mysqld───12*[{mysqld}]
├─named───3*[{named}]
├─saslauthd───4*[saslauthd]
├─sshd───sshd───sshd───bash───su───bash─┬─mysql
│ ├─pstree
│ └─2*[vim]
├─syslogd
└─udevd

I noticed that the django-admin.py script did also run before the hang (I kept running the above command to see what was going on). At one point I saw this line:


├─miniserv.pl───miniserv.pl───sh───su───sh───django-admin.py

Hope that helps :)

Adam

Ok, it looks like the manage.py script that Virtualmin runs is hanging..

What is the username you have setup for this domain?

Also, which Virtualmin version are you running there?

Hi Jamie,

The domain was python-test.owdev.co.uk (not publically registered, but setup in a hosts file), and the username is therefore 'python-test'.

The Virtualmin version is 3.73 Pro

I've seen a case where Django doesn't like certain admin usernames.

Does it help if you re-try the install, but enter pythontest as the user on the install form?

Yes! I actually yelled "wooo hooo!" when that worked :D

Of course, a solution would be good, but failing that, could we have a little one-line warning message to prevent people making this mistake again?

Thank you!

Adam

Great! I will do even better and have Virtualmin remove illegal characters like - from the username (for Django) in the next release.

Automatically closed -- issue fixed for 2 weeks with no activity.