Re: [mezzanine-users] trying to deploy mezzanine for weeks! please help

2017-09-23 Thread francois lemestre
I deleted the user coursofrancesco, and the database with the same name. 
Then the installation went on and completed. Then this is what happened: 

So i completed the installation and got a positive message. It did not show 
any error, completed the process step by step, then said "done" 
disconnecting.
I had followed this tutorial 
https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/

However, i previously had a local mezzanine site so i had to create  new 
role (postgres) with a new database. The problem is that  i restarted the 
server a couple times and saw 

"Internal Server Error" on the frontend.

I went on to do 
sudo nginx -t

It said that everything was ok. I am confused.

On Sunday, September 24, 2017 at 2:40:11 AM UTC-2:30, francois lemestre 
wrote:
>
>
> Hi There, thanks for replying. Here is the error that i get. I kept 
> trying. My problem may be the fact that it tries to create a user that is 
> "coursofrancesco" which i neve actually tried to create but which in fact 
> is the name of the mezzanine project that i m trying to put online. 
>
> I first followed this 
> https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
>   
> regularly as is. It worked quite well but since i already developped my 
> website locally with the default sqlite, i could not use it. So i tried 
> using the existing dev.db database. I got an error as fabfile seems to 
> request a db with a password and tries to create a user somehow. So i 
> decide to just go on and start a brand new postgres db. Unlucky for the 
> past couple days. 
>
> Frustrated.
>
>
>
>
>
> On Sunday, September 24, 2017 at 12:47:21 AM UTC-2:30, Eduardo Rivas wrote:
>>
>> What happens when you run "fab deploy"?
>>
>> On 2017-09-23 12:07 PM, francois lemestre wrote:
>>
>>
>> hello there,
>>
>> i have developped my website locally and asap it was ready i decided to 
>> deploy it on Digitalocean. however, most of the tutorials i find, talk 
>> about creating a new project. but i don't want to create a new project 
>> because i already have the website and just want to deploy it. The big 
>> dilema is how do i that? Wher do i put my code. I had the fabfile setup 
>> like this 
>>
>> FABRIC = {
>> "DEPLOY_TOOL": "rsync",  # Deploy with "git", "hg", or "rsync"
>> "SSH_USER": "created_user",  # VPS SSH username
>> "HOSTS": ["digitalocean ip"],  # The IP address of your VPS
>> "DOMAINS": ALLOWED_HOSTS,  # Edit domains in ALLOWED_HOSTS
>> "REQUIREMENTS_PATH": "requirements.txt",  # Project's pip requirements
>> "LOCALE": "en_US.UTF-8",  # Should end with ".UTF-8"
>> "DB_PASS": "dbpass",  # Live database password
>> "ADMIN_PASS": "user_pass",  # Live admin user password
>> "SECRET_KEY": SECRET_KEY,
>> "NEVERCACHE_KEY": NEVERCACHE_KEY,
>> }
>>
>> I did not forget to add allowed hosts either. However, I just don't know 
>> where to put my existing project. Somebody help please, i m so frustrated.
>>
>> -- 
>> 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 mezzanine-use...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] trying to deploy mezzanine for weeks! please help

2017-09-23 Thread francois lemestre
Here is the error after restarting nginx a couple times   Job for 
nginx.service failed. See "systemctl status nginx.service" and "journalctl 
-xe" for details.



On Sunday, September 24, 2017 at 4:04:08 AM UTC-2:30, francois lemestre 
wrote:
>
> I deleted the user coursofrancesco, and the database with the same name. 
> Then the installation went on and completed. Then this is what happened: 
>
> So i completed the installation and got a positive message. It did not 
> show any error, completed the process step by step, then said "done" 
> disconnecting.
> I had followed this tutorial 
>
> https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
>
> However, i previously had a local mezzanine site so i had to create  new 
> role (postgres) with a new database. The problem is that  i restarted the 
> server a couple times and saw 
>
> "Internal Server Error" on the frontend.
>
> I went on to do 
> sudo nginx -t
>
> It said that everything was ok. I am confused.
>
> On Sunday, September 24, 2017 at 2:40:11 AM UTC-2:30, francois lemestre 
> wrote:
>>
>>
>> Hi There, thanks for replying. Here is the error that i get. I kept 
>> trying. My problem may be the fact that it tries to create a user that is 
>> "coursofrancesco" which i neve actually tried to create but which in fact 
>> is the name of the mezzanine project that i m trying to put online. 
>>
>> I first followed this 
>> https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
>>   
>> regularly as is. It worked quite well but since i already developped my 
>> website locally with the default sqlite, i could not use it. So i tried 
>> using the existing dev.db database. I got an error as fabfile seems to 
>> request a db with a password and tries to create a user somehow. So i 
>> decide to just go on and start a brand new postgres db. Unlucky for the 
>> past couple days. 
>>
>> Frustrated.
>>
>>
>>
>>
>>
>> On Sunday, September 24, 2017 at 12:47:21 AM UTC-2:30, Eduardo Rivas 
>> wrote:
>>>
>>> What happens when you run "fab deploy"?
>>>
>>> On 2017-09-23 12:07 PM, francois lemestre wrote:
>>>
>>>
>>> hello there,
>>>
>>> i have developped my website locally and asap it was ready i decided to 
>>> deploy it on Digitalocean. however, most of the tutorials i find, talk 
>>> about creating a new project. but i don't want to create a new project 
>>> because i already have the website and just want to deploy it. The big 
>>> dilema is how do i that? Wher do i put my code. I had the fabfile setup 
>>> like this 
>>>
>>> FABRIC = {
>>> "DEPLOY_TOOL": "rsync",  # Deploy with "git", "hg", or "rsync"
>>> "SSH_USER": "created_user",  # VPS SSH username
>>> "HOSTS": ["digitalocean ip"],  # The IP address of your VPS
>>> "DOMAINS": ALLOWED_HOSTS,  # Edit domains in ALLOWED_HOSTS
>>> "REQUIREMENTS_PATH": "requirements.txt",  # Project's pip 
>>> requirements
>>> "LOCALE": "en_US.UTF-8",  # Should end with ".UTF-8"
>>> "DB_PASS": "dbpass",  # Live database password
>>> "ADMIN_PASS": "user_pass",  # Live admin user password
>>> "SECRET_KEY": SECRET_KEY,
>>> "NEVERCACHE_KEY": NEVERCACHE_KEY,
>>> }
>>>
>>> I did not forget to add allowed hosts either. However, I just don't know 
>>> where to put my existing project. Somebody help please, i m so frustrated.
>>>
>>> -- 
>>> 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 mezzanine-use...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>>

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] Re: Routing problems in deployed app

2017-09-24 Thread francois lemestre
Hi Ther, I know that this is off topic but I m hoping that you can help me. 
I have been trying to deploy my mezzanine app. This is what i tried:

https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/,
 
then i got  "
*Internal Server Error"*
then i deleted the droplet, and i tried this : 

https://www.digitalocean.com/community/questions/deploying-django-mezzanine-using-fabric
 

I got 
*Internal Server Error" *again. 

One thing to notice is that, the website works perfectly on local server. 
In addition, when i create a virtualenv on the droplet, it also orks 
amazingly. The moment i enter :fab all with the configurations that i have, 
the nightmare starts. I have been trying to solve this for weeks but nobody 
seems to be able to help. Please can u tell how you deployed your website 
to not have an error?

I would really appreciate your answer. I have desperately not been able to 
sleep for days because of this.

On Sunday, September 24, 2017 at 2:51:06 PM UTC-2:30, jenia mtl wrote:
>
> I somehow made it work. Don't ask me how :)
>
> On Sunday, September 24, 2017 at 12:01:48 PM UTC-4, jenia mtl wrote:
>>
>> Hello everyone.
>>
>> I'm having trouble deploying the app to my server:
>>
>>
>>http://jeniawebsitetesting.com/shop/
>>
>>
>> As you can see, I'm missing all the static files.
>>
>>
>> I get in the error.log:
>>
>> 
>> 2017/09/24 11:53:40 [error] 21769#21769: *11 
>> "/srv/http/store/store00/static/js/bootstrap.js/*index.html*" is not 
>> found (2: No such file or directory), client: 178.203.185.227, server: =, 
>> request: "GET /static/js/bootstrap.js/ HTTP/1.1", host: "
>> jeniawebsitetesting.com", referrer: "http://jeniawebsitetesting.com/shop/
>> "
>>
>>
>> Here is more of the log: http://dpaste.com/075RTQD
>>
>>
>> What is that index.html doing there at the end? I don't get it.
>>
>> Here is my nginx config: http://dpaste.com/3CQXD9D
>>
>> Here is my urls.py: http://dpaste.com/1GYHK3F
>>
>> And here is my file structure:
>>
>> ls -l /srv/http/store/store00/static/media
>>
>> drwxr-xr-x 3 jenia jenia 4096 Sep 24 11:28 product
>> drwxr-xr-x 4 jenia jenia 4096 Sep 24 11:28 uploads
>>
>>
>> Can someone tell me, how do I configure the routing in nginx/urls.py to 
>> be able to successfully serve the static file?
>>
>> Thanks
>> Jenia
>>
>

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[mezzanine-users] WHy does deploying mezzanine on digital ocean shows INternal service error?

2017-09-24 Thread francois lemestre
Hi everyone, I am desperate. 

I tried to deploy mezanine, following this 
https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
 
but i got *Internal service error*.

I tried this also 
https://www.digitalocean.com/community/questions/deploying-django-mezzanine-using-fabric,
 
same I got *Internal service error*.

I also tried the documentation of mezzanine. I got the same thing. However, 
my website works well locally and also when i create a virtualenv on the 
droplet. The problem appears when i do



* fab allPlease help me. Thanks*

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] WHy does deploying mezzanine on digital ocean shows INternal service error?

2017-09-25 Thread francois lemestre
Hi Eduardo,
The name of the project is coursofrancesco
Here is what i get now

pg_dump -FC coursofrancesco > /tmp/last.db ->

[104.131.97.134] out: sudo: unknown user: postgres
[104.131.97.134] out: sudo: unable to initialize policy plugin
[104.131.97.134] out:

Fatal error: sudo() received nonzero return code 1 while executing!

Requested: pg_dump -Fc coursofrancesco > /tmp/last.db
Executed: sudo -S -p 'sudo password:'  -u "postgres"  /bin/bash -l -c "cd /
>/de   v/null && pg_dump
-Fc coursofrancesco > /tmp/last.db"

Aborting.
Disconnecting from 104.131.97.134... done.


On Mon, Sep 25, 2017 at 1:29 AM, Eduardo Rivas 
wrote:

> It looks like you've followed a third-party tutorial that has instructed
> you to install all the dependencies manually. Have you tried following the
> official Mezzanine tutorial? It will automate all the installation steps,
> including the dependency installation, database configuration, static
> files, etc.
>
> Here's the link to the official tutorial: http://mezzanine.jupo.org/
> docs/deployment.html#tutorial
>
> I suggest you wipe your Droplet and follow the steps shown there (you are
> in Case 1: Deploying to a brand new server). Read the instructions
> completely before starting, and if you encounter any errors please include
> a traceback and all the steps you followed until the problem appeared.
>
> Good luck!
>
> On 2017-09-24 9:54 PM, francois lemestre wrote:
>
> Hi everyone, I am desperate.
>
> I tried to deploy mezanine, following this https://perezprogramming.com/
> blog/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
> but i got *Internal service error*.
>
> I tried this also https://www.digitalocean.com/
> community/questions/deploying-django-mezzanine-using-fabric, same I got 
> *Internal
> service error*.
>
> I also tried the documentation of mezzanine. I got the same thing.
> However, my website works well locally and also when i create a virtualenv
> on the droplet. The problem appears when i do
>
>
>
> * fab all Please help me. Thanks *
>
> --
> 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 mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/mezzanine-users/LEMyi3HKk04/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] WHy does deploying mezzanine on digital ocean shows INternal service error?

2017-09-25 Thread francois lemestre
Hello,

This happened after i did "fab deploy"

On Mon, Sep 25, 2017 at 4:56 PM, Eduardo Rivas 
wrote:

> On which part of the tutorial did that happen? What other commands did you
> run before that?
>
> On 2017-09-25 1:28 AM, francois lemestre wrote:
>
> Hi Eduardo,
> The name of the project is coursofrancesco
> Here is what i get now
>
> pg_dump -FC coursofrancesco > /tmp/last.db ->
>
> [104.131.97.134] out: sudo: unknown user: postgres
> [104.131.97.134] out: sudo: unable to initialize policy plugin
> [104.131.97.134] out:
>
> Fatal error: sudo() received nonzero return code 1 while executing!
>
> Requested: pg_dump -Fc coursofrancesco > /tmp/last.db
> Executed: sudo -S -p 'sudo password:'  -u "postgres"  /bin/bash -l -c "cd
> / >/de   v/null &&
> pg_dump -Fc coursofrancesco > /tmp/last.db"
>
> Aborting.
> Disconnecting from 104.131.97.134... done.
>
>
> On Mon, Sep 25, 2017 at 1:29 AM, Eduardo Rivas 
> wrote:
>
>> It looks like you've followed a third-party tutorial that has instructed
>> you to install all the dependencies manually. Have you tried following the
>> official Mezzanine tutorial? It will automate all the installation steps,
>> including the dependency installation, database configuration, static
>> files, etc.
>>
>> Here's the link to the official tutorial: http://mezzanine.jupo.org/docs
>> /deployment.html#tutorial
>>
>> I suggest you wipe your Droplet and follow the steps shown there (you are
>> in Case 1: Deploying to a brand new server). Read the instructions
>> completely before starting, and if you encounter any errors please include
>> a traceback and all the steps you followed until the problem appeared.
>>
>> Good luck!
>>
>> On 2017-09-24 9:54 PM, francois lemestre wrote:
>>
>> Hi everyone, I am desperate.
>>
>> I tried to deploy mezanine, following this https://perezprogramming.com/b
>> log/deploy-mezzanine-to-ubuntu-14-server-on-digitalocean-with-fabric/
>> but i got *Internal service error*.
>>
>> I tried this also https://www.digitalocean.com/c
>> ommunity/questions/deploying-django-mezzanine-using-fabric, same I got 
>> *Internal
>> service error*.
>>
>> I also tried the documentation of mezzanine. I got the same thing.
>> However, my website works well locally and also when i create a virtualenv
>> on the droplet. The problem appears when i do
>>
>>
>>
>> * fab all Please help me. Thanks *
>>
>> --
>> 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 mezzanine-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Mezzanine Users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>> pic/mezzanine-users/LEMyi3HKk04/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> mezzanine-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
> --
> 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 mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>
>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Mezzanine Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/mezzanine-users/LEMyi3HKk04/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> mezzanine-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 mezzanine-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [mezzanine-users] WHy does deploying mezzanine on digital ocean shows INternal service error?

2017-09-25 Thread francois lemestre
I did wipe the server. Let me check again if Postgres was installed.

Thanks

On Mon, Sep 25, 2017 at 6:10 PM, Eduardo Rivas 
wrote:

> Did you wipe your server and run "fab secure" and "fab all"? It sounds
> like you don't have Postgres installed.
>
> On 2017-09-25 2:18 PM, francois lemestre wrote:
>
> Hello,
>
> This happened after i did "fab deploy"
>
> On Mon, Sep 25, 2017 at 4:56 PM, Eduardo Rivas 
> wrote:
>
>> On which part of the tutorial did that happen? What other commands did
>> you run before that?
>>
>> On 2017-09-25 1:28 AM, francois lemestre wrote:
>>
>> Hi Eduardo,
>> The name of the project is coursofrancesco
>> Here is what i get now
>>
>> pg_dump -FC coursofrancesco > /tmp/last.db ->
>>
>> [104.131.97.134] out: sudo: unknown user: postgres
>> [104.131.97.134] out: sudo: unable to initialize policy plugin
>> [104.131.97.134] out:
>>
>> Fatal error: sudo() received nonzero return code 1 while executing!
>>
>> Requested: pg_dump -Fc coursofrancesco > /tmp/last.db
>> Executed: sudo -S -p 'sudo password:'  -u "postgres"  /bin/bash -l -c "cd
>> / >/de   v/null &&
>> pg_dump -Fc coursofrancesco > /tmp/last.db"
>>
>> Aborting.
>> Disconnecting from 104.131.97.134... done.
>>
>>
>> On Mon, Sep 25, 2017 at 1:29 AM, Eduardo Rivas 
>> wrote:
>>
>>> It looks like you've followed a third-party tutorial that has instructed
>>> you to install all the dependencies manually. Have you tried following the
>>> official Mezzanine tutorial? It will automate all the installation steps,
>>> including the dependency installation, database configuration, static
>>> files, etc.
>>>
>>> Here's the link to the official tutorial: http://mezzanine.jupo.org/docs
>>> /deployment.html#tutorial
>>>
>>> I suggest you wipe your Droplet and follow the steps shown there (you
>>> are in Case 1: Deploying to a brand new server). Read the instructions
>>> completely before starting, and if you encounter any errors please include
>>> a traceback and all the steps you followed until the problem appeared.
>>>
>>> Good luck!
>>>
>>> On 2017-09-24 9:54 PM, francois lemestre wrote:
>>>
>>> Hi everyone, I am desperate.
>>>
>>> I tried to deploy mezanine, following this
>>> https://perezprogramming.com/blog/deploy-mezzanine-to-ubuntu
>>> -14-server-on-digitalocean-with-fabric/ but i got *Internal service
>>> error*.
>>>
>>> I tried this also https://www.digitalocean.com/c
>>> ommunity/questions/deploying-django-mezzanine-using-fabric, same I got 
>>> *Internal
>>> service error*.
>>>
>>> I also tried the documentation of mezzanine. I got the same thing.
>>> However, my website works well locally and also when i create a virtualenv
>>> on the droplet. The problem appears when i do
>>>
>>>
>>>
>>> * fab all Please help me. Thanks *
>>>
>>> --
>>> 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 mezzanine-users+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>
>>> --
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "Mezzanine Users" group.
>>> To unsubscribe from this topic, visit https://groups.google.com/d/to
>>> pic/mezzanine-users/LEMyi3HKk04/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> mezzanine-users+unsubscr...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
>> 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 mezzanine-users+unsubscr...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>> --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "Mezzanine Users" group.
>> To unsubscribe from this topic, visit https://groups.google.com/d/to
&g