The filebrowser module always loading

No description
10 Replies
ovalgee
ovalgeeOP7d ago
No description
Phorcys
Phorcys6d ago
hey @ovalgee could you share workspace logs please? thanks
ovalgee
ovalgeeOP4d ago
I don't know why the log can not be downloaded.
No description
ovalgee
ovalgeeOP4d ago
I had wait more than 3 minutes.
resource "coder_app" "filebrowser" {
agent_id = coder_agent.main.id
display_name = "file browser"
slug = "filebrowser"
url = "http://localhost:13339"
icon = "/icon/filebrowser.svg"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13339/healthz"
interval = 3
threshold = 10
}
}
resource "coder_app" "filebrowser" {
agent_id = coder_agent.main.id
display_name = "file browser"
slug = "filebrowser"
url = "http://localhost:13339"
icon = "/icon/filebrowser.svg"
subdomain = false
share = "owner"

healthcheck {
url = "http://localhost:13339/healthz"
interval = 3
threshold = 10
}
}
resource "coder_agent" "main" {
arch = data.coder_provisioner.me.arch
os = "linux"
dir = "/home/${local.username}"
startup_script = <<-EOT
set -e

# Prepare user home with default files on first start.
if [ ! -f ~/.init_done ]; then
cp -rT /etc/skel ~
touch ~/.init_done
fi

# install and start code-server
# curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &

# startup filebrowser
/usr/local/bin/filebrowser --noauth --root /home/${local.username} --port 13339 >/tmp/filebrowser.log 2>&1 &
EOT
...
...
resource "coder_agent" "main" {
arch = data.coder_provisioner.me.arch
os = "linux"
dir = "/home/${local.username}"
startup_script = <<-EOT
set -e

# Prepare user home with default files on first start.
if [ ! -f ~/.init_done ]; then
cp -rT /etc/skel ~
touch ~/.init_done
fi

# install and start code-server
# curl -fsSL https://code-server.dev/install.sh | sh -s -- --method=standalone --prefix=/tmp/code-server --version 4.11.0
/tmp/code-server/bin/code-server --auth none --port 13337 >/tmp/code-server.log 2>&1 &

# startup filebrowser
/usr/local/bin/filebrowser --noauth --root /home/${local.username} --port 13339 >/tmp/filebrowser.log 2>&1 &
EOT
...
...
ovalgee
ovalgeeOP4d ago
this file is the docker image log.
Phorcys
Phorcys3d ago
could you try removing the filebrowser coder_app resource and the # startup filebrowser part in your startup_script and use our filebrowser module instead? https://registry.coder.com/modules/filebrowser
ovalgee
ovalgeeOP5h ago
Is still can not working
ovalgee
ovalgeeOP5h ago
No description
ovalgee
ovalgeeOP4h ago
Hey, I setup sub domain and then the two mode of main.tf can working

Did you find this page helpful?