I am trying to access the production.sqlite data in the attached volume
flyctl ssh sftp get ./app/sqlite3:/mnt/namei/production.sqlite says file not found, but flyctl ssh sftp find ./app/sqlite3:/mnt/namei/production.sqlite locates the file. Is there any other approach to doing this?
or is there a sqlite variant for flyctl postgres connect
I am experiencing the same issue, but have found a work-around.
The file is there:
$ flyctl -a xxxx ssh sftp find /usr/app/data
Update available 0.0.441 -> v0.0.442.
Run "flyctl version update" to upgrade.
/usr/app/data
/usr/app/data/lost+found
/usr/app/data/noco.db
but i saw same issue as you when using get, says file not found:
$ flyctl -a xxx ssh sftp get /usr/app/data/noco.db
Update available 0.0.441 -> v0.0.442.
Run "flyctl version update" to upgrade.
Error get: local file /usr/app/data/noco.db: open /usr/app/data/noco.db: no such file or directory
However shell works fine!
$ echo 'get /usr/app/data/noco.db' | flyctl -a xxx ssh sftp shell
get //usr/app/data/noco.db -> noco.db
wrote 4161536 bytes
Any chance someone from support can look into this? The issue is specific to ‘sftp get’.
fly ssh sftp get -a throbbing-haze-3823 /data/sqlite.db sqlite.db
The way fly ssh sftp get handles its command line parameters is not really intuitive. I will take a look other Unix commands to figure out a better way.
That’s really odd. I don’t have a SQLite file on my app, but copying works for me. Would it happen only for this file, or any files you have? What is your OS? Is your flyctl up-to-date?
@drocks: If I may interject as a curious bystander, fly sftp get is supposed to print a line of the form “462848 bytes written to sqlite.db”, do you get that line (or any other output)?
Make sure you delete the local file between attempts, because if the file exists locally fly will refuse to overwrite it and print an error message.
Also, it might be useful to run ls -l sqlite.db locally to double-check that the file is empty.