ghenry
July 3, 2023, 11:15am
1
Hi all,
Been deploying for quite a while now and last night too. Nothing changed, but now seeing this:
2023-07-03T11:03:29.890 app[9080e475b21278] lhr [info] INFO Preparing to run: `/app/bin/migrate` as nobody
2023-07-03T11:03:29.891 app[9080e475b21278] lhr [info] ERROR Error: failed to spawn command: /app/bin/migrate: No such file or directory (os error 2)
2023-07-03T11:03:29.892 app[9080e475b21278] lhr [info] does `/app/bin/migrate` exist and is it executable?
Here’s my app and relevant files:
# SPDX-License-Identifier: AGPL-3.0
# Copyright (c) 2023 Gavin Henry <ghenry@sentrypeer.org>
#
# _____ _ _____
# / ____| | | | __ \
# | (___ ___ _ __ | |_ _ __ _ _| |__) |__ ___ _ __
# \___ \ / _ \ '_ \| __| '__| | | | ___/ _ \/ _ \ '__|
# ____) | __/ | | | |_| | | |_| | | | __/ __/ |
# |_____/ \___|_| |_|\__|_| \__, |_| \___|\___|_|
# __/ |
#
# fly.toml app configuration file generated for sentrypeer-hq on 2023-04-21T17:18:24+01:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "sentrypeer-hq"
primary_region = "lhr"
kill_signal = "SIGTERM"
kill_timeout = 5
This file has been truncated. show original
# SPDX-License-Identifier: AGPL-3.0
# Copyright (c) 2023 Gavin Henry <ghenry@sentrypeer.org>
#
# _____ _ _____
# / ____| | | | __ \
# | (___ ___ _ __ | |_ _ __ _ _| |__) |__ ___ _ __
# \___ \ / _ \ '_ \| __| '__| | | | ___/ _ \/ _ \ '__|
# ____) | __/ | | | |_| | | |_| | | | __/ __/ |
# |_____/ \___|_| |_|\__|_| \__, |_| \___|\___|_|
# __/ |
# |___/
#
# Find eligible builder and runner images on Docker Hub. We use Ubuntu/Debian
# instead of Alpine to avoid DNS resolution issues in production.
#
# https://hub.docker.com/r/hexpm/elixir/tags?page=1&name=ubuntu
# https://hub.docker.com/_/ubuntu?tab=tags
#
# This file is based on these images:
#
This file has been truncated. show original
Thanks.
ghenry
July 3, 2023, 11:16am
2
Interestingly all I did was add in this to the [env]
section to break it. It’s working again if I remove it:
# Ecto Pg connection pool size
POOL_SIZE = "20"
Why would this cause above?
ghenry
July 3, 2023, 11:21am
3
Moving like this is now working. Maybe a blip on fly side or comments not liked?
[env]
GIT_REV = "a6737a9"
PHX_HOST = "sentrypeer.com"
PORT = "8080"
POOL_SIZE = "20"