#Backup Settings

1 messages Β· Page 1 of 1 (latest)

past ravine
#

well first off what are the errors

#

if its caused by your data you shouldn't back it up

river sleet
#

the server and worker containers status goes to unhealthy after several hours. The warning I can see is:

#

warning error=authentik starting event=failed to proxy to backend logger=authentik.router

#

It was working fine for months and recently started happening...nothing has changed except for recent authentik upgrades.

river sleet
#

digging further it looks like the postgres container is most likely the culprit. It is throwing: FATAL: sorry, too many clients already.

past ravine
#

are you on pg16

river sleet
#

Has anyone ran into this issue?

past ravine
river sleet
#

probably not...this is what i have in my script

#

authentik on 2024.6.1

#

yes authentik is on it's own container

past ravine
#

you had to upgrade your postgres when passing to authentik 2024.6.x

river sleet
#

πŸ€¦β€β™‚οΈ I didn't realize I needed to upgrade the database

#

thanks for pointing that out

past ravine
#

no problem

#

ping me if it still happens after the upgrade ill try to help you out more

river sleet
#

I upgraded the ps to 16 and that resolved that issue but authentik still was hanging after an hour so I decided to start over and reconfigure everything. Still not working

past ravine
#

can you share your logs

river sleet
#

I noticed this in the log.
/ak-root/venv/lib/python3.12/site-packages/opencontainers/distribution/reggie/defaults.py:17: SyntaxWarning: invalid escape sequence '('

"http[s]?://(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*(),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+"

#

any ideas?

past ravine
#

thats normal-ish

river sleet
#

which container logs?

past ravine
past ravine
river sleet
#

the server container goes to unhealthy status and I am not able to get to my authentik website or any other sites that I set up

past ravine
#

docker compose up --build --force-recreate

#

and then send logs of everything

#

and can you also send your docker-compose.yml

river sleet
#

it's taking a minute...can't stop the containers...having to reboot vm.

past ravine
#

let it run a minute to get the logs and not just startup things

#

and can you try copying it in a way that doesn't break formatting / encoding

river sleet
#

it usually takes an hour before it becomes unresponsive

river sleet
past ravine
#

hmm i don't seem to see any errors either. could you share your docker information and virtual machine information

#

i saw stack.env in your compose file. are you deploying using portainer? if so, can you try deploying from the command line directly

#

@river sleet

river sleet
#

Yea I set it up in portainer. I'll remove it and try from the command line.

#

Just weird that it was working fine for more than 6 months

river sleet
#

@past ravine I just tried the command line and it still goes unresponsive after an hour or so.

#

I noticed this warning
{"domain_url": null, "event": "Loaded MMDB database", "file": "/geoip/GeoLite2-City.mmdb", "last_write": 1720729303.0, "level": "info", "logger": "authentik.events.context_processors.mmdb", "pid": 15, "schema_name": "public", "timestamp": "2024-07-16T02:14:39.100134"}

warning error=authentik starting event=failed to proxy to backend logger=authentik.router timestamp=2024-07-16T02:14:40Z

#

any idea what the issue could be

past ravine
#

by the looks of it it's just authentik starting

river sleet
#

I'm running proxmox 8.2.4 using an Ubuntu VM

#

4 processor and 16gb of RAM

past ravine
#

uhhh i'm really not sure now

#

mabye someone else would have an idea?

river sleet
#

ok thanks for trying

past ravine
#

can you try deleting all data and downgrading to 2024.4.x and retrying?

river sleet
#

yes ...I was thinking of reverting

past ravine
#

it might be an issue with proxmox and the latest release

#

but make sure ur on latest docker stable

river sleet
#

with 2024.4.x which pg version should I be using

past ravine
#

might as well stay with 16

#

i upgraded after the pr was merged and didn't have any issues

river sleet
#

Server: Docker Engine - Community
Engine:
Version: 27.0.3
API version: 1.46 (minimum version 1.24)
Go version: go1.21.11
Git commit: 662f78c
Built: Sat Jun 29 00:02:33 2024
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.7.18
GitCommit: ae71819c4f5e67bb4d5ae76a6b735f29cc25774e
runc:
Version: 1.7.18
GitCommit: v1.1.13-0-g58aa920
docker-init:
Version: 0.19.0
GitCommit: de40ad0

#

What was the latest 2024.4.x version?

past ravine
#

.2 i think

#

nvm it's .3

river sleet
#

ok thanks...I think that will solve my problem since for longest time had no issues

#

BTW, do you use proxmox too?

#

or what is your setup

past ravine
#

but are you able to get authentik working with that version

river sleet
#

yes I was using authentik since 2024.2.x

past ravine
#

moved them from my house to there for security, performance, and reliability

#

3 x 24gb ram nothing fancy really

river sleet
#

I see.

past ravine
#

i'm planning on moving them to a baremetal ec2 one day

#

and installing pve again

#

@river sleet so is authentik working fine now?

#

@final carbon do you know of any issues that could cause this on 2024.6? or maybe i missed something

river sleet
#

I don't know yet...I just fired up my pbs and going to roll back to an instanct with my portainer config

past ravine
#

i'm curious why are you managing it with portainer instead of the command line

river sleet
#

and then update that script...I prefer portainer because it's easier

past ravine
#

last time i played with portainer i deleted my gitlab install

river sleet
#

I don't have to ssh in...got a web gui

past ravine
#

makes sense

#

i just do ci/cd/devops for updates so i never ssh either

river sleet
#

yea I'm lazy LOL

past ravine
#

i can't even log in lol

#

all my stuff is behind vpn so i only have authentik for a few things but i'm planning on adding it to the remaining things and maybe depend less on vpn

river sleet
#

I'm like you...I only have a few things out in internet...the rest I wireguard to access.

past ravine
#

i never got wireguard to work

#

i only have 2 public things: my broken and incomplete and weird website and my image host

river sleet
#

I have wireguard on an LXC...works great

past ravine
#

well dns resolution actually

river sleet
#

did you try tailscale and headscale? that works great too

past ravine
#

unless it's cause my adguard runs on a container in a docker network and i expose :53 but if i expose it on all interfaces it causes massive drops in internet conn

river sleet
#

but it was overkill for what I needed

past ravine
#

yea i use tailscale

#

gonna add 3 more ips to it when i protect my intranet better

#

reminder to self tdk-1038 which has been unresolved for over a week

river sleet
#

you should setup headscale if you have not

past ravine
#

tbh i don't really see the need to self host it

river sleet
#

I just prefer not having things routed outside of my self host if not needed

past ravine
#

you still communicate with tailscale

#

when you set the control plane server in the ios app for example

#
  • changing the url looks like a pain in the a in windows
river sleet
#

I don't use tailscale anymore but I remember that you have to go thru the tailscale server for routing

past ravine
#

yea

#

i'm not too much of a networking nerd so i don't want to make it too hard on myself either

#

but out of curiosity what do you self host

river sleet
#

me neither

#

the biggest thing is vaultwarden for me

past ravine
#

have you tried out plane for task mgmt

#

i couldn't get it to work. bunch of cors errors

river sleet
#

paperless, freshrss, linkding and arr*

past ravine
#

i imported over 1.1k tasks to notion from jira

river sleet
#

and many others that I can't remember off top of my head since I shut down the vm to restore πŸ˜†

past ravine
#

lol

river sleet
#

no haven't tried plane...you got a link?

past ravine
#

btw atlassian is a royal pain to delete your account

past ravine
past ravine
river sleet
#

yea looks like a pain

past ravine
#

plane?

river sleet
#

no the Atlassian

past ravine
#

oh and have you tried harbor docker registry? last i checked the docker container tried mounting the entire file system

river sleet
#

I'm just at 5% in the restore. πŸ€¦β€β™‚οΈ

past ravine
#

just create a new vm

river sleet
#

I could but it be much longer...I have about 30 containers

#

on that 1 vm

past ravine
river sleet
#

and another 20 on another server vm

past ravine
#

yikes

#

last proxmox release i tried was like 7.4 so

river sleet
#

it's just slow because I have my pbs backups stored in another NAS

#

you should give it another go...it is great

past ravine
#

yea in def installing it when i get that baremetal

river sleet
#

I have it setup to wake on lan to my PBS and does a nightly backup and then the PBS shuts down when done

past ravine
#

but rn it's easy cause i can make a backup script in 300 lines of ruby which handles everything

#

And then sync the encrypted copy to onedrive

river sleet
#

I just got a 4 line script in a cron job πŸ˜„

#

that turns on my pbs server and does the backup and shuts down

past ravine
#

integrated pve backups ?

river sleet
#

yes

#

one line to wake up the pbs

past ravine
#

gitlab takes 20 seconds to load but my internet speed is 1.5gb up / down lol

river sleet
#

one line to connect the pbs server

#

one line to backup

#

one line to shutdown

#

wow that is slow

#

where you located

#

I get 1gig u/d

past ravine
#

canada

#

vms too

#

same region

past ravine
river sleet
#

πŸ˜†

past ravine
#

there's one thing i miss

river sleet
#

oh yea...other usefull stuff i use is homebride, scrypted, teslamate

past ravine
#

forget what it's called

#

but it saves a complete backup of both the ram state and the disk state

river sleet
#

what do you host?

past ravine
river sleet
past ravine
#

oh yea it's intentional

#

uhh refresh

river sleet
#

yea i see it now

past ravine
#

fun fact i made my personal site way before i even bought my new domain so it was just doing nothing for several weeks. i have a good dozen to dos to resolve

river sleet
#

nice

#

I just self host stuff that I need to make my life easier

past ravine
#

i'm gonna steal some guy's website

#

looks nice

#

instead

river sleet
#

LOL

past ravine
#

notice how there's no frontend technologies in /stack

river sleet
#

yea...you're a backend dev

#

i see you have promtail, lokie, grafana

past ravine
#

look at certificate transparency logs

river sleet
#

I had that working and now it's broken....another thing to fix πŸ€¦β€β™‚οΈ

past ravine
#

i need to fix it too

#

stopped logging docker for some reason

river sleet
#

i was using it to monitor activities to see if I get weird people trying to hack my stuff

past ravine
#

fail2ban

river sleet
#

yea I have fail2ban setup on most my stuff

past ravine
#

omg tailscale mobile auto connect is a pain to disable to disable vpn

#

it's the kind of thing you setup and forget

river sleet
#

and I have geo locking

past ravine
#

but i'm gonna build a web ui to see blocked ips

#

cause lol

past ravine
#

xx being other territories and nations

river sleet
#

I also try to be secure as well...got vlans setup in my home network to segragate different things

past ravine
#

idk if it's worth vlan'ing in my use case for tailscale stuff

#

public things are running in same rev proxy container so

#

different containers and i get tailscale intranets separate ips from the machine's so technically ig?

river sleet
#

yea

past ravine
#

100.64.0.0/10 is for my devices
100.65.0.0/10 is for my vms
100.66.0.0/10 is for my intranet ips so at least i organize

river sleet
#

LOL I'm now at 26% restore...it's 107GB.

past ravine
#

lol

#

how

river sleet
#

yea you got it organized well

past ravine
#

nice little notion docs

river sleet
#

you are very organized

past ravine
#

thanks

river sleet
#

I need to put stuff down on paper one day...it's all in my head and sometimes I forget

past ravine
#

wait no i inverser something in my message

#

trust notion not my words

past ravine
#

#13 is still open

#

"Push docker images from < > to new registry" which is not necessarily hard to do

river sleet
#

yea not hard

past ravine
#

it's changing it in my ci/cd which is annoying

#

which leads me to tdk-12 get gitlab host name working as intended cause rn it only works as http://gitlab:80 as external url which makes my life pain

river sleet
#

Are you doing this for learning for work?

past ravine
#

kind of

#

but if i really wanted to learn i would switch to k8s

river sleet
#

Yea...this is just my hobby

past ravine
#

i might do something in cs

#

idk what yet but probably not software engineer

#

i won't say i hate writing code but i don't see myself doing that as a job

river sleet
#

it's not a bad job though for the money

past ravine
#

i mean- yea but still

#

do u like writing code

river sleet
#

yea I do

past ravine
#

what lang

#

and full stack or

river sleet
#

I just do a lot of vb and sql

past ravine
#

old school

#

vb is gonna be gone when tech debt is cleaned up in msft's codebase

#

replaced with python

river sleet
#

yes I'm also old too..LOL

#

been in the field for almost 25 years

past ravine
#

u work at ibm or something ?

river sleet
#

🀣

past ravine
#

real question

#

or for the us gov maintaining the last nuclear control centers with 8 inch floppy disks

river sleet
#

no...just an old company that's been around for over 100 years

past ravine
#

πŸ’€

#

canada gov isn't better

#

they use angular

river sleet
#

at least they not using lisp

past ravine
#

lol

#

my dad is sr project manager there so

#

i have the chance to see a lot of the inner workings

river sleet
#

that's good you see it and know you don't want to do programming

#

I think I'm just going to call it a night and just let the damn restore go

past ravine
#

same

river sleet
#

It's going to be awhile

past ravine
#

it's 1:45 am

river sleet
#

I'll let you know if this works tomorrow

past ravine
#

and i need to be up by 5 today

river sleet
#

dang you better get some rest

past ravine
#

yea lol

#

cya

river sleet
#

bye

river sleet
#

@past ravine FYI...I spent too much time trying to figure this out. I ended up rolling my VM all the way back until before the issue occurred and so far it is working fine. I was on 2024.4.2 and pg12

past ravine
#

did you try saving a snapshot of that again and then updating pg and authentik at the same time

river sleet
#

not yet...I'm planning to do that tomorrow. 2 reasons. 1 is because I have a nightly backup that I want to capture a good state and 2 because I want to let 24 hours lapses to make sure it truly is resolved.

#

and third...I'm busy too. πŸ˜†

past ravine
#

yea makes sense

#

i'm a little more intrepid i backup my docker data every 3h instead of the entire vm state

#

unless oracle and soon aws have ways of backing up entire vms without that costing money

river sleet
#

that's intense

past ravine
#

it's not too bad either

#

compressed around 3gb per vm (and encrypted ofc)

river sleet
#

Yea mine is incremental backups so not long to do and not much storage

#

But that would mean I would have to leave my PBS on all the time which I don't want to due to high electricity cost

past ravine
#

i'm actually rewriting my backup manager to rust to redeploy it easily

#

since you have been in the industry a while what do you think of my current setup: all my vm mgmt things are binaries which are loaded to a docker base image as needed

#

kind of like software updates like ios

river sleet
#

I think that's good and probably fits your needs. It's little overkill for my purposes

past ravine
#

well i feel it's the easiest to maintain and use

#

instead of having to maintain several containers there's just one with binaries loaded on them. like linux rn

#

but i'm always looking into new things

river sleet
#

that's good...I just want things to work. I don't have the bandwidth right now to tinker

#

I depend on these apps I have running

river sleet
#

@past ravine I updated the pg to 16 and then authentik to 2024.6.1 and it's been over 24 hours with no problem. Sometimes it's just easier to rollback than to figure out the issue. Thanks for all the help though.