shaked_coffee

joined 2 years ago
[–] [email protected] 2 points 2 weeks ago

IT WORKED! Thank yoy again for the help :)

[–] [email protected] 1 points 2 weeks ago

I've tried first removing the -it flag as suggested by @[email protected] in another comment and see if that works out. Otherwise I'll try to debug with a logfile as you suggested, thanks!

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

Oh you are right, thank you. I've tried removing it and see if it fixes the issue 🤞

[–] [email protected] 1 points 2 weeks ago

Thank you for pointing it out. I'll fix it as soon as possible and see if it solves the issue.

However, the script I pasted is fired by another script (called docker_backupper.sh, that is the one triggered by the cronjob and whose purpose is firing a specific script for each service to be backed up) and that script has the #!/bin/bash on top, so I fear adding it also to the "invoked scripts" won't change that much

 

I've made the following backup script for my immich stack to be automatically run every day

# Load variables from the .env file
SCRIPT_DIR="$(dirname "$(readlink -f "$0")")"
set -a
source "$SCRIPT_DIR/../.env"
set +a

# Create a dump of the database and back it up
docker exec -it immich_db pg_dumpall -c -U immich > immich/latest_db_dump.sql
rustic -r $BUCKET_NAME/immich backup immich/latest_db_dump.sql --password=$REPO_PWD

# Backup the library, uploads and profile folders from the upload volume
rustic -r $BUCKET_NAME/immich backup immich/uploads_v/library --password=$REPO_PWD
rustic -r $BUCKET_NAME/immich backup immich/uploads_v/upload --password=$REPO_PWD
rustic -r $BUCKET_NAME/immich backup immich/uploads_v/profile --password=$REPO_PWD

# Apply forget policy
rustic -r $BUCKET_NAME/immich forget $RUSTIC_FORGET_POLICY --password=$REPO_PWD

and when I test it everything works properly, and the created sql dump file is complete and properly backed up.

However, when the execution is triggered automatically by a cronjob (as specified in this crontab line)

"30 3 * * *    root    /home/admin/WinguRepo/scripts/docker_backupper.sh"

(the line is taken from the nixos configuration file, that's why it also contains the user executing the operation)

it seems something breaks in the dumping process, because the script completes successfully but the sql dump file is an empty file (as can be noticed in the following output of rustic -r myrepo snapshots

snapshots for (host [wingu-box], label [], paths [immich/latest_db_dump.sql])
| ID       | Time                | Host      | Label | Tags | Paths                     | Files | Dirs |      Size |
|----------|---------------------|-----------|-------|------|---------------------------|-------|------|-----------|
| 10a32a83 | 2025-01-06 20:56:48 | wingu-box |       |      | immich/latest_db_dump.sql |     1 |    2 | 264.6 MiB |
| 1174bc2e | 2025-01-07 12:50:36 | wingu-box |       |      | immich/latest_db_dump.sql |     1 |    2 | 264.6 MiB |
| 00977334 | 2025-01-08 03:31:24 | wingu-box |       |      | immich/latest_db_dump.sql |     1 |    2 |       0 B |
| 513fffa1 | 2025-01-10 03:31:25 | wingu-box |       |      | immich/latest_db_dump.sql |     1 |    2 |       0 B |
4 snapshot(s)

(the first two snapshots were manually triggered by me executing the script, the latter two instead are triggered automatically by the cronjob)

Any idea about what is causing this behavior?

EDIT: Solution found thank's to @[email protected] comment:

You don’t need -it because you don’t run an interactive session in docker. It might be failing because you ask for a pseudoterminal in an environment where it doesn’t make sense.

[–] [email protected] 1 points 3 weeks ago (1 children)

I gave both distrobox and devcontainers a try but using them to install flutter seemed me a bit stretched, since it's not a single application that should be "containerized" by the rest of the system, but rather something several of my applications are supposed to interact with. But maybe it's just because I'm still new to this approach.

However, in the end I managed to have it working with the "traditional" install, I've updated the original post!

 

cross-posted from: https://feddit.it/post/13363649

Hi! I'm a flutter developer and I've recently switched from Ubuntu to Bluefin (based on Fedora Silverblue) I was trying to install flutter and all the dependencies it asks for when running flutter doctor and while for clang++, cmake and ninja I have been able to install them with Homebrew (brew install llvm cmake ninja) and the warning went away, flutter seems not to detect GTK 3.0 development libraries when installed through homebrew (brew install gtk+3)

After having looked a little bit online, I've seen that the problem is probably that it's searching the libraries in the wrong place and in fact even when I run pkg-config --modversion gtk+-3.0 I see the library as missing. Therefore, I tried setting the PKG_CONFIG_PATH env variable to the folder where brew installed my libraries (/home/linuxbrew/.linuxbrew/opt/gtk+3/lib/pkgconfig) and after that the output of the pkg-config program above is the one expected. However, this doesn't seem to fix the issue with flutter doctor... why? where should I specify this path for flutter to notice it then?

EDIT: I found out that I was almost right! The PKG_CONFIG_PATH env variable is what flutter looks at to find GTK-3 libraries, but should be set to /home/linuxbrew/.linuxbrew/lib/pkgconfig (if pkg-config has been installed through brew as I did) and then everything will work properly.

 

Hi! I'm a flutter developer and I've recently switched from Ubuntu to Bluefin (based on Fedora Silverblue) I was trying to install flutter and all the dependencies it asks for when running flutter doctor and while for clang++, cmake and ninja I have been able to install them with Homebrew (brew install llvm cmake ninja) and the warning went away, flutter seems not to detect GTK 3.0 development libraries when installed through homebrew (brew install gtk+3)

After having looked a little bit online, I've seen that the problem is probably that it's searching the libraries in the wrong place and in fact even when I run pkg-config --modversion gtk+-3.0 I see the library as missing. Therefore, I tried setting the PKG_CONFIG_PATH env variable to the folder where brew installed my libraries (/home/linuxbrew/.linuxbrew/opt/gtk+3/lib/pkgconfig) and after that the output of the pkg-config program above is the one expected. However, this doesn't seem to fix the issue with flutter doctor... why? where should I specify this path for flutter to notice it then?

EDIT: I found out that I was almost right! The PKG_CONFIG_PATH env variable is what flutter looks at to find GTK-3 libraries, but should be set to /home/linuxbrew/.linuxbrew/lib/pkgconfig (if pkg-config has been installed through brew as I did) and then everything will work properly.

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

But if the atproto team actually releases a way to selfhost a relay server as well (and not just a data server), in theory if bluesky enshittifies you could always fork the app, selfhost your PDS and Relay and migrate, while still being able to interact with the people in the "mainstream bluesky".

I know this is a big if, and that at the moment it's not reality, but the Atmosphere it's at leaat 10 years younger than the Fediverse. So I'd say let's not call it shit yet and just see how it evolves...

 

The ads of this company called Airback that was making this backpacks where you could fit more stuff thanks to a built-in vacuum system appeared on my feed multiple times, but since the smallest bag they were making wasn't small enough to be used as free bag for lowcost companies I never really considered them. Now though I see there is a new model on their website called Airback Go that is made exactly for that purpose, and so I was wondering: does anyone here have actually tried it (or its bigger brother)? How is the quality of the backpacks? Is the vacuum thing something worth the price or it's more of a marketing strategy?

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

ok I checked and you are right, the apache container actually exposes the 11000 port on the host. so i tried following the instructions for “traefik in a docker container on the same machine” and… it still didn’t work (now I was getting a Bad Gateway error)

at this point I think I’ll just stick with my old setup with docker compose. I was interested in AIO because I thought it could have been an easier to maintain way to host NC (also considering it’s official, while the docker compose method is not) but apparently it’s not meant to be inserted in an already existing setup like mine so I’ll stick with what I currently have.

it would be nice though if the NC devs also publish a “recommended docker-compose.yaml file” (in a similar way of what Immich does) so that more advanced users still can have an easy way to set everything up without having to look for the correct containers and settings required all over the internet

[–] [email protected] 2 points 4 months ago (2 children)

thank you! so, wanting to follow your tip and exposing the 11000 port from the apache container to the host (in order to have a setup that is valid even if I move the service to another machine), how should I do that? because the apache container is also created by AIO’s mastercontainer and so I don’t have a place where to specify its port mapping (while usually I would do it adding 11000:11000 to the ports section of the docker compose)…

[–] [email protected] 2 points 4 months ago (4 children)

Thank you! Idk how but I didn't noticed the paragraph in the docs saying that labels condition is not supported. I'll try with the file config and see if this way I can make it work. The only thing I'm still missing is the IP of the Apache container: shouldn't it be an IP on the traefik_net network where also the traefik container runs? And if so how can I specify to the mastercontainer to create the Apache container on that network with a specific IP address?

 

I'm currently running a Nextcloud instance in docker, using the "multiple containers" method, but I recently discovered that the reccomended method to run it is using this "All In One" image I previously didn't know about, and so I wanted to try to migrate to that setup (also in order to have easily also the office and whiteboard features that atm I don't have on my instance + have easier Backup-restore process)

The problem is that on my server I'm using traefik as a reverse proxy to expose services to the internet, and it is working on a specific docker network (called traefik_net) where also every container that should be exposed is connected, and from the official documentation of Nextcloud AIO I really don't understand how am I supposed to configure it to work in a setup like mine (mainly because the mastercontainer creates all the containers it needs on a network called nextcloud_aio and I didn't find a way to change that and where to set the proper traefik lables)

Anyone that is running AIO behind a traefik reverse proxy maybe can help me to understand?

[–] [email protected] -1 points 6 months ago

Maybe take a look at PhotoSync as well, it's not foss but it's a really well-done app and seems to be what you are looking for

[–] [email protected] 22 points 6 months ago

Imho the card view redesign was more than needed, thank you!

Big kudos to the thunderbird team, since the supernova announcement they've done a really good job

[–] [email protected] 77 points 6 months ago (21 children)

Anyone willing to summarize those mistakes here, for those who can't watch the video rn?

 

cross-posted from: https://feddit.it/post/9251429

I was previously using PopOS! 22.04 on my tuxedo laptop and I'd installed on it Howdy to take advantage of the IR camera and have a windows hello alike face recognition feature.

Everything was working fine, but after some time GNOME 46 and its new goodies were too tempting to stick with Pop's old GNOME version (at least for me) and therefore I switched to Ubuntu 24.04

However, when I tried to install howdy using the PPAs as I did with Pop I noticed it wasn't working because of some changes that were made regarding on how Python is managed, and I couldn't find a solution for that. Looking at howdy's GitHub issues, there are a lot of them talking about this problem that seems to be started with 23.x versions already, but having so many issues created a bit too much confusion to me and I didn't manage to find a working solution from there.

Is there anyone here using Howdy on Ubuntu 24.04? How have you managed to install it?

 

I was previously using PopOS! 22.04 on my tuxedo laptop and I'd installed on it Howdy to take advantage of the IR camera and have a windows hello alike face recognition feature.

Everything was working fine, but after some time GNOME 46 and its new goodies were too tempting to stick with Pop's old GNOME version (at least for me) and therefore I switched to Ubuntu 24.04

However, when I tried to install howdy using the PPAs as I did with Pop I noticed it wasn't working because of some changes that were made regarding on how Python is managed, and I couldn't find a solution for that. Looking at howdy's GitHub issues, there are a lot of them talking about this problem that seems to be started with 23.x versions already, but having so many issues created a bit too much confusion to me and I didn't manage to find a working solution from there.

Is there anyone here using Howdy on Ubuntu 24.04? How have you managed to install it?

 

È da almeno un anno che nei supermercati intorno a me a Milano (Carrefour e Esselunga, sia grandi che "express") sono presenti praticamente tutti i gusti di barattolino tranne quello, che una volta invece c'era insieme agli altri...

Anche voi avete notato questa cosa? O è una cosa locale? Qualche idea sul quale potrebbe essere la causa?

 

Today thanks to a NetworkChuck video I discovered OpenWebUl and how easy it is to set up a local LLM chat assistant. In particular, the ability to upload documents and use them as a context for chats really caught my interest. So now my question is: let's say l've uploaded 10 different documents on OpenWebUl, is there a way to ask llama3 which between all the uploaded documents contains a certain information (without having to explicitly tag all the documents)? And if not is something like this possible with different local lIm combinations?

 

Yesterday I was trying to install the Ubisoft version of AC Odissey on my PopOS! machine, and I wasn't able to do so because when I try to launch Ubisoft Connect from Lutris, it asks me to do the login and then shows only a black rectangle.

I tried looking online for a solution but as far as I understood it's a problem of the new Ubisoft Connect UI and I wasn't able to find any fix... can someone help?

It really sucks because it prevents me to play some games that are supposed to run on Linux just because at the time I bought them on Ubisoft Connect instead of Steam :/

 

I've recently bought my first Tuxedo laptop, an InfinityBook Pro 16 - Gen8 and after having some minor issues with Fedora on it (mainly with the Tuxedo Control Center) I moved to PopOS! and since then it worked flawlessly. Or at least, it used to work flawlessly until last week, when the laptop started to reboot at (apparently) random points of its usage. This is REALLY annoying.

Does anyone encountered the same issue? Have you identified its causes? And how have you fixed it?

 

Ho da poco finito di ascoltare l'episodio del podcast Decoder con l'intervista al CEO di Bluesky e mi è sembrato un progetto molto interessante.

Quando era uscito (ancora in closed beta) ero molto dubbioso e diffidente vista la loro decisione di creare un nuovo protocollo anziché adottare ActivityPub, ma dopo aver sentito le motivazioni dietro questa scelta e i loro obiettivi per il progetto ho deciso di dargli una chance...

Voi che ne pensate? Lo usate in parallelo al Fediverso?

view more: next ›