Comments (9)
Run sudo docker-compose logs lemmy
and paste the output.
from lemmy-ansible.
ERROR r2d2: FATAL: password authentication failed for user "lemmy"
repeats a ton of times
from lemmy-ansible.
Okay, this means you didn't properly uninstall lemmy using those uninstall instructions. The volumes folder is still there, and its using the wrong password. You need to either follow the uninstall instructions, or run sudo docker-compose down
, and delete the volumes folder manually.
The ansible auto-generates the password for you, do not change that.
from lemmy-ansible.
It has this line in bold in the instructions:
Edit that file and change the config to your liking. Note: Do not edit anything inside the {{ }} braces.
Did you edit the password in there?
from lemmy-ansible.
I ran ansible-playbook -i inventory/hosts uninstall.yml --become
to uninstall like it says so im not sure how I could've uninstalled it wrong.
I didn't edit anything in the config file this time I just left everything on default
edit: I ran sudo docker-compose down
and rm -rf to delete the volumes and then rebooted the server and then reinstalled it again and that fixed the issue. not sure why uninstalling with the ansible script and then reinstalling didnt fix it
from lemmy-ansible.
@dessalines after installing and running the instance should the database password and tls type be changed through the ui of the admin account? The documentation isn't very clear on the correct way to go about adding the options like where is the correct location to add strict_allowlist: true or other options.
from lemmy-ansible.
We might have an issue with our uninstall script then, I'll check it out.
There's no need to change the database password, its autogenerated and random.
You can add config blocks from that config file of options linked, but you don't need to copy the whole file, and especially not anything in the curly braces, as that bolded section clearly says.
from lemmy-ansible.
ok thanks!
last question before I close the issue. Do I add the config blocks by after the default config like this
{
# for more info about the config, check out the documentation
# https://join-lemmy.org/docs/en/administration/configuration.html
database: {
host: postgres
password: "(redacted)"
}
hostname: "(redacted)"
pictrs_url: "http://pictrs:8080"
federation: {
enabled: true
}
email: {
smtp_server: "postfix:25"
smtp_from_address: "noreply@(redacted)
}
}
{
# Added Options
# Settings related to activitypub federation
# See the documentation for available config fields and descriptions:
# https://join-lemmy.org/docs/en/administration/configuration.html
{
hostname: lemmy-alpha
federation: {
enabled: true
}
slur_filter:
'''
(fag(g|got|tard)?\b|cock\s?sucker(s|ing)?|ni((g{2,}|q)+|[gq]{2,})[e3r]+(s|z)?|mudslime?s?|kikes?|\bspi(c|k)s?\b|\bchinks?|gooks?|bitch(es|ing|y)?|whor(es?|ing)|\btr(a|@)nn?(y|ies?)|\b(b|re|r)tard(ed)?s?)
'''
# list of instances with which federation is allowed
allowed_instances: [
instance1.tld
instance2.tld
/* ... */
]
# Instances which we never federate anything with (but previously federated objects are unaffected)
blocked_instances: [
string
/* ... */
]
# If true, only federate with instances on the allowlist and block everything else. If false
# use allowlist only for remote communities, and posts/comments in local communities
# (meaning remote communities will show content from arbitrary instances).
strict_allowlist: true
# Number of workers for sending outgoing activities. Search logs for Activity queue stats to
# see information. If running number is consistently close to the worker_count, you should
# increase it.
worker_count: 64
}
I'm confused because looking at the config file linked in the docs it seems there are options inbetween settings in the {{}} cant be changed so I'm not sure where im supposed to add the options and whether or not I have to add
federation: {
# Whether to enable activitypub federation.
enabled: true
again to make sure strict_allowlist: true
works
I think it would really help if there was a block in the docs that was ready to be copy pasted into the site configuration from the admin panel to configure the options
sorry for the dumb questions
from lemmy-ansible.
No, everything has to go within the top level {}. You can't have two hostname fields, like you've done above.
{{}}
is referring to these fields.. Not sure how that could be more clear.
Those config blocks are optional, do not add them unless you know what they do, and what you want them to do.
from lemmy-ansible.
Related Issues (20)
- 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
- Problem with docker-compose step HOT 3
- Dependency Dashboard
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.