Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) by mx.groups.io with SMTP id smtpd.web11.9258.1585752754407682768 for ; Wed, 01 Apr 2020 07:52:34 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: lapinbilly.eu, ip: 217.70.183.193, mailfrom: david.marec@lapinbilly.eu) X-Originating-IP: 86.201.44.116 Received: from [192.168.1.14] (lfbn-tou-1-196-116.w86-201.abo.wanadoo.fr [86.201.44.116]) (Authenticated sender: david@lapinbilly.eu) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 528D3240018 for ; Wed, 1 Apr 2020 14:52:31 +0000 (UTC) To: toaster@lists.yoctoproject.org From: David Marec Subject: [Toaster][zeus] stuck on the 'landing' page Message-ID: Date: Wed, 1 Apr 2020 16:52:31 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US 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 > 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/