Hello there 👋🏻
I'm very sorry about all the trouble you've had with the deployment process. I know the feeling of spending days on a bug without progress. I hope you are able to deploy your site eventually.
I think the main cause of all trouble is the release of Fabric 2 just 18 days ago (https://github.com/fabric/fabric/releases/tag/2.0.0). I'm not aware of the specifics related to this release, but a major version change might indicate that many things will break if not updated. The fabfile included with Mezzanine was written for Fabric 1 and Python 2. Mezzanine itself has been compatible with Python 3 for many years now, but the default deployment process assumes Python 2.
Besides that, I don't think deploying with rsync will work on Windows since no such command exists in Windows (though I'm unaware if a port exists and if you've installed it). I also develop on Windows and deploy with git without issue.
My advice to get this sorted would be:
- Destroy and rebuild your Droplet in DO.
- Do not create a new user on the droplet, you only need the root user for the deployment process. A non-root user will be created for you if you follow the deployment tutorial. In fact you only need to SSH into your Droplet once to change the root password. You don't need to install system nor Python dependencies.
- Create a new git repository in your development machine and
commit all relevant files to it. In local_settings.py change the
deployment method to git.
- Install Fabric 1 with: pip install -U "fabric<2" (quotes are important when specifying versions to pip)
- Assuming you installed Mezzanine from pip, you may not have the latest version of the fabfile on your system. Go to https://github.com/stephenmcd/mezzanine/blob/master/mezzanine/project_template/fabfile.py and replace your local fabfile with that.
- Follow the Deployment tutorial (Case 1). http://mezzanine.jupo.org/docs/deployment.html#case-1-deploying-to-a-brand-new-server
If you encounter any other issues, I'd be happy to help troubleshoot further. Please include your Mezzanine, Django, Fabric, and Python versions, as well as full tracebacks of the errors you're seeing, and the details of your droplet.
Finally, I would like to remind you Mezzanine is built and
maintained by a community of volunteers. If the software is making
you upset and you come here looking for help, the least you can do
is assume the volunteers who wrote Mezzanine and who are going to
help you out have good intentions. We are not wasting your time,
we are not responsible for the changes in the tools we depend on
(like Fabric), we have zero obligation to help you develop and
deploy a website (yet, we will gladly do it as we've done many
times in the past for others). If you've found a bug in the code
or an error in the docs, report it without parading how broken or
outdated things are. 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-use...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Scott.
To debug a production site, I recommend you enable email error reporting. This will deliver an email with a complete traceback whenever a 500 error occurs in your server. The instructions are here: https://groups.google.com/d/msg/mezzanine-users/x4rV1JckP2I/2EyJak17BQAJ