Michal Saloň
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
If your original DB is still running, then a simple export and import either via Adminer, DBeaver or JetBrains DataGrip etc. would probably be faster and easier to do.
191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
If you are using postgres, you should be able to use
pg_restore -a -h newDbHost.zerops -d newDbHost -p 5432 -U postgres oldDbHost.dump
(our backup zip
files contain dbHostName.dump
files which contain backup for the entire schema).
But you would have to have pg_restore
(at least version 15 for PostgreSQL 16) installed locally and have zerops VPN up (so you can connect to db).191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
If your app is checking for variables during
build
, then that will not work, as in build those envs are available with RUNTIME_
prefix.
Honestly, checking envs during build is not even a good practice... Most of the time you should be building the app ons ome runner else where and then deploy finished binary/files, why would a separated runner need your production envs?
So you can set custom dummy envs in build section, or as some servies do, use .env
file, just not dpeloy it (or deploy it, normals ervices override values from .env
file by actual env variables.191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
If you want to access DB on a service where you can install our
zcli
, then just using zcli login xxxx
and zcli vpn up
, then you can connect to db by db.zerops:port
(where db
is the name/hostname of the database service).191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
Currently you can't without some kind of proxy in front of it or using a
vpn
through our zcli
.
We do plan to add a toggle to expose the DB publically, but it might take a while.191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
We do have redis though, Valkey is a 1:1 replacement, Redis just changed their licence so people are leaving it.
191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
Seems like the prepare did indeed go through. It will take a while to cache the image (we are working on speeding this up for VMs), let's see if it deploys succesfully.
191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
And one more question, how did you create the service? You could try this import
191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
add
os: alpine
to run
section.
Btw, apk
does not need an update command and you should use sudo
for apk xxx
commands.191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
Are you trying my updated
zerops.yml
?191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
Oh yeah I didn't update the commands, you are running
apt
commands, but that VM is alpine, so apk add
instead of apt-get install
191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
The TL;DR why we provide containers and not VMs is that VMs can not scale without a restart.
So all our cool magic where your containers scale CPU/Disk/RAM up or down while running does not work at all with VM.
You need to set fixed resources and at max we can scale VMs horizontally (adding more VMs or less).
Also one big limitation of real VM is, you can NOT scale disk down. So if you accidentally set it to 50GB and then want less, that not possible without creation of a new VM.
Hence why everything but
Docker
is a Container.191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
No, Docker is a full VM.
191 replies
ZZerops
•Created by Louay on 1/22/2025 in #💪・community-support
Ubuntu password
I don't think Coolify will work in a Container, as it's used for Docker orchestration and probably even itself partly runs in docker.
As Jan said above, our standard services use Linux Containers, not full fat Virtual Machines, and Docker can not run on containers.
We do support full VM's, but currently only for Alpine Linux. When you select
base: docker@latest
(for runtime or prepare, doesn't work for build
phase!), it would launch a full VM.191 replies
ZZerops
•Created by Dally on 1/7/2025 in #💪・community-support
Cloning and using a repository on build
Every command is run in separate shell, so you need to run
cd xxx && cargo build
Or
3 replies
ZZerops
•Created by Dally on 1/2/2025 in #💪・community-support
Stopped service has allocated cores and memory
Could you, please, try to start and then stop the container?
I have added error logging to location where stats are stored and it could have happened that last value sent errored out for some reason and system will not send new metrics if they haven't changed (which ofc does not happen with a stopped container).
6 replies
ZZerops
•Created by Dally on 1/2/2025 in #💪・community-support
Stopped service has allocated cores and memory
I think this is probably FE issue.
Value shown on FE is from
Next hour (22:00 to 22:59) also has some data, but all data afterwards return 0 (except for disk ofc). Could it be that FE is showing data from first item in the list instead of the last one?
6 replies
ZZerops
•Created by kolisko on 12/12/2024 in #💪・community-support
zcli service log - invalid memory address or nil pointer dereference
Seems like 1.0.33 in NPM is 1.0.32, which got there as part of debugging why our npm release GitHub Action isn't working (since it seems to be working locally).
If you remove the npm package and install it using our install script, it should work.
16 replies
ZZerops
•Created by kolisko on 12/12/2024 in #💪・community-support
zcli service log - invalid memory address or nil pointer dereference
My personal recommendation is to not use npm for such packages, but 🤷♂️
And yes the latest version is
1.0.33
, let me check what got to the npm registry.16 replies