Comments (11)
@Nutomic have you ever run into this before?
from lemmy-ansible.
problem solved, seems the old
/etc/nginx/sites-enabled/lemmy.conf
was conflicting with a new
/etc/nginx/sites-enabled/<your-domain>.conf
from lemmy-ansible.
You're right, and everyone that switches from the previous playbook to this one will run into the same problem. Maybe we should add an ansible task which removes that file (or moves it to sites-available).
from lemmy-ansible.
In new install have a some problem.
fatal: [[email protected]]: FAILED! => {"changed": true, "cmd": "nginx -s reload", "delta": "0:00:00.072777", "end": "2021-11-04 19:07:41.321895", "msg": "non-zero return code", "rc": 1, "start": "2021-11-04 19:07:41.249118", "stderr": "nginx: [emerg] unknown log format "main" in /etc/nginx/sites-enabled/fwz.ru.conf:117", "stderr_lines": ["nginx: [emerg] unknown log format "main" in /etc/nginx/sites-enabled/loc.org.conf:117"], "stdout": "", "stdout_lines": []}
What should i do?
from lemmy-ansible.
@spa086 Your errors look different, it seems like there is something wrong in the two files it mentions (fwz.ru.conf and loc.org.conf). Either delete them, or move them somewhere else (eg sites-available, then they will be ignored).
from lemmy-ansible.
@spa086 @Nutomic
["nginx: [emerg] unknown log format "main"
check
/templates/nginx.conf
lines 115 & 117
lemmy_main
vs. main
from lemmy-ansible.
@Nutomic
fatal: [[email protected]]: FAILED! => {"changed": true, "cmd": "nginx -s reload", "delta": "0:00:00.069230", "end": "2021-11-05 06:22:19.782802", "msg": "non-zero return code", "rc": 1, "start": "2021-11-05 06:22:19.713572", "stderr": "nginx: [emerg] unknown log format "main" in /etc/nginx/sites-enabled/fwz.ru.conf:117", "stderr_lines": ["nginx: [emerg] unknown log format "main" in /etc/nginx/sites-enabled/fwz.ru.conf:117"], "stdout": "", "stdout_lines": []}
Was try to install in new vps, but the same problem.
@pixlguru
thx, will check.
from lemmy-ansible.
@pixlguru you was right, installation finished ok. But now, when accessing the server, a 502 bad gateway error
from lemmy-ansible.
@spa086
if i remember correctly, there were some other tweaks necessary,
like docker volumes paths changed and old containers had to be removed,
good luck!
from lemmy-ansible.
Please let me know if there's anything missing, so I can document them on the migration section of this readme.
from lemmy-ansible.
@spa086
if i remember correctly, there were some other tweaks necessary,
like docker volumes paths changed and old containers had to be removed,
good luck!
Hello, my error is also 502 bad gateway error, but I did not find a solution. Can you tell me which need to be changed please? my email is [email protected]
from lemmy-ansible.
Related Issues (20)
- issue with postgree password with playbook 1.2.0 ? HOT 13
- Consider enabling nginx caching HOT 11
- Upcoming 1.3.0 Release (Lemmy v0.19) HOT 8
- Update to 0.19.0 failed HOT 1
- pictrs v0.5 configuration migration
- Recommended/default config should include pg_stat_statements and auto_explain HOT 2
- Unable to get postfix/smtp to use a different smtp authentication user then `noreply@{{ domain }}` HOT 1
- Add tag for Lemmy 0.19.2 HOT 9
- Issues upgrading from 0.18.3 to 0.18.5 - Failed to lock apt for exclusive operation HOT 4
- Error connecting to postgres after fresh install (ubuntu, raspberry pi4) HOT 4
- lemmy.yml giving syntax error (I think) when trying to run HOT 2
- [Bug]: Getting nginx 502 bad gateway error when deploying lemmy with ansible HOT 3
- aptitude install? HOT 2
- Lemmy-ui ports configuration when setting up with docker and reverse proxy is a bit confusing. HOT 1
- no indication to where the vars.yml file is HOT 1
- When you try to create a post with bad word that's in bad words filter regex, request returns 400 and website freezes
- On next release, include upgrade instructions for postgres 15 -> 16 HOT 3
- Alma linux 9 DO droplet doesn't run through HOT 6
- not currently on a branch HOT 2
- Postgres docker container refusing connection HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lemmy-ansible.