From: David Marec <david.marec@lapinbilly.eu>
To: toaster@lists.yoctoproject.org
Subject: [Toaster][zeus] stuck on the 'landing' page
Date: Wed, 1 Apr 2020 16:52:31 +0200 [thread overview]
Message-ID: <db22f5e3-5df8-e3d0-e7ec-d94fa8c73ed3@lapinbilly.eu> (raw)
Hi put-in-quarantine folks,
I would like to setup of toaster web interface that allows user to build
yocto images on their own.
To achieve this, I installed a debian-9[1] linux distro in a VM and read
this handbook:
* https://www.yoctoproject.org/docs/3.0/toaster-manual/toaster-manual.html
in order to install toaster from the zeus branch in a *production
environment*.
I hit the following issues:
* The migration process triggers following error:
>> Specified key was too long; max key length is 767 bytes
… solved by creating a UTF-8 compliant database:
`CREATE DATABASE toaster_data CHARACTER SET utf8 DEFAULT COLLATE
utf8_general_ci`
* Apache failed to load django:
> mod_wsgi (pid=4529): Target WSGI script
'/var/www/toaster/poky/bitbake/lib/toaster/toastermain/wsgi.py' cannot
be loaded as Python module.
> mod_wsgi (pid=4529): Exception occurred processing WSGI script
'/var/www/toaster/poky/bitbake/lib/toaster/toastermain/wsgi.py'.
> Traceback (most recent call last):
> File "/var/www/toaster/poky/bitbake/lib/toaster/toastermain/wsgi.py",
line 31, in <module>
> from django.core.wsgi import get_wsgi_application
> ImportError: No module named 'django'
I tried with no success to grant www-data group to access to
bitbake/lib/toaster.
Finally, I *pip-installed* the toaster requirements into the base
system, not in a virtualdev (--user) environment.
I do have to install mysqlclient with pip also.
Finally, I a get a working webserver.
```sh
$ toaster@debian9:~/poky/build$ source ../bitbake/bin/toaster start noweb
```
But now, I 'am stuck on a "landing" page, where I can't do nothing but
wait for build captures.
- unless the django admin pages sounds ok -
At the time I was running the rocko branch, I was able to get a full
feature web interface running in a local environment
(no sql server, no web server).
How can I give access to this pages while running in a production
environment ?
Regards,
[1]: Debian 10 updated its python base to release 3.7 and the django
release shipped with yocto fails to run in this environment.
--
David Marec
FreeBSD AMD64 poudriere : http://poudriere.lapinbilly.eu/
next reply other threads:[~2020-04-01 14:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-01 14:52 David Marec [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-04-02 9:11 [Toaster][zeus] stuck on the 'landing' page David Marec
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=db22f5e3-5df8-e3d0-e7ec-d94fa8c73ed3@lapinbilly.eu \
--to=david.marec@lapinbilly.eu \
--cc=toaster@lists.yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).