Could anyone help me set up a lemmy instance?
I'm trying to follow the guide here join-lemmy.org/docs/administra…
I get an error when I run docker compose up -d. It happens after docker outputs ⠹ Container lemmy-postgres-1 Starting
Error response from daemon: failed to create task for container: failed to create shim task: OCI
runtime create failed: runc create failed: unable to start container process: error during container
init: error mounting "/home/user/lemmy/volumes/postgres" to rootfs at "/var/lib/postgresql/data":
change mount propagation through procfd: open o_path procfd: open /var/lib/docker/
overlay2/238f1ac3ed9eac5f9c1fdc9ee1851634765c83da087baccc4dfbf4fcc4316b32/merged/
var/lib/postgresql/data: no such file or directory: unknownI'm not really sure what this means, and trying all of AIs suggestions didn't fix it.
I'm kinda new to all of this, so any help would be appreciated.
Эта запись была отредактирована (23 час. назад)
нравится это
не нравится это
INeedMana
в ответ на revoirwinery • • •I don't have capacity to go all the way but it seems you've got a problem with creating the volume
This looks similar and was configuration error: stackoverflow.com/questions/73…
Error while mounting volume "mount through procfd: not a directory: unknown"
Stack Overflowнравится это
supersquirrel и Binette нравится это.
slazer2au
в ответ на revoirwinery • • •нравится это
revoirwinery, Vicinus, supersquirrel и ns1 нравится это.
revoirwinery
в ответ на slazer2au • • •нравится это
myrmidex, Vicinus, supersquirrel, BurgerBaron, ns1, TORFdot0 и Binette нравится это.
asudox
в ответ на revoirwinery • • •нравится это
poVoq, revoirwinery, Vicinus, supersquirrel, BurgerBaron, OnlyLurks, CtrlAltDyeet и Binette нравится это.
poVoq
в ответ на asudox • • •нравится это
asudox, Vicinus, supersquirrel, khannie, BurgerBaron, CtrlAltDyeet, ns1, Bricriu и ProdigalFrog нравится это.
revoirwinery
в ответ на poVoq • • •That'd be a relief if that's the case.
I've been getting a bit demoralized trying to figure this out.
нравится это
Vicinus, supersquirrel, khannie, CtrlAltDyeet и asudox нравится это.
revoirwinery
в ответ на asudox • • •pgautoupgrade/pgautoupgrade:18-alpinefor the postgres image.нравится это
Vicinus, supersquirrel, khannie, cyberic, BurgerBaron, CtrlAltDyeet, ns1 и asudox нравится это.
jivandabeast
в ответ на asudox • • •try this
But, make a backup of your db beforehand. I don't know how it would work when upgrading an existing database
jivandabeast
2025-11-04 07:52:38
asudox нравится это.
0_o7
в ответ на revoirwinery • • •Out of the topic but, If you really want to install lemmy, I'd suggest you wait until version 1.0 or a couple bugfix release after it.
It'll likely be more stable and you won't have to deal with breaking changes. Might save yourself some headaches.
нравится это
revoirwinery и funkforager нравится это.
jivandabeast
в ответ на revoirwinery • • •This is the solution to your problem
Change your config to mount the data directory to
/var/lib/postgresqlinstead of/var/lib/postgresql/dataMy advice though, if your debugging skills are primarily comprised of asking AI for help, you're in for a bit of a learning curve. The software is absolutely amazing (I've been running an instance since 2023), but weird things pop up and because this is so niche quick google searches are very limited and you gotta be willing to dive into github issues (this for example, I've also had to do it for pictrs to debug something a while ago).
Don't feel discouraged though, this is probably the most rewarding thing I host (more than plex, immich, or any of the other "mainstream" things people talk about)
Editing to add, i know this is the fix because I had to reinstall lemmy from the ground up (long story) a few weeks ago and had the same issue 😀
Problemtic symlink /var/lib/postgresql/data?
HouzuoGuo (GitHub)нравится это
revoirwinery, ns1, INeedMana, funkforager, Bricriu, asudox, Hitch42, jaz и Binette нравится это.
revoirwinery
в ответ на jivandabeast • • •Wow, thank you so much. This solved it.
I'm honestly not that familiar with docker or lemmy, so I was just trying to follow the guide and look up issues as they arose.
I simply could not figure this out after hours of trying, so I decided to call in the cavalry. I was not disappointed.
ns1 нравится это.
jivandabeast
в ответ на revoirwinery • • •Understandable, I will say you definitely chose to dive straight into the deep end choosing Lemmy 🤣 I think most people cut their teeth using docker on stuff like Plex and the related *arrs, then jump to the more complex stuff.
But, it's also the best way to learn so enjoy it 😀 stuff like this will become trivial eventually