jn1
August 9, 2023, 2:45am
1
Cant seem to deploy without error: Says
Error: machine e784e775fe69e8 [app] has a volume mounted but app config does not specify a volume; remove the volume from the machine or add a [mounts] section to fly.toml
This is my toml file:
app = “fly-builder-rough-surf-958”
[build]
builder = “heroku/buildpacks:20”
[[services]]
internal_port = 8080
protocol = “tcp”
[[mounts]]
src = “vol_3q80vd82ej64gzy6” # Update this to match the actual volume name
dst = “/mnt/volume”
As you can see, clearly states the mounts and the vol is correct. Tried many times to no avail.Thoughts?
Jon
The fields on [[mounts]]
should be source
& destination
rather than src
& dst
:
[mounts]
source = "..."
destination = "/mnt/volume"
The "vol_3q80vd82ej64gzy6"
value that you have is the volume ID. If you run fly vol list
then there’s a "NAME"
column that will show what you named the volume. That name goes into the "source"
field of [[mounts]]
.
1 Like
jn1
August 9, 2023, 3:00am
3
benbjohnson:
fly vol list
Now its says - Error: input:4: createRelease Deploying over the remote builder is not allowed.
jn1
August 9, 2023, 3:23am
4
Annnd now my server is in suspended status…
kaz
August 9, 2023, 10:24pm
5
Your fly.toml is having the below, which indicates that the app is made for building images remotely.
app = “fly-builder-rough-surf-958”
This app is automatically made by Fly.io and not designed to host your application. Could you make a new application instead?
system
Closed
August 16, 2023, 10:24pm
6
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.