dokku / dokku

A docker-powered PaaS that helps you build and manage the lifecycle of applications
https://dokku.com
MIT License
29.21k stars 1.92k forks source link

Getting error when upgrading dokku #7010

Closed mooktakim closed 1 month ago

mooktakim commented 3 months ago

Hello all,

I installed dokku a while ago, wanted to upgrade from v0.31 to latest. I used the boostrap.sh, so wasn't sure if it installed deb version. I didn't find any deb packages installed on Ubuntu. I found my dokku git clone in /root/dokku and though I can follow the source upgrading steps here.

Unfortunately, I'm getting an error. I don't understand what it means. Something about go. Any help would be appreciated.

Shell output:

root@app01 ~ # cd ~/dokku
root@app01 ~/dokku # git pull --tags origin master
From https://github.com/dokku/dokku
 * branch                master     -> FETCH_HEAD
Already up to date.
root@app01 ~/dokku # sudo DOKKU_BRANCH=master make install
apt-get update -qq
wget -qO /usr/local/bin/docker-image-labeler https://github.com/dokku/docker-image-labeler/releases/download/v0.8.0/docker-image-labeler-linux-amd64
chmod +x /usr/local/bin/docker-image-labeler
wget -qO /usr/local/bin/docker-container-healthchecker https://github.com/dokku/docker-container-healthchecker/releases/download/v0.11.0/docker-container-healthchecker-linux-amd64
chmod +x /usr/local/bin/docker-container-healthchecker
wget -qO /usr/local/bin/lambda-builder https://github.com/dokku/lambda-builder/releases/download/v0.8.0/lambda-builder-linux-amd64
chmod +x /usr/local/bin/lambda-builder
wget -qO /usr/local/bin/netrc https://github.com/dokku/netrc/releases/download/v0.10.0/netrc-linux-amd64
chmod +x /usr/local/bin/netrc
wget -qO /usr/local/bin/sshcommand https://github.com/dokku/sshcommand/releases/download/v0.18.0/sshcommand
chmod +x /usr/local/bin/sshcommand
sshcommand create dokku /usr/local/bin/dokku
wget -qO /usr/local/bin/plugn https://github.com/dokku/plugn/releases/download/v0.15.3/plugn-linux-amd64
chmod +x /usr/local/bin/plugn
wget -qO /usr/local/bin/procfile-util https://github.com/dokku/procfile-util/releases/download/v0.19.0/procfile-util-linux-amd64
chmod +x /usr/local/bin/procfile-util
apt-get -qq -y --no-install-recommends install curl
grep -i -E "^docker" /etc/group || groupadd docker
docker:x:999:dokku,ubuntu
usermod -aG docker dokku
wget -nv -O - https://get.docker.com/ | sh
2024-07-28 22:41:35 URL:https://get.docker.com/ [21582/21582] -> "-" [1]
# Executing docker install script, commit: 1ce4e39c9502b89728cdd4790a8c3895709e358d
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.
+ sleep 20
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc
+ sh -c chmod a+r /etc/apt/keyrings/docker.asc
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu jammy stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.21.12
 Git commit:        6312585
 Built:             Tue Jul 23 19:57:01 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.1.1
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.12
  Git commit:       cc13f95
  Built:            Tue Jul 23 19:57:01 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.19
  GitCommit:        2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc:
  Version:          1.7.19
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

================================================================================

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

    dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.

To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent
         to root access on the host. Refer to the 'Docker daemon attack surface'
         documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================

sleep 2 # give docker a moment i guess
apt-get -qq -y --no-install-recommends install help2man
apt-get -qq -y --no-install-recommends install man-db
wget -qO /usr/local/bin/sigil https://github.com/gliderlabs/sigil/releases/download/v0.11.0/sigil-linux-amd64
chmod +x /usr/local/bin/sigil
apt-get -qq -y --no-install-recommends install dos2unix
apt-get -qq -y --no-install-recommends install jq
apt-get -qq -y --no-install-recommends install parallel
make -e stack
make[1]: Entering directory '/root/dokku'
Start pulling herokuish from gliderlabs/herokuish:latest-22
docker images | grep gliderlabs/herokuish || docker pull gliderlabs/herokuish:latest-22
gliderlabs/herokuish      latest-22   2b52f88f9979   11 months ago       1.05GB
make[1]: Leaving directory '/root/dokku'
mkdir -p /var/lib/dokku
git describe --tags > /var/lib/dokku/VERSION  2>/dev/null || echo '~master (2024-07-28T22:42+00:00)' > /var/lib/dokku/VERSION
cp dokku /usr/local/bin/dokku
chmod 0755 /usr/local/bin/dokku
make go-build || exit 1
make[1]: Entering directory '/root/dokku'
basedir=/root/dokku; \
for dir in plugins/*; do \
        if [ -e $dir/Makefile ]; then \
                make -e -C $dir build-in-docker || exit $? ;\
        fi ;\
done
make[2]: Entering directory '/root/dokku/plugins/app-json'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=app-json \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/app-json \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
go: updates to go.mod needed, disabled by -mod=readonly; to update it:
        go mod tidy
make: *** [../../common.mk:31: commands] Error 1
make: *** Waiting for unfinished jobs....
go: updates to go.mod needed, disabled by -mod=readonly; to update it:
        go mod tidy
go: updates to go.mod needed, disabled by -mod=readonly; to update it:
        go mod tidy
make: *** [../../common.mk:44: triggers] Error 1
make: *** [../../common.mk:34: subcommands] Error 1
make[2]: *** [../../common.mk:16: build-in-docker] Error 2
make[2]: Leaving directory '/root/dokku/plugins/app-json'
make[1]: *** [Makefile:54: go-build] Error 2
make[1]: Leaving directory '/root/dokku'
make: *** [Makefile:83: copyfiles] Error 1
josegonzalez commented 3 months ago

The bootstrap script generally installs dokku from a package - you can check if it was installed that way via dpkg:

dpkg -l vlc

Mind running that to verify you didn't install from source the first time?

mooktakim commented 3 months ago

@josegonzalez sure, here's the result:

root@app01 ~ # dpkg -l vlc
dpkg-query: no packages found matching vlc
josegonzalez commented 3 months ago

Oh sorry, that should say dokku, not vlc.

mooktakim commented 3 months ago

Oh sorry, that should say dokku, not vlc.

Haha I thought that's what you meant. I ran it also with dokku, no result.

josegonzalez commented 3 months ago

Ah okay. So then in the source version of dokku upstream, I need to run something to make sure the go mod for each plugin is up to date. I can get to that later today.

josegonzalez commented 2 months ago

The master branch should be up to date now, dependency wise.

mooktakim commented 2 months ago

@josegonzalez Unofrtunately seeing the same error:

root@app01 ~/dokku # git pull --tags origin master
From https://github.com/dokku/dokku
 * branch                master     -> FETCH_HEAD
Already up to date.
root@app01 ~/dokku # sudo DOKKU_BRANCH=master make install
apt-get update -qq
wget -qO /usr/local/bin/docker-image-labeler https://github.com/dokku/docker-image-labeler/releases/download/v0.8.0/docker-image-labeler-linux-amd64
chmod +x /usr/local/bin/docker-image-labeler
wget -qO /usr/local/bin/docker-container-healthchecker https://github.com/dokku/docker-container-healthchecker/releases/download/v0.11.0/docker-container-healthchecker-linux-amd64
chmod +x /usr/local/bin/docker-container-healthchecker
wget -qO /usr/local/bin/lambda-builder https://github.com/dokku/lambda-builder/releases/download/v0.8.0/lambda-builder-linux-amd64
chmod +x /usr/local/bin/lambda-builder
wget -qO /usr/local/bin/netrc https://github.com/dokku/netrc/releases/download/v0.10.0/netrc-linux-amd64
chmod +x /usr/local/bin/netrc
wget -qO /usr/local/bin/sshcommand https://github.com/dokku/sshcommand/releases/download/v0.18.0/sshcommand
chmod +x /usr/local/bin/sshcommand
sshcommand create dokku /usr/local/bin/dokku
wget -qO /usr/local/bin/plugn https://github.com/dokku/plugn/releases/download/v0.15.3/plugn-linux-amd64
chmod +x /usr/local/bin/plugn
wget -qO /usr/local/bin/procfile-util https://github.com/dokku/procfile-util/releases/download/v0.19.0/procfile-util-linux-amd64
chmod +x /usr/local/bin/procfile-util
apt-get -qq -y --no-install-recommends install curl
grep -i -E "^docker" /etc/group || groupadd docker
docker:x:999:dokku,ubuntu
usermod -aG docker dokku
wget -nv -O - https://get.docker.com/ | sh
2024-08-11 09:28:27 URL:https://get.docker.com/ [21596/21596] -> "-" [1]
# Executing docker install script, commit: 0d6f72e671ba87f7aa4c6991646a1a5b9f9dae84
Warning: the "docker" command appears to already exist on this system.

If you already have Docker installed, this script can cause trouble, which is
why we're displaying this warning and provide the opportunity to cancel the
installation.

If you installed the current Docker package using this script and are using it
again to update Docker, you can safely ignore this message.

You may press Ctrl+C now to abort this script.
+ sleep 20
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq ca-certificates curl >/dev/null
+ sh -c install -m 0755 -d /etc/apt/keyrings
+ sh -c curl -fsSL "https://download.docker.com/linux/ubuntu/gpg" -o /etc/apt/keyrings/docker.asc
+ sh -c chmod a+r /etc/apt/keyrings/docker.asc
+ sh -c echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu jammy stable" > /etc/apt/sources.list.d/docker.list
+ sh -c apt-get update -qq >/dev/null
+ sh -c DEBIAN_FRONTEND=noninteractive apt-get install -y -qq docker-ce docker-ce-cli containerd.io docker-compose-plugin docker-ce-rootless-extras docker-buildx-plugin >/dev/null
+ sh -c docker version
Client: Docker Engine - Community
 Version:           27.1.1
 API version:       1.46
 Go version:        go1.21.12
 Git commit:        6312585
 Built:             Tue Jul 23 19:57:01 2024
 OS/Arch:           linux/amd64
 Context:           default

Server: Docker Engine - Community
 Engine:
  Version:          27.1.1
  API version:      1.46 (minimum version 1.24)
  Go version:       go1.21.12
  Git commit:       cc13f95
  Built:            Tue Jul 23 19:57:01 2024
  OS/Arch:          linux/amd64
  Experimental:     false
 containerd:
  Version:          1.7.19
  GitCommit:        2bf793ef6dc9a18e00cb12efb64355c2c9d5eb41
 runc:
  Version:          1.7.19
  GitCommit:        v1.1.13-0-g58aa920
 docker-init:
  Version:          0.19.0
  GitCommit:        de40ad0

================================================================================

To run Docker as a non-privileged user, consider setting up the
Docker daemon in rootless mode for your user:

    dockerd-rootless-setuptool.sh install

Visit https://docs.docker.com/go/rootless/ to learn about rootless mode.

To run the Docker daemon as a fully privileged service, but granting non-root
users access, refer to https://docs.docker.com/go/daemon-access/

WARNING: Access to the remote API on a privileged Docker daemon is equivalent
         to root access on the host. Refer to the 'Docker daemon attack surface'
         documentation for details: https://docs.docker.com/go/attack-surface/

================================================================================

sleep 2 # give docker a moment i guess
apt-get -qq -y --no-install-recommends install help2man
apt-get -qq -y --no-install-recommends install man-db
wget -qO /usr/local/bin/sigil https://github.com/gliderlabs/sigil/releases/download/v0.11.0/sigil-linux-amd64
chmod +x /usr/local/bin/sigil
apt-get -qq -y --no-install-recommends install dos2unix
apt-get -qq -y --no-install-recommends install jq
apt-get -qq -y --no-install-recommends install parallel
make -e stack
make[1]: Entering directory '/root/dokku'
Start pulling herokuish from gliderlabs/herokuish:latest-22
docker images | grep gliderlabs/herokuish || docker pull gliderlabs/herokuish:latest-22
gliderlabs/herokuish         latest-22   2b52f88f9979   11 months ago   1.05GB
make[1]: Leaving directory '/root/dokku'
mkdir -p /var/lib/dokku
git describe --tags > /var/lib/dokku/VERSION  2>/dev/null || echo '~master (2024-08-11T09:28+00:00)' > /var/lib/dokku/VERSION
cp dokku /usr/local/bin/dokku
chmod 0755 /usr/local/bin/dokku
make go-build || exit 1
make[1]: Entering directory '/root/dokku'
basedir=/root/dokku; \
for dir in plugins/*; do \
        if [ -e $dir/Makefile ]; then \
                make -e -C $dir build-in-docker || exit $? ;\
        fi ;\
done
make[2]: Entering directory '/root/dokku/plugins/app-json'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=app-json \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/app-json \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make triggers/app-json-process-deploy-parallelism triggers/app-json-get-content triggers/core-post-deploy triggers/core-post-extract triggers/install triggers/post-app-clone-setup triggers/post-app-rename triggers/post-app-rename-setup triggers/post-create triggers/post-delete triggers/post-deploy triggers/post-release-builder triggers/pre-release-builder triggers/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/app-json'
ln -sf triggers app-json-process-deploy-parallelism
ln -sf triggers app-json-get-content
ln -sf triggers core-post-deploy
ln -sf triggers core-post-extract
ln -sf triggers install
ln -sf triggers post-app-clone-setup
ln -sf triggers post-app-rename
ln -sf triggers post-app-rename-setup
ln -sf triggers post-create
ln -sf triggers post-delete
ln -sf triggers post-deploy
ln -sf triggers post-release-builder
ln -sf triggers pre-release-builder
ln -sf triggers report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/app-json'
make subcommands/report subcommands/set
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/app-json'
ln -sf subcommands subcommands/report
ln -sf subcommands subcommands/set
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/app-json'
make[2]: Leaving directory '/root/dokku/plugins/app-json'
make[2]: Entering directory '/root/dokku/plugins/apps'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=apps \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/apps \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make subcommands/clone subcommands/create subcommands/destroy subcommands/exists subcommands/list subcommands/lock subcommands/locked subcommands/rename subcommands/report subcommands/unlock
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/apps'
ln -sf subcommands subcommands/clone
ln -sf subcommands subcommands/create
ln -sf subcommands subcommands/destroy
ln -sf subcommands subcommands/exists
ln -sf subcommands subcommands/list
ln -sf subcommands subcommands/lock
ln -sf subcommands subcommands/locked
ln -sf subcommands subcommands/rename
ln -sf subcommands subcommands/report
ln -sf subcommands subcommands/unlock
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/apps'
make triggers/app-create triggers/app-destroy triggers/app-exists triggers/app-maybe-create triggers/deploy-source-set triggers/install triggers/post-app-clone-setup triggers/post-app-rename triggers/post-app-rename-setup triggers/post-create triggers/post-delete triggers/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/apps'
ln -sf triggers app-create
ln -sf triggers app-destroy
ln -sf triggers app-exists
ln -sf triggers app-maybe-create
ln -sf triggers deploy-source-set
ln -sf triggers install
ln -sf triggers post-app-clone-setup
ln -sf triggers post-app-rename
ln -sf triggers post-app-rename-setup
ln -sf triggers post-create
ln -sf triggers post-delete
ln -sf triggers report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/apps'
make[2]: Leaving directory '/root/dokku/plugins/apps'
make[2]: Entering directory '/root/dokku/plugins/builder'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=builder \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/builder \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make subcommands/report subcommands/set
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/builder'
ln -sf subcommands subcommands/report
ln -sf subcommands subcommands/set
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/builder'
make triggers/builder-detect triggers/builder-get-property triggers/builder-image-is-cnb triggers/builder-image-is-herokuish triggers/core-post-extract triggers/install triggers/post-app-clone-setup triggers/post-app-rename-setup triggers/post-delete triggers/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/builder'
ln -sf triggers builder-detect
ln -sf triggers builder-get-property
ln -sf triggers builder-image-is-cnb
ln -sf triggers builder-image-is-herokuish
ln -sf triggers core-post-extract
ln -sf triggers install
ln -sf triggers post-app-clone-setup
ln -sf triggers post-app-rename-setup
ln -sf triggers post-delete
ln -sf triggers report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/builder'
make[2]: Leaving directory '/root/dokku/plugins/builder'
make[2]: Entering directory '/root/dokku/plugins/buildpacks'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=buildpacks \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/buildpacks \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make triggers/buildpack-stack-name triggers/install triggers/post-app-clone-setup triggers/post-app-rename-setup triggers/post-delete triggers/post-extract triggers/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/buildpacks'
ln -sf triggers buildpack-stack-name
ln -sf triggers install
ln -sf triggers post-app-clone-setup
ln -sf triggers post-app-rename-setup
ln -sf triggers post-delete
ln -sf triggers post-extract
ln -sf triggers report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/buildpacks'
make subcommands/add subcommands/clear subcommands/list subcommands/remove subcommands/report subcommands/set subcommands/set-property
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/buildpacks'
ln -sf subcommands subcommands/add
ln -sf subcommands subcommands/clear
ln -sf subcommands subcommands/list
ln -sf subcommands subcommands/remove
ln -sf subcommands subcommands/report
ln -sf subcommands subcommands/set
ln -sf subcommands subcommands/set-property
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/buildpacks'
make[2]: Leaving directory '/root/dokku/plugins/buildpacks'
make[2]: Entering directory '/root/dokku/plugins/common'
rm -rf prop common triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=common \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/common \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
rm -rf prop
rm -rf common
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
GOARCH=amd64 go build -ldflags="-s -w"  -o prop src/prop/prop.go
GOARCH=amd64 go build -ldflags="-s -w"  -o common src/common/common.go
make triggers/app-list triggers/core-post-deploy triggers/install triggers/post-delete
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/common'
ln -sf triggers app-list
ln -sf triggers core-post-deploy
ln -sf triggers install
ln -sf triggers post-delete
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/common'
make[2]: Leaving directory '/root/dokku/plugins/common'
make[2]: Entering directory '/root/dokku/plugins/config'
rm -rf commands config_sub subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=config \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/config \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
rm -rf config_sub
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
GOARCH=amd64 go build -ldflags="-s -w"  -o config_sub src/config_sub/config_sub.go
make triggers/config-export triggers/config-get triggers/config-get-global triggers/post-app-clone-setup triggers/post-app-rename-setup
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/config'
ln -sf triggers config-export
ln -sf triggers config-get
ln -sf triggers config-get-global
ln -sf triggers post-app-clone-setup
make subcommands/bundle subcommands/clear subcommands/export subcommands/get subcommands/keys subcommands/show subcommands/set subcommands/unset
ln -sf triggers post-app-rename-setup
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/config'
ln -sf subcommands subcommands/bundle
ln -sf subcommands subcommands/clear
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/config'
ln -sf subcommands subcommands/export
ln -sf subcommands subcommands/get
ln -sf subcommands subcommands/keys
ln -sf subcommands subcommands/show
ln -sf subcommands subcommands/set
ln -sf subcommands subcommands/unset
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/config'
make[2]: Leaving directory '/root/dokku/plugins/config'
make[2]: Entering directory '/root/dokku/plugins/cron'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=cron \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/cron \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make triggers/cron-get-property
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/cron'
ln -sf triggers cron-get-property
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/cron'
make subcommands/list subcommands/report subcommands/run subcommands/set
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/cron'
ln -sf subcommands subcommands/list
ln -sf subcommands subcommands/report
ln -sf subcommands subcommands/run
ln -sf subcommands subcommands/set
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/cron'
make[2]: Leaving directory '/root/dokku/plugins/cron'
make[2]: Entering directory '/root/dokku/plugins/logs'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=logs \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/logs \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make triggers/docker-args-process-deploy triggers/install triggers/logs-get-property triggers/post-app-clone-setup triggers/post-app-rename triggers/post-app-rename-setup triggers/post-create triggers/post-delete triggers/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/logs'
ln -sf triggers docker-args-process-deploy
ln -sf triggers install
ln -sf triggers logs-get-property
ln -sf triggers post-app-clone-setup
ln -sf triggers post-app-rename
ln -sf triggers post-app-rename-setup
ln -sf triggers post-create
ln -sf triggers post-delete
ln -sf triggers report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/logs'
make subcommands/failed subcommands/report subcommands/set subcommands/vector-logs subcommands/vector-start subcommands/vector-stop
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/logs'
ln -sf subcommands subcommands/failed
ln -sf subcommands subcommands/report
ln -sf subcommands subcommands/set
ln -sf subcommands subcommands/vector-logs
ln -sf subcommands subcommands/vector-start
ln -sf subcommands subcommands/vector-stop
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/logs'
make[2]: Leaving directory '/root/dokku/plugins/logs'
make[2]: Entering directory '/root/dokku/plugins/network'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=network \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/network \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make subcommands/create subcommands/destroy subcommands/exists subcommands/info subcommands/list subcommands/rebuild subcommands/rebuildall subcommands/report subcommands/set
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/network'
ln -sf subcommands subcommands/create
ln -sf subcommands subcommands/destroy
ln -sf subcommands subcommands/exists
ln -sf subcommands subcommands/info
ln -sf subcommands subcommands/list
ln -sf subcommands subcommands/rebuild
ln -sf subcommands subcommands/rebuildall
ln -sf subcommands subcommands/report
ln -sf subcommands subcommands/set
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/network'
make triggers/core-post-deploy triggers/docker-args-process-build triggers/docker-args-process-deploy triggers/docker-args-process-run triggers/install triggers/network-build-config triggers/network-config-exists triggers/network-get-ipaddr triggers/network-get-listeners triggers/network-get-property triggers/network-get-static-listeners triggers/network-write-ipaddr triggers/network-write-port triggers/post-app-clone-setup triggers/post-app-rename-setup triggers/post-container-create triggers/post-create triggers/post-delete triggers/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/network'
ln -sf triggers core-post-deploy
ln -sf triggers docker-args-process-build
ln -sf triggers docker-args-process-deploy
ln -sf triggers docker-args-process-run
ln -sf triggers install
ln -sf triggers network-build-config
ln -sf triggers network-config-exists
ln -sf triggers network-get-ipaddr
ln -sf triggers network-get-listeners
ln -sf triggers network-get-property
ln -sf triggers network-get-static-listeners
ln -sf triggers network-write-ipaddr
ln -sf triggers network-write-port
ln -sf triggers post-app-clone-setup
ln -sf triggers post-app-rename-setup
ln -sf triggers post-container-create
ln -sf triggers post-create
ln -sf triggers post-delete
ln -sf triggers report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/network'
make[2]: Leaving directory '/root/dokku/plugins/network'
make[2]: Entering directory '/root/dokku/plugins/nginx-vhosts'
rm -rf pagesize nginx-property
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=nginx-vhosts \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/nginx-vhosts \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
rm -rf pagesize
rm -rf nginx-property
GOARCH=amd64 go build -ldflags="-s -w"  -o pagesize src/pagesize/pagesize.go
GOARCH=amd64 go build -ldflags="-s -w"  -o nginx-property src/nginx-property/nginx-property.go
make[2]: Leaving directory '/root/dokku/plugins/nginx-vhosts'
make[2]: Entering directory '/root/dokku/plugins/ports'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=ports \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/ports \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make subcommands/list subcommands/add subcommands/clear subcommands/remove subcommands/set subcommands/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/ports'
ln -sf subcommands subcommands/list
ln -sf subcommands subcommands/add
ln -sf subcommands subcommands/clear
ln -sf subcommands subcommands/remove
ln -sf subcommands subcommands/set
ln -sf subcommands subcommands/report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/ports'
make triggers/install triggers/ports-clear triggers/ports-configure triggers/ports-get triggers/ports-get-available triggers/ports-get-property triggers/ports-set-detected triggers/post-app-clone-setup triggers/post-app-rename-setup triggers/post-certs-remove triggers/post-certs-update triggers/post-delete triggers/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/ports'
ln -sf triggers install
ln -sf triggers ports-clear
ln -sf triggers ports-configure
ln -sf triggers ports-get
ln -sf triggers ports-get-available
ln -sf triggers ports-get-property
ln -sf triggers ports-set-detected
ln -sf triggers post-app-clone-setup
ln -sf triggers post-app-rename-setup
ln -sf triggers post-certs-remove
ln -sf triggers post-certs-update
ln -sf triggers post-delete
ln -sf triggers report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/ports'
make[2]: Leaving directory '/root/dokku/plugins/ports'
make[2]: Entering directory '/root/dokku/plugins/proxy'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=proxy \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/proxy \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
make subcommands/build-config subcommands/clear-config subcommands/disable subcommands/enable subcommands/ports subcommands/ports-add subcommands/ports-clear subcommands/ports-remove subcommands/ports-set subcommands/report subcommands/set
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/proxy'
ln -sf subcommands subcommands/build-config
ln -sf subcommands subcommands/clear-config
ln -sf subcommands subcommands/disable
ln -sf subcommands subcommands/enable
ln -sf subcommands subcommands/ports
ln -sf subcommands subcommands/ports-add
ln -sf subcommands subcommands/ports-clear
ln -sf subcommands subcommands/ports-remove
ln -sf subcommands subcommands/ports-set
ln -sf subcommands subcommands/report
ln -sf subcommands subcommands/set
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/proxy'
make triggers/proxy-is-enabled triggers/proxy-type triggers/report
make[1]: Entering directory '/go/src/github.com/dokku/dokku/plugins/proxy'
ln -sf triggers proxy-is-enabled
ln -sf triggers proxy-type
ln -sf triggers report
make[1]: Leaving directory '/go/src/github.com/dokku/dokku/plugins/proxy'
make[2]: Leaving directory '/root/dokku/plugins/proxy'
make[2]: Entering directory '/root/dokku/plugins/ps'
rm -rf commands subcommands triggers
find . -xtype l -delete
mkdir -p /tmp/dokku-go-build-cache
docker run --rm \
        -v $PWD/../..:/go/src/github.com/dokku/dokku \
        -v /tmp/dokku-go-build-cache:/root/.cache \
        -v /tmp/dokku-go-mod-mod:/go/pkg/mod \
        -e PLUGIN_NAME=ps \
        -e GO111MODULE=on \
        -w /go/src/github.com/dokku/dokku/plugins/ps \
        golang:1.21.6 \
        bash -c "GO_ARGS='' CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GOWORK=off make -j4 build" || exit $?
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o commands src/commands/commands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o subcommands/subcommands src/subcommands/subcommands.go
GOARCH=amd64 go build -mod=readonly -ldflags="-s -w"  -o triggers src/triggers/triggers.go
go: updates to go.mod needed, disabled by -mod=readonly; to update it:
        go mod tidy
make: *** [../../common.mk:34: subcommands] Error 1
make: *** Waiting for unfinished jobs....
go: updates to go.mod needed, disabled by -mod=readonly; to update it:
        go mod tidy
make: *** [../../common.mk:44: triggers] Error 1
make[2]: *** [../../common.mk:16: build-in-docker] Error 2
make[2]: Leaving directory '/root/dokku/plugins/ps'
make[1]: *** [Makefile:54: go-build] Error 2
make[1]: Leaving directory '/root/dokku'
make: *** [Makefile:83: copyfiles] Error 1
josegonzalez commented 1 month ago

Mind trying the latest branch? I think the issue should be resolved now.

mooktakim commented 1 month ago

Dokku upgrade completed without errors. But unfortunately, when running dokku ps:rebuild --all, I'm seeing errors for all of them.

mooktakim commented 1 month ago

Example rebuild on a rails app:

ubuntu@app01:~$ dokku ps:rebuild login
-----> Cleaning up...
-----> Building login from herokuish
-----> Adding BUILD_ENV to build environment...
       BUILD_ENV added successfully
-----> Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
       Detected buildpacks: ruby nodejs
-----> Ruby app detected
-----> Installing bundler 2.4.22
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-3.2.2
-----> Installing dependencies using bundler 2.4.22
       Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
       Fetching gem metadata from https://rubygems.org/.........
       Fetching rake 13.0.6
       Installing rake 13.0.6
       Fetching concurrent-ruby 1.2.2
       Fetching bigdecimal 3.1.4
       Fetching minitest 5.20.0
       Fetching racc 1.7.1
       Installing minitest 5.20.0
       Installing racc 1.7.1 with native extensions
       Installing bigdecimal 3.1.4 with native extensions
       Installing concurrent-ruby 1.2.2
       Fetching rack 3.0.8
       Installing rack 3.0.8
       Fetching zeitwerk 2.6.12
       Fetching timeout 0.4.0
       Installing zeitwerk 2.6.12
       Installing timeout 0.4.0
       Fetching marcel 1.0.2
       Fetching rdoc 6.3.3
       Installing marcel 1.0.2
       Fetching thor 1.3.0
       Installing thor 1.3.0
       Installing rdoc 6.3.3
       Fetching i18n 1.14.1
       Installing i18n 1.14.1
       Fetching reline 0.3.9
       Installing reline 0.3.9
       Fetching net-imap 0.4.2
       Fetching net-smtp 0.4.0
       Installing net-imap 0.4.2
       Installing net-smtp 0.4.0
       Fetching irb 1.8.3
       Installing irb 1.8.3
       Fetching nokogiri 1.15.4 (x86_64-linux)
       Installing nokogiri 1.15.4 (x86_64-linux)
       Fetching loofah 2.21.4
       Installing loofah 2.21.4
       Fetching activesupport 7.1.1
       Installing activesupport 7.1.1
       Fetching activemodel 7.1.1
       Fetching actionview 7.1.1
       Fetching activejob 7.1.1
       Installing activejob 7.1.1
       Installing activemodel 7.1.1
       Installing actionview 7.1.1
       Fetching activerecord 7.1.1
       Fetching actionpack 7.1.1
       Installing actionpack 7.1.1
       Installing activerecord 7.1.1
       Fetching actioncable 7.1.1
       Fetching actionmailer 7.1.1
       Fetching railties 7.1.1
       Installing actionmailer 7.1.1
       Installing railties 7.1.1
       Installing actioncable 7.1.1
       Fetching activestorage 7.1.1
       Installing activestorage 7.1.1
       Fetching actiontext 7.1.1
       Fetching actionmailbox 7.1.1
       Installing actionmailbox 7.1.1
       Installing actiontext 7.1.1
       Fetching rails 7.1.1
       Installing rails 7.1.1
       Bundle complete! 24 Gemfile dependencies, 83 gems now installed.
       Gems in the groups 'development' and 'test' were not installed.
       Bundled gems are installed into `./vendor/bundle`
       Bundle completed (8.70s)
       Cleaning up the bundler cache.
       Removing actioncable (7.1.3.4)
       Removing actionmailbox (7.1.3.4)
       Removing actionmailer (7.1.3.4)
       Removing actionpack (7.1.3.4)
       Removing actiontext (7.1.3.4)
       Removing actionview (7.1.3.4)
       Removing activejob (7.1.3.4)
       Removing activemodel (7.1.3.4)
       Removing activerecord (7.1.3.4)
       Removing activestorage (7.1.3.4)
       Removing activesupport (7.1.3.4)
       Removing base64 (0.2.0)
       Removing bigdecimal (3.1.8)
       Removing concurrent-ruby (1.3.1)
       Removing date (3.3.4)
       Removing drb (2.2.1)
       Removing i18n (1.14.5)
       Removing io-console (0.7.2)
       Removing irb (1.11.2)
       Removing loofah (2.22.0)
       Removing marcel (1.0.4)
       Removing minitest (5.23.1)
       Removing mutex_m (0.2.0)
       Removing net-imap (0.4.10)
       Removing net-protocol (0.2.2)
       Removing net-smtp (0.4.0.1)
       Removing nokogiri-1.16.5-x86_64 (linux)
       Removing racc (1.8.0)
       Removing rack (3.0.11)
       Removing rails (7.1.3.4)
       Removing railties (7.1.3.4)
       Removing rake (13.1.0)
       Removing rdoc (6.3.4.1)
       Removing reline (0.4.3)
       Removing thor (1.3.1)
       Removing timeout (0.4.1)
       Removing zeitwerk (2.6.13)

       ###### WARNING:

       Installing a default version (20.9.0) of Node.js.
       This version is not pinned and can change over time, causing unexpected failures.

       Heroku recommends placing the `heroku/nodejs` buildpack in front of
       `heroku/ruby` to install a specific version of node:

       https://devcenter.heroku.com/articles/ruby-support#node-js-support

       ###### WARNING:

       Installing a default version (1.22.19) of Yarn
       This version is not pinned and can change over time, causing unexpected failures.

       Heroku recommends placing the `heroku/nodejs` buildpack in front of the `heroku/ruby`
       buildpack as it offers more comprehensive Node.js support, including the ability to
       customise the Node.js version:

       https://devcenter.heroku.com/articles/ruby-support#node-js-support

-----> Installing node-v20.9.0-linux-x64
-----> Installing yarn-v1.22.19
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead
       Running: rake assets:precompile
       yarn install v1.22.19
       [1/4] Resolving packages...
       [2/4] Fetching packages...
       [3/4] Linking dependencies...
       [4/4] Building fresh packages...
       Done in 2.34s.
       yarn run v1.22.19
       $ esbuild app/javascript/*.* --bundle --sourcemap --outdir=app/assets/builds --public-path=/assets

       app/assets/builds/application.js      416.0kb
       app/assets/builds/application.js.map  756.4kb

       Done in 0.07s.
       yarn install v1.22.19
       [1/4] Resolving packages...
       success Already up-to-date.
       Done in 0.05s.
       yarn run v1.22.19
       $ yarn build:css:compile && yarn build:css:prefix
       $ sass ./app/assets/stylesheets/application.bootstrap.scss:./app/assets/builds/application.css --no-source-map --load-path=node_modules
       $ postcss ./app/assets/builds/application.css --use=autoprefixer --output=./app/assets/builds/application.css
       Browserslist: caniuse-lite is outdated. Please run:
       npx update-browserslist-db@latest
       Why you should do it regularly: https://github.com/browserslist/update-db#readme
       Done in 2.10s.
       Asset precompilation completed (6.87s)
       Cleaning assets
       Running: rake assets:clean
-----> Detecting rails configuration

       ###### WARNING:

       Installing a default version (1.22.19) of Yarn
       This version is not pinned and can change over time, causing unexpected failures.

       Heroku recommends placing the `heroku/nodejs` buildpack in front of the `heroku/ruby`
       buildpack as it offers more comprehensive Node.js support, including the ability to
       customise the Node.js version:

       https://devcenter.heroku.com/articles/ruby-support#node-js-support

       ###### WARNING:

       Installing a default version (20.9.0) of Node.js.
       This version is not pinned and can change over time, causing unexpected failures.

       Heroku recommends placing the `heroku/nodejs` buildpack in front of
       `heroku/ruby` to install a specific version of node:

       https://devcenter.heroku.com/articles/ruby-support#node-js-support

       ###### WARNING:

       Installing a default version (1.22.19) of Yarn
       This version is not pinned and can change over time, causing unexpected failures.

       Heroku recommends placing the `heroku/nodejs` buildpack in front of the `heroku/ruby`
       buildpack as it offers more comprehensive Node.js support, including the ability to
       customise the Node.js version:

       https://devcenter.heroku.com/articles/ruby-support#node-js-support

       ###### WARNING:

       There is a more recent Ruby version available for you to use:

       3.2.5

       The latest version will include security and bug fixes. We always recommend
       running the latest version of your minor release.

       Please upgrade your Ruby version.

       For all available Ruby versions see:
       https://devcenter.heroku.com/articles/ruby-support#supported-runtimes

       ###### WARNING:

       Installing a default version (1.22.19) of Yarn
       This version is not pinned and can change over time, causing unexpected failures.

       Heroku recommends placing the `heroku/nodejs` buildpack in front of the `heroku/ruby`
       buildpack as it offers more comprehensive Node.js support, including the ability to
       customise the Node.js version:

       https://devcenter.heroku.com/articles/ruby-support#node-js-support

-----> Discovering process types
       Procfile declares types -> release, web
-----> Releasing login...
-----> Checking for predeploy task
       No predeploy task found, skipping
-----> Checking for release task
       Executing release task from Procfile in ephemeral container: bundle exec rake db:migrate
=====> Start of login release task (035098c16) output
=====> End of login release task (035098c16) output
=====> Processing deployment checks
 !     No healthchecks found in app.json for web process type
       No web healthchecks found in app.json. Simple container checks will be performed.
       For more efficient zero downtime deployments, add healthchecks to your app.json. See https://dokku.com/docs/deployment/zero-downtime-deploys/ for examples
-----> Deploying login via the docker-local scheduler...
-----> Deploying web (count=1)
       Attempting pre-flight checks (web.1)
sudo: /usr/bin/docker-container-healthchecker: command not found
616839a87f89b5435c3b17c230e8af16c55f7197cabe579d1258d53826a691ee
 !     Could not start due to 1 failed checks (web.1)
=====> Start of login container output (616839a87f89 web.1)
       [14] Puma starting in cluster mode...
       [14] * Puma version: 6.4.2 (ruby 3.2.2-p53) ("The Eagle of Durango")
       [14] *  Min threads: 5
       [14] *  Max threads: 5
       [14] *  Environment: production
       [14] *   Master PID: 14
       [14] *      Workers: 16
       [14] *     Restarts: (✔) hot (✔) phased
       [14] * Listening on http://0.0.0.0:5000
       [14] Use Ctrl-C to stop
       [14] === puma shutdown: 2024-09-23 16:34:49 +0000 ===
       [14] - Goodbye!
       [14] - Gracefully shutting down workers...
       [161] Early termination of worker
       [168] Early termination of worker
       [164] Early termination of worker
       [173] Early termination of worker
       [166] Early termination of worker
       [177] Early termination of worker
       [170] Early termination of worker
       [178] Early termination of worker
       [191] Early termination of worker
       [185] Early termination of worker
       [183] Early termination of worker
       [163] Early termination of worker
       [174] Early termination of worker
       [187] Early termination of worker
       [189] Early termination of worker
       [180] Early termination of worker
       2024/09/23 16:34:49 signal: terminated
=====> End of login container output (616839a87f89 web.1)
=====> Start of login container output (616839a87f89 web.1)
       [14] Puma starting in cluster mode...
       [14] * Puma version: 6.4.2 (ruby 3.2.2-p53) ("The Eagle of Durango")
       [14] *  Min threads: 5
       [14] *  Max threads: 5
       [14] *  Environment: production
       [14] *   Master PID: 14
       [14] *      Workers: 16
       [14] *     Restarts: (✔) hot (✔) phased
       [14] * Listening on http://0.0.0.0:5000
       [14] Use Ctrl-C to stop
       [14] === puma shutdown: 2024-09-23 16:34:49 +0000 ===
       [14] - Goodbye!
       [14] - Gracefully shutting down workers...
       [161] Early termination of worker
       [168] Early termination of worker
       [164] Early termination of worker
       [173] Early termination of worker
       [166] Early termination of worker
       [177] Early termination of worker
       [170] Early termination of worker
       [178] Early termination of worker
       [191] Early termination of worker
       [185] Early termination of worker
       [183] Early termination of worker
       [163] Early termination of worker
       [174] Early termination of worker
       [187] Early termination of worker
       [189] Early termination of worker
       [180] Early termination of worker
       2024/09/23 16:34:49 signal: terminated
=====> End of login container output (616839a87f89 web.1)
parallel: This job failed:
/var/lib/dokku/plugins/available/scheduler-docker-local/bin/scheduler-deploy-process-container login herokuish dokku/login:latest latest web 1 1
 !     cp: warning: behavior of -n is non-portable and may change in future; use --update=none instead
 !     No healthchecks found in app.json for web process type
sudo: /usr/bin/docker-container-healthchecker: command not found
 !     Could not start due to 1 failed checks (web.1)
parallel: This job failed:
/var/lib/dokku/plugins/available/scheduler-docker-local/bin/scheduler-deploy-process-container login herokuish dokku/login:latest latest web 1 1

ubuntu@app01:~$
josegonzalez commented 1 month ago

Seems like its expecting docker-container-healthchecker to be at a certain path - we don't call it with the exact path like that, but the sudoers file does do that.

You could copy that file into place and then see if it works as expected.

mooktakim commented 1 month ago

@josegonzalez I created a sym link and that has worked. All the apps rebuilding now. Thanks 👍

josegonzalez commented 1 month ago

Okay there are two issues for that here:

josegonzalez commented 1 month ago

Closing as there is a pull request open.