fly sftp doesn’t see files from attached volume. Is it a bug or a feature?
$ fly sftp find “/config”
Error: file does not exist
$ fly ssh console -C “find /config”
Connecting to fdaa:0:3068:a7b:40:bda3:1dee:2… complete
/config
/config/coredns
/config/coredns/Corefile
/config/server
/config/server/publickey-server
/config/server/privatekey-server
/config/peer1
/config/peer1/presharedkey-peer1
/config/peer1/publickey-peer1
/config/peer1/peer1.conf
/config/peer1/peer1.png
/config/peer1/privatekey-peer1
/config/.donoteditthisfile
/config/templates
/config/templates/server.conf
/config/templates/peer.conf
/config/wg_confs
/config/wg_confs/wg0.conf
/config/lost+found
lillian
2
it works for me:
nixie:~$ fly sftp find "/data" -a postgres-test2
/data
/data/.pgpass
/data/.default_password
/data/.ssh
/data/.ssh/id_rsa-cert.pub
/data/.ssh/config
/data/.ssh/id_rsa
/data/flypg.user.conf
/data/lost+found
/data/postgresql
/data/postgresql/postgresql.conf
/data/postgresql/pg_tblspc
/data/postgresql/pg_hba.conf
/data/postgresql/pg_stat
/data/postgresql/postgresql.auto.conf
[...]
Try this one:
app = 'wgflyvpn'
primary_region = 'ams'
## External config to resolve PID 1 problem
# See https://community.fly.io/t/fly-io-init-docs-part-2/26411/3
machine_config = 'fly_machine.json'
[[services]]
internal_port = 51820
protocol = 'udp'
[[services.ports]]
port = 51820
[build]
image = 'lscr.io/linuxserver/wireguard'
[env]
PEERS = '1'
[mounts]
source = 'wgflyvpn_data'
destination = '/config'
And fly_machine.json:
{
"containers": [
{
"name": "wg",
"image": "lscr.io/linuxserver/wireguard"
}
]
}
lillian
4
oh, it might be broken with multi-container machines. I’ll see if I can find someone to look at that next week
1 Like
system
Closed
5
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.