The dollar sign issue is embarrassingly obvious in hindsight:
http://stackoverflow.com/questions/10202162/escaping-when-executing-a-remote-bash-command-from-python-fabric

As for the nginx config, given your postgres version is 5 years old, I'm
gonna take a wild guess at the nginx version you're using not being
compatible with the bundled nginx conf in Mezzanine. You'll find it in the
deploy directory of your project where you're free to modify it to suit
your needs.


On Mon, Mar 10, 2014 at 11:25 AM, Thomas Johnson <[email protected]> wrote:

> Now I am getting an error with fab deploy:
>
> [127.0.0.1] Executing task 'deploy'
>
> ------
> deploy
> ------
>
> [127.0.0.1] Passphrase for private key:
> [127.0.0.1] put: <file obj> -> /etc/nginx/sites-enabled/protraderwiki.conf
>
> $ service nginx restart ->
>
> [127.0.0.1] out: sudo password:
> [127.0.0.1] out: Restarting nginx: [emerg]: "ssl" parameter can be
> specified for the default "listen" directive only in
> /etc/nginx/sites-enabled/protraderwiki.conf:8
> [127.0.0.1] out: configuration file /etc/nginx/nginx.conf test failed
> [127.0.0.1] out:
>
> Fatal error: sudo() received nonzero return code 1 while executing!
>
> Requested: service nginx restart
> Executed: sudo -S -p 'sudo password:'  /bin/bash -l -c "service nginx
> restart"
>
> Aborting.
>
> On Sunday, March 9, 2014 7:05:24 PM UTC-5, Thomas Johnson wrote:
>>
>> The password started and ended with $$. After removing them it worked.
>>
>> On Sunday, March 9, 2014 7:01:58 PM UTC-5, Stephen McDonald wrote:
>>>
>>> What symbols? Sounds like a bug.
>>>
>>>
>>> On Mon, Mar 10, 2014 at 11:00 AM, Thomas Johnson <[email protected]>wrote:
>>>
>>>> The password I was using had a couple symbols in it haha. Thanks :)
>>>>
>>>>
>>>> On Sunday, March 9, 2014 6:50:33 PM UTC-5, Stephen McDonald wrote:
>>>>
>>>>> You may need to specify the database host in your Django settings.
>>>>>
>>>>>
>>>>> On Mon, Mar 10, 2014 at 10:43 AM, Thomas Johnson 
>>>>> <[email protected]>wrote:
>>>>>
>>>>>> I had a completely vanilla debian 6 vps when I started out this
>>>>>> afternoon. It is failing at the createdb command with the following 
>>>>>> error:
>>>>>>
>>>>>> ......
>>>>>> [127.0.0.1] out:     return Database.connect(**conn_params)
>>>>>> [127.0.0.1] out:   File "/home/tomfoolery/protraderwik
>>>>>> i/lib/python2.6/site-packages/psycopg2/__init__.py", line 164, in
>>>>>> connect
>>>>>> [127.0.0.1] out:     conn = _connect(dsn,
>>>>>> connection_factory=connection_factory, async=async)
>>>>>> [127.0.0.1] out: django.db.utils.OperationalError: FATAL:  password
>>>>>> authentication failed for user "protraderwiki"
>>>>>> [127.0.0.1] out: FATAL:  password authentication failed for user
>>>>>> "protraderwiki"
>>>>>> [127.0.0.1] out:
>>>>>> [127.0.0.1] out:
>>>>>>
>>>>>> Fatal error: run() received nonzero return code 1 while executing!
>>>>>>
>>>>>> Requested: /home/tomfoolery/protraderwiki/bin/python
>>>>>> /home/tomfoolery/protraderwiki/project/manage.py createdb --noinput
>>>>>> --nodata
>>>>>> Executed: /bin/bash -l -c "cd /home/tomfoolery/protraderwiki/project
>>>>>> && source /home/tomfoolery/protraderwiki/bin/activate &&
>>>>>> /home/tomfoolery/protraderwiki/bin/python /home/tomfoolery/
>>>>>> protraderwiki/project/manage.py createdb --noinput --nodata"
>>>>>>
>>>>>> Aborting.
>>>>>> Disconnecting from 127.0.0.1... done.
>>>>>>
>>>>>>
>>>>>> /etc/postgresql/8.4/main/pg_hba.conf
>>>>>> ...
>>>>>> local   all         postgres                          ident
>>>>>>
>>>>>> # TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD
>>>>>>
>>>>>> # "local" is for Unix domain socket connections only
>>>>>> local   all         all                               md5
>>>>>> # IPv4 local connections:
>>>>>> host    all         all         127.0.0.1/32          md5
>>>>>> # IPv6 local connections:
>>>>>> host    all         all         ::1/128               md5
>>>>>>
>>>>>>
>>>>>> I've tried deleting the database and user but I keep getting the same
>>>>>> error. Any suggestions would be awesome
>>>>>>
>>>>>> --
>>>>>> You received this message because you are subscribed to the Google
>>>>>> Groups "Mezzanine 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/d/optout.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Stephen McDonald
>>>>> http://jupo.org
>>>>>
>>>>  --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Mezzanine 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/d/optout.
>>>>
>>>
>>>
>>>
>>> --
>>> Stephen McDonald
>>> http://jupo.org
>>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "Mezzanine 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/d/optout.
>



-- 
Stephen McDonald
http://jupo.org

-- 
You received this message because you are subscribed to the Google Groups 
"Mezzanine 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/d/optout.

Reply via email to