[mezzanine-users] gunicorn critical worker timeout

2018-10-16 Thread Amir
hey guys
Today suddenly I started getting nginx 502 bad gateway error. Viewed the 
error logs in which I had:

  File 
"/home/sapien/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/arbiter.py",
 
line 583, in spawn_worker
worker.init_process()
  File 
"/home/sapien/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/workers/base.py",
 
line 134, in init_process
self.run()
  File 
"/home/sapien/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/workers/sync.py",
 
line 124, in run
self.run_for_one(timeout)
  File 
"/home/sapien/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/workers/sync.py",
 
line 83, in run_for_one
self.wait(timeout)
  File 
"/home/sapien/.virtualenvs/problog/local/lib/python2.7/site-packages/gunicorn/workers/sync.py",
 
line 35, in wait
ret = select.select(self.wait_fds, [], [], timeout)
TypeError: argument must be an int, or have a fileno() method.
[2018-08-19 15:44:41 +] [766] [CRITICAL] WORKER TIMEOUT (pid:788)
[2018-08-19 15:44:41 +] [766] [CRITICAL] WORKER TIMEOUT (pid:783)


I tried fab deploy and I get the following error:

$ kill -HUP `cat /home/sapien/mezzanine/problog/gunicorn.pid` ->

[204.12.226.162] out: /bin/bash: line 0: kill: (677) - Operation not 
permitted
[204.12.226.162] out: 

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

Requested: kill -HUP `cat /home/sapien/mezzanine/problog/gunicorn.pid`
Executed: /bin/bash -l -c "kill -HUP \`cat 
/home/sapien/mezzanine/problog/gunicorn.pid\`"

What's happened? Where do you think is the problem? 

-- 
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] Move the deployment to new VPS along withthecontents

2018-10-16 Thread Amir
I am having second thoughts about whether I have done the right thing to go 
with Mezzanine or I should have simply gone with the WordPress. I love the 
limitlessness of the Django/Mezzanine.

Thank you again :)
On Tuesday, October 16, 2018 at 6:11:42 PM UTC+3:30, Eduardo Rivas wrote:
>
> Always happy to help :) And yes, Digital Ocean is a popular and tried 
> host. You can also try Linode. The thing with VPS is you’re responsible for 
> maintaining and updating the operating system. You could look into managed 
> hosted solutions if you don’t want to do that.
>
>  
>
> The other option is to move to something like AWS, Azure, or Google Cloud 
> Platform. In some configurations you only pay for resource usage (CPU, 
> memory, disk) and they abstract away the server maintenance. Those tend to 
> be more expensive though, and the deployment process would change 
> significantly.
>
>  
>
> *From: *Amir 
> *Sent: *Tuesday, October 16, 2018 7:35 AM
> *To: *Mezzanine Users 
> *Subject: *Re: [mezzanine-users] Move the deployment to new VPS along 
> withthecontents
>
>  
>
> Eduardo, you are a valuable asset to the Mezzanine project. Thanx for 
> being here. 
>
> Do you have any recommendation for the VPS host? I am considering 
> DigitalOcean.
> I am a bit worried about the security stuff.
>
> On Tuesday, October 16, 2018 at 5:52:37 PM UTC+3:30, Eduardo Rivas wrote:
>
> You’ll need to create a database dump, copy it over to the new server, and 
> restore it. If you’re using postgres the commands are pg_dump and 
> pg_restore.
>
>  
>
> You’ll also need to move media files. I recommend you use rsync from one 
> server to the other. The folder you want to copy is /static/media/uploads.
>
>  
>
> *From: *Amir
> *Sent: *Tuesday, October 16, 2018 7:20 AM
> *To: *Mezzanine Users
> *Subject: *[mezzanine-users] Move the deployment to new VPS along with 
> thecontents
>
>  
>
> Hello guys
>
> I have deployed mezzanine to a VPS and now I want to move the whole 
> project to a new VPS from another provider.
>
> The deployment would not be of an issue, but how do I move the database 
> and the contents from the previous VPS to the new one?
>
> -- 
> 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-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] Move the deployment to new VPS along withthecontents

2018-10-16 Thread Eduardo Rivas
Always happy to help :) And yes, Digital Ocean is a popular and tried host. You 
can also try Linode. The thing with VPS is you’re responsible for maintaining 
and updating the operating system. You could look into managed hosted solutions 
if you don’t want to do that.

The other option is to move to something like AWS, Azure, or Google Cloud 
Platform. In some configurations you only pay for resource usage (CPU, memory, 
disk) and they abstract away the server maintenance. Those tend to be more 
expensive though, and the deployment process would change significantly.

From: Amir
Sent: Tuesday, October 16, 2018 7:35 AM
To: Mezzanine Users
Subject: Re: [mezzanine-users] Move the deployment to new VPS along 
withthecontents

Eduardo, you are a valuable asset to the Mezzanine project. Thanx for being 
here. 
Do you have any recommendation for the VPS host? I am considering DigitalOcean.
I am a bit worried about the security stuff.

On Tuesday, October 16, 2018 at 5:52:37 PM UTC+3:30, Eduardo Rivas wrote:
You’ll need to create a database dump, copy it over to the new server, and 
restore it. If you’re using postgres the commands are pg_dump and pg_restore.
 
You’ll also need to move media files. I recommend you use rsync from one server 
to the other. The folder you want to copy is /static/media/uploads.
 
From: Amir
Sent: Tuesday, October 16, 2018 7:20 AM
To: Mezzanine Users
Subject: [mezzanine-users] Move the deployment to new VPS along with thecontents
 
Hello guys
I have deployed mezzanine to a VPS and now I want to move the whole project to 
a new VPS from another provider.
The deployment would not be of an issue, but how do I move the database and the 
contents from the previous VPS to the new one?
-- 
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.

-- 
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] Move the deployment to new VPS along with thecontents

2018-10-16 Thread Amir
Eduardo, you are a valuable asset to the Mezzanine project. Thanx for being 
here. 
Do you have any recommendation for the VPS host? I am considering 
DigitalOcean.
I am a bit worried about the security stuff.

On Tuesday, October 16, 2018 at 5:52:37 PM UTC+3:30, Eduardo Rivas wrote:
>
> You’ll need to create a database dump, copy it over to the new server, and 
> restore it. If you’re using postgres the commands are pg_dump and 
> pg_restore.
>
>  
>
> You’ll also need to move media files. I recommend you use rsync from one 
> server to the other. The folder you want to copy is /static/media/uploads.
>
>  
>
> *From: *Amir 
> *Sent: *Tuesday, October 16, 2018 7:20 AM
> *To: *Mezzanine Users 
> *Subject: *[mezzanine-users] Move the deployment to new VPS along with 
> thecontents
>
>  
>
> Hello guys
>
> I have deployed mezzanine to a VPS and now I want to move the whole 
> project to a new VPS from another provider.
>
> The deployment would not be of an issue, but how do I move the database 
> and the contents from the previous VPS to the new one?
>
> -- 
> 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] Move the deployment to new VPS along with thecontents

2018-10-16 Thread Eduardo Rivas
You’ll need to create a database dump, copy it over to the new server, and 
restore it. If you’re using postgres the commands are pg_dump and pg_restore.

You’ll also need to move media files. I recommend you use rsync from one server 
to the other. The folder you want to copy is /static/media/uploads.

From: Amir
Sent: Tuesday, October 16, 2018 7:20 AM
To: Mezzanine Users
Subject: [mezzanine-users] Move the deployment to new VPS along with thecontents

Hello guys
I have deployed mezzanine to a VPS and now I want to move the whole project to 
a new VPS from another provider.
The deployment would not be of an issue, but how do I move the database and the 
contents from the previous VPS to the new one?
-- 
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 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] Move the deployment to new VPS along with the contents

2018-10-16 Thread Amir
Hello guys
I have deployed mezzanine to a VPS and now I want to move the whole project 
to a new VPS from another provider.
The deployment would not be of an issue, but how do I move the database and 
the contents from the previous VPS to the new one?

-- 
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.