@Natal
@lemmy.worldHello everyone,
Recently found LinguaCafe and decided to spin it up. There's a provided docker-compose with just volumes to specify to your own taste. Pretty easy right?
I can't make it work. Spent nearly two hours already trying to figure out what I'm missing.
Can someone take a look at my compose file and tell me where I'm stupid?
_____________ EDITS
Progress has been made, I used chmod 777 on the whole app directory and now get the following error :
Illuminate\Database\QueryException
SQLSTATE[HY000] [1045] Access denied for user 'linguacafe'@'ip adress censored' (using password: YES) (SQL: select count(*) as aggregate from users
)
Here's a somewhat anonymized pastebin, I just removed the password and my name from the file. The rest is basically the file provided by the github + my paths. https://pastebin.com/u2cbWm2n
https://github.com/simjanos-dev/LinguaCafe
What happens is, my containers spin up apparently properly. But when I go to :9191, I have this:
I did sudo chmod 777 /home/user/Documents/Docker/LinguaCafe/temp -R as instructed by the documentation.
Never had that happen before. Does anyone know? Thanks
Hello everyone,
I've been on Pop_OS for a good week now and I'm liking it. First linux too. I have a series of small questions though and hopefully someone can enlighten me.
Question 1) I have a 3440x1440 screen. The resolution once booted is fine. During boot and up until the login screen, my monitor keeps displaying "HDMI 3440x1440" and flickers as if reset or switched port. I suspect it's because the screens before the login screen are not compatible with that resolution. I have no idea whether I'm supposed to see something or not until that point. Is there a way to "fix" it if there's even anything to fix?
Question 2) Also boot related. Booting anything else but Pop_OS is relatively quiet with the occasional Hard drive working noise. With Pop_OS, my hard drive makes almost uninterrupted sounds as if writing/reading from boot up until well over a minute after login. What is it? Timeshift already working? I'm slightly worried it's bringing extra wear and tear to my drives.
Question 3) Is there a way to display peripherals info? I'm thinking about my wireless mouse battery level. I'm going to dig that info specific for my mouse after work today, but I'm wondering if there's more of a "general blanket" solution to display very basic info from any connected device somewhere. I used to do stuff like that with Rainmeter on Windows.
Thanks!
Update Oct 6 :
I have been messing around the idea of permissions but just got back from work so this is very much Work In Progress. What I noticed is that the "postgres" folder inside the Docker folder that has the docker-compose file had a lock icon on it. https://imgur.com/a/lZir4tt The owner is weird and doesn't exist on the other computer. I don't explain how this owner was created and that may be due to my poor understanding of Docker and docker-compose.
So I have made a pastebin with the docker compose here if anyone is interested in this little puzzle : https://pastebin.com/Vsh6S23G This docker-compose is basically the one from the installation guide from the app website, I just changed some passwords and users related stuff which are written as .
I tried using Déjà Dup Backups to sync my entire Docker folder which also contains Tandoor and it complained it could not sync the postgres folder either so defo something wrong with the permissions. Which explains why I can't create a new recipe on the other computer, because it doesn't have permission for that specific task. Oddly enough, I get a server 500 error, but if I refresh the recipe list, the new recipe that led to the server 500 error is, actually, there.
Would a pastebin of the .env help?
ORIGINAL POST :
Hello again, I hope it's okay that I make several posts in a rather short time, I'm stumped.
I run a series of containers on old computer A for the recipe manager Tandoor Recipes.
I want to move it to another computer B so I initially thought I would: -copy the env and docker-compose -dump the source database
Move everything to the new computer, compose everything and fill the database from the dump.
I got 500 server errors so I went on Discord and asked what was the proper way of doing this. I've been told in theory I could shut everything down, pack my Tandoor folder in a zip, paste it on the target computer B and boot everything and voilà.
None of this works properly.
I do manage to get an instance of Tandoor running on my new computer, it displays every recipe I had originally, but it has an issue when trying to create a new recipe. I get a white page with "Server Error (500)". It does not happen on the original Tandoor, despite being all the same files in theory.
I noticed that on my source computer, the postgres DB directory changes permission when I start the container, as well as the directory containing the recipe pictures. So I'm wondering if wrong permissions might be corrupting data while copying stuff?
Thanks
Hello everyone!
I had a container with a DB crap itself yesterday so I'm trying to speed up my learning to back up stuff.
I came across a script that taught me how to back-up a containerized postgres db at given intervals and it works. I managed to create db dumps and restore them. I've documented everything and now my whole docker-compose/env etc are on git control.
There's one part of the script I don't decypher but I'd like to maybe change it. It is about the number of back-up copies.
Here's the line from the tutorial:
ls -1 /backup/*.dump | head -n -2 | xargs rm -f
Can someone explain to me what this line does? I'd like to keep maybe 3 copies just in case the auto-backup backs up a rotten one.
Thanks!
Full code below:
backup:
image: postgres:13
depends_on:
- db_recipes
volumes:
- ./backup:/backup
command: >
bash -c "while true; do
PGPASSWORD=$$POSTGRES_PASSWORD pg_dump -h db-postgresql -U $$POSTGRES_USER -Fc $$POSTGRES_DB > /backup/$$(date +%Y-%m-%d-%H-%M-%S).dump
echo ""Backup done at $$(date +%Y-%m-%d_%H:%M:%S)""
ls -1 /backup/*.dump | head -n -2 | xargs rm -f
sleep 86400
done"
Hello everyone!
TL;DR: CP2077 worked via Lutris yesterday. Doesn't work today. No idea how to troubleshoot Linux, need pointers.
I've made the switch to Linux three days ago and I'm trying to figure out how to handle gaming. I've been recommended to use Lutris on my recent post about me switching to Linux and that's what I did.
Not gonna lie, I watched a couple videos, read a couple wikis and then jumped in the fire, eager to play, so I don't fully understand what I'm doing yet.
Yesterday, I told Lutris it could find my copy of Cyberpunk 2077 on my Windows disk. Filled the config panel as instructed by the youtube video (Linux Experiment) and launched the game.
Worked perfectly immediately.
Today, it crashes on launch with a RED error saying 'Cyberpunk 2077 flatlined'.
I'm on Pop_OS and did some updates yesterday so I suspect it might be related?
On Windows I'd know how to troubleshoot on my own, but here I'm confused as to where to start the investigation. Could you give me pointers for me to go under the hood and figure out what's going wrong?
Thanks for your help! :)
Summary of info: Pop_OS 22.04 up to date. Cyberpunk installed on different disk in a windows partition. Using Lutris. Need anything else? PC specs useful?
Edit2: Writing this from Pop_Os! I had experience with Mint for my Self hosting rig and wanted to see other pastures. Decided to rearrange my three drives, two of them are still Windows, another I emptied and dedicated to Pop OS. That way I still have easy fallback to Windows if I need to do something fast and then I'll know what I have to add to Linux over time.
First things first, I've setup auto-back up. For now it's google drive because it's the easy one. I have to figure how to self host Nextcloud and then use this as a backup storage.
Steam is installed and to be fair, I'm happy with the native linux games. Still going to take a look at Lutris and co out of curiosity.
I mostly miss MusicBee right now. Any recommendation for the most solid music player? Also, what's a good movie player? I used MPV, I need something capable to deal with 3440x1440 resolution and stretch properly.
Also, I wanted to install Bitwarden and the first thing that showed up is Snap Store. I remember hearing about Canonical in a bad way so should I stay clear from that?
Hey!
Today is the day. I finally got fed up with Windows booting up with an advert that I already had yesterday and had clicked on "remind me in three days" reluctantly. I'm finally tired of killing Telemetry.
Now that gaming is less important for me, I feel like now is a good time to switch mainly to Linux. I might keep a small spare drive with a Windows/Steam partition for the occasional incompatible game.
I've just started transferring my precious files to an external drive and I'm preparing for my Exodus.
Still unsure about the distro I'll choose, I would like to avoid distro hoping. But now I made up my mind, I'm leaving windows for the foreseable future.
I started self-hosting three months ago as a way to trialing Linux with the added bonus of being useful and my server is still up and alive so I'm confident I can use Linux without breaking it.
Any welcoming tips?
I'm a bit anxious about the big change, but also relieved I won't have to put up with the bloat/adverts.
Edit: Two hours in and so many kind and useful comments. Thanks for the welcome party! You're all a bunch of good humans :)
Hello everyone,
I have containers that I want to get rid of because I can't make them work, but I can't seem to get rid of them. I'm using Portainer usually and the remove command on the container works, but they shortly reappear as newly created containers.
I moved to the terminal to try and sudo it out of existence manually, docker ps, the containers are here. So I sudo docker stop , the terminal confirms. Then sudo rm -f , confirmed again.
Docker ps shows they are gone, but a minute later another docker ps shows they are back up again.
I've looked it up online and people mentioned it might be running as a service. The command "docker service ls" returns an empty list.
How can I nuke those containers?
Hello,
I need some help with plex/jellyfin (I have the same difficulty with both.) Note that I am brand new to Linux and Self-hosting, I'm using the home media server as a cool and useful project to learn Linux before moving away from Windows as I acknowledge I have a lot to learn in Linux before considering migrating in a smooth manner.
I'm here to learn and I don't request to be spoon-fed a solution because I would ideally like to end up knowing more and be able to solve this myself next time.
Description of project: I'm trying to setup a local home media server running on 192.168, nothing fancy online.
The comments below helped. My docker run was wrong and missing a source:target. Eventually I got it working and on my way also learned how to map an NTFS external drive with fstab! My media server is up and running!
Debian Bookworm
Install Plex on the Debian bookworm laptop and access music library locally
Library /home/user/media/data is seen and added to Plex but no actual files or sub-directory are then located |
Ran in docker container
How I setup plex's docker:
sudo docker run \
-d \
--name plex \
--network=host \
-e TZ="<timezone>" \
-e PLEX_CLAIM="*My claim got I got online*" \
-v /home/*user*/.config/plex/config \
-v /home/*user*/plex/transcode \
-v /home/*user*/media/data \
plexinc/pms-docker
What I have tried/noticed:
I'm out of ideas with my limited and new knowledge. Can you help me out? I can provide screenshots and more detailed information, just tell me what you need.
Hello everyone New to Linux, new to self hosting, and struggling a bit but making progress.
I have two questions: 1 Is there a YouTube channel or a website with tutorials and explanations for the dummies like me? Something eli5 with easy words to start with and understand the basics.
2 I see a lot about nginx and reverse proxy and not sure I need it. I want to run a couple apps on my local network to be able to access it on any computer inside the house and, for now, nowhere else. Do I need nginx? What about port security? I'm worried my lack of understanding regarding ports would make my home network vulnerable. But since for now I only use 192.168.1 , i'd say I'm safe from intruders?
I acknowledge it's all surely basic but I'm not sure where to find a comprehensive source of learning instead of googling bits and pieces.
Thanks
Hey! Long story short, I'm interested in Self hosting stuff and want to wet my feet a bit with a spare laptop I have. The main nvme drive is used by windows 10, and it has a 250 Go SD card.
I've been trying to install TrueNAS Scale and YunoHost on the SD card to no avail. I have seen people on forums say they had stuff installed on an SD card but I'm starting to doubt it.
Can it work? I think I need some help but I don't know what info might be useful.