Not a good idea to run web2py (or any other web app) as root.

On Friday, 19 April 2013 09:56:48 UTC-5, LightDot wrote:
>
> To clarify: this is probably a question of a security policy, as the 
> web2py process, run as root, is trying to open a browser GUI and this fails.
>
> You could run web2py as a regular user, I would actually recommend this 
> approach. You'll probably need to chown the contents of 
> /home/augusto/Downloads/web2py and all it's subdirectories to your regular 
> user, as web2py already created some additional subdirectories and files in 
> there as root. After that, just start web2py as you normally would, but 
> under a regular user account.
>
> Regards,
> Ales
>
> On Friday, April 19, 2013 4:43:08 PM UTC+2, LightDot wrote:
>>
>> You are logged in the graphical environment as a regular user, but you're 
>> starting web2py in a terminal, as root?
>>
>> After the above error, if you open your web browser manually and visit: 
>> http://127.0.0.1:8000/ do you see the welcome page?
>>
>> Regards,
>> Ales
>>
>> On Friday, April 19, 2013 3:52:56 PM UTC+2, Augusto Santos wrote:
>>>
>>> Hi guys, 
>>>
>>> I am new in web2py and I was following the tutorial to start learning 
>>> and developing with web2py. But when I came across the part about starting 
>>> the server I had a problem that I didn't succeed to solve. That's why I am 
>>> here to kindly ask you some help.
>>> Actually, I got the GUI to start the server, but the webpage does not 
>>> started correctly besides neither starting automatically and I've got this 
>>> output:
>>>
>>> root@debian:/home/augusto/Downloads/web2py# python web2py.py 
>>> web2py Web Framework
>>> Created by Massimo Di Pierro, Copyright 2007-2013
>>> Version 2.4.6-stable+timestamp.2013.04.06.17.37.38
>>> Database drivers available: SQLite(sqlite2), SQLite(sqlite3), 
>>> MySQL(pymysql), PostgreSQL(pg8000), IMAP(imaplib)
>>> please visit:
>>> http://127.0.0.1:8000/
>>> starting browser...
>>> Erro do GConf: Falha ao contatar o servidor de configuração; a causa 
>>> mais comum é um bus daemon da sessão do D-Bus faltante ou mal configurado. 
>>> Para mais informações consulte: http://projects.gnome.org/gconf/. 
>>> (Detalhes -  1: Falha ao obter uma conexão à sessão: Did not receive a 
>>> reply. Possible causes include: the remote application did not send a 
>>> reply, the message bus security policy blocked the reply, the reply timeout 
>>> expired, or the network connection was broken.)
>>> Erro do GConf: Falha ao contatar o servidor de configuração; a causa 
>>> mais comum é um bus daemon da sessão do D-Bus faltante ou mal configurado. 
>>> Para mais informações consulte: http://projects.gnome.org/gconf/. 
>>> (Detalhes -  1: Falha ao obter uma conexão à sessão: Did not receive a 
>>> reply. Possible causes include: the remote application did not send a 
>>> reply, the message bus security policy blocked the reply, the reply timeout 
>>> expired, or the network connection was broken.)
>>> Erro ao mostrar url: Operação sem suporte
>>>
>>> Can you please help me solve this problem?
>>>
>>>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to