I find a work around, but it not work:

chown -R www-data:www-data foo

foo/bin/uwsgi --ini=foo/etc/lava-server/uwsgi.ini

permission denied in open lava-uwsgi.log

________________________________
From: Song, Elen
Sent: 2012年6月5日 16:14
To: 'Spring Zhang'
Cc: [email protected]
Subject: RE: [Linaro-validation] lava-deployment-tool bad gateway

Hi Spring:

http://10.217.2.155/lava-server
is my server ip,

a2dissite default does not work for me,

but I do found a err message in /var/log/apache2

[Tue Jun 05 09:27:46 2012] [error] [client 10.217.2.155] uwsgi: unable to 
connect to uWSGI server: No such file or directory

Seems uwsgi have some problem
How can that be?

By the way , which version do lava-deployment-tool release, 
ubuntu-10.10-desktop?
I think a proper release version to me will get less trouble:)

BR
________________________________
From: Spring Zhang [mailto:[email protected]]
Sent: 2012年6月5日 15:19
To: Song, Elen
Cc: [email protected]
Subject: Re: [Linaro-validation] lava-deployment-tool bad gateway


On 5 June 2012 11:44, Song, Elen 
<[email protected]<mailto:[email protected]>> wrote:
Hi Spring and All:

I’m using lava-deployment-tool-0.3-2012-03.tar.gz to install lava-server on 
ubuntu-12.04-LTS

1../lava-deployment-tool setup

2 ./lava-deployment-tool bundle requirement/requirements-latest.txt

3 ./lava-deployment-tool install testinstance lava.pybundle

4 sudo start lava-instance LAVA_INSTANCE=testinstance

In setp2 , I change download to download/old for uwsgi compiling in 
lava-deployment-tool
Then add simplejson ==2.3.2 in requirement-latest.txt to make compile ok.

When I open http://10.217.2.155/lava-server, it says:
What is the IP? I guess it is your lava-server ip?

Bad Gateway

The proxy server received an invalid response from an upstream server.
Apache/2.2.22 (Ubuntu) Server at 127.0.1.1 Port 80

Do you know there is any workaround ?
Do you use a proxy? If yes, you can try http://localhost/lava-server

If that can't work, the simplest way is to disable default site config in 
apache2:
ls /etc/apache2/sites-enabled
There should be a 'default' and a testinstance.conf, we need to disable default 
for two configs use 80 port to listen both.
# sudo a2dissite default
# sudo service apache2 reload
But a2dissite doesn't work for me, if that case, please delete 'default' 
symlink directly:
# sudo rm /etc/apache2/sites-enabled/default
# sudo service apache2 reload

Then it should work.

BestRegards
Elen Song




--
Best wishes,
Spring Zhang

_______________________________________________
linaro-validation mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-validation

Reply via email to