NullPointerException

joined 1 year ago
[–] [email protected] 3 points 11 months ago

yup, this is what I do and it works great. just be careful if you add plugins that store a ton of metadata that changes a lot (or logs) because that can lead to some sync conflicts and you might wanna exclude them. I've just been ignoring the sync conflicts tho and haven't had issues yet so maybe you could do the same

[–] [email protected] 1 points 11 months ago

I checked out your edit and what's going on is pretty weird. my recommendation (if you don't wanna just use the native import/export feature and give up on DB dumps) is to (on the new server) create a minimal tandoor docker-compose.yml, run it, do minimal setup, see if it works, and if the fresh container works, check the permissions, then just replicate those perms for your other postgres directory that contains data you actually care about. good luck!

[–] [email protected] 1 points 11 months ago

agreed, good find with that import/export feature, didn't think to check for that since I don't use tandoor. personally I'd just use the native import/export feature though since it feels less hacky than copying the whole DB imo. but if OP still wants to copy the files over, it might be easier to either just tar or tar + gzip rather than tar + zip so they can do it all in one command.

[–] [email protected] 6 points 11 months ago* (last edited 11 months ago) (2 children)

you're probably right about it being a permissions error but also including some relevant logs would be useful (or just stick all of them on pastebin or something and give us a link). could also be a docker misconfiguration considering it's a different system and I assume they're not identically set up with Ansible or something similar

edit: also id personally use tar because I'm not entirely sure zip files preserve linux permissions

edit again: from 2 seconds of google searches, I think I'm correct about that, so definitely try using tar

[–] [email protected] 0 points 1 year ago (2 children)

honestly I don't think it's really a significant issue but if you're worried just use a fs that can repair itself like zfs (not sure if btrfs can do that too but it might)