[Toaster] Django error with south_migrationhistory setting up a production instance
Murray Thomson
murraythomson123 at gmail.com
Mon Apr 18 03:06:19 PDT 2016
Thanks Elliot,
I should have followed the released documentation
<http://www.yoctoproject.org/docs/2.0.1/toaster-manual/toaster-manual.html#toaster-setting-up-a-production-instance-of-toaster>.
The wiki is missing the command:
./bitbake/lib/toaster/manage.py syncdb
that fixed this problem.
I continued with the instructions and I had no errors until the example
script. I had to replace /bin/sh by /bin/bash and "source" by ".". See:
http://stackoverflow.com/questions/670191/getting-a-source-not-found-error-when-using-source-in-a-bash-script
I also added poky to the path of the last line. The script I'm using is:
#!/bin/bash
# toaster run builds dispatcher
cd /var/www/toaster/
. ./venv/bin/activate
./poky/bitbake/lib/toaster/manage.py runbuilds
When the script is running, should my toaster be available in the address
127.0.0.1:8000 ? It wasn't for me and I'm not sure why.
Thanks,
Murray
On 18 April 2016 at 10:56, Smith, Elliot <elliot.smith at intel.com> wrote:
> Hello Murray.
>
> Is this a cut and paste from the error report? If so, there may be an
> issue with a typo somewhere (it should read "south" rather than "sourth").
>
> You could also try removing your MySQL db and creating it again from
> scratch.
>
> Also try removing any *.pyc files in the migrations directory, in case
> Toaster is trying to load stale migrations.
>
> Elliot
>
> On 18 April 2016 at 09:30, Murray Thomson <murraythomson123 at gmail.com>
> wrote:
>
>> Hi,
>>
>> I'm trying to set up a production instance in a Virtualbox running Ubuntu
>> 14.04. I've followed the instructions in the wiki.
>> <https://wiki.yoctoproject.org/wiki/Setting_up_a_production_instance_of_Toaster>
>>
>> I have found that git is missing as a dependency (it might not be a
>> dependency but it's needed later to clone poky)
>> On the step 1, you need sudo permissions to create /var/www/toaster (I
>> then changed the folder permissions with 'sudo chmod 777 /var/www/toaster
>> -R'
>> On the step 5, the command
>>
>> ./bitbake/lib/toaster/manage.py migrate
>>
>> fails with an error saying "Table 'toaster_data.sourth_migrationhistory' doesn't exist"
>>
>> Using DJango 1.6. I've tried different versions of Django, changing "SOUTH_TESTS_MIGRATE = True" in the settings.py file and also tried Ubuntu 16.04 but I couldn't get around it.
>> I'm new to Django so I would appreciate if someone could point me in the right direction.
>>
>> Regards,
>>
>> Murray
>>
>>
>>
>>
>> --
>> _______________________________________________
>> toaster mailing list
>> toaster at yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/toaster
>>
>>
>
>
> --
> Elliot Smith
> Software Engineer
> Intel Open Source Technology Centre
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/toaster/attachments/20160418/44a2c286/attachment.html>
More information about the toaster
mailing list