jamesoldstob
jamesoldstob
CCoder.com
Created by Martí on 1/17/2025 in #help
coder_agent shutdown / coder_script run_on_stop not working
As far as I know this was working before upgrading to 2.18.3 (from 2.15.1)
18 replies
CCoder.com
Created by Martí on 1/17/2025 in #help
coder_agent shutdown / coder_script run_on_stop not working
And yes that is a persistent directory. I can write to it, restart, and expect my files to still be there
18 replies
CCoder.com
Created by Martí on 1/17/2025 in #help
coder_agent shutdown / coder_script run_on_stop not working
I'm seeing this issue as well. I have a shutdown_script specified in my coder_agent resource
shutdown_script = "echo shutdown script ran on $(date) > /home/${local.linux_user}/shutdown.log"
shutdown_script = "echo shutdown script ran on $(date) > /home/${local.linux_user}/shutdown.log"
The script doesn't seem to run, there is no shutdown.log present on reboot. Coder server ver v2.18.3 Using these providers for the workspace
terraform {
required_providers {
coder = {
source = "coder/coder"
version = "2.1.2"
}
google = {
source = "hashicorp/google"
version = "6.18.1"
}
...
terraform {
required_providers {
coder = {
source = "coder/coder"
version = "2.1.2"
}
google = {
source = "hashicorp/google"
version = "6.18.1"
}
...
18 replies