You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
edgedb branch switch fails with "Invalid cross-device link" or "The system cannot move the file to a different disk drive" if the project directory is on a different filesystem than the user's home directory
#1330
Closed
zackelan opened this issue
May 22, 2024
· 0 comments
· Fixed by #1334
EdgeDB Version: 5.2 (it probably doesn't matter, other than a 5.x instance being necessary in order to attempt edgedb branch switch)
EdgeDB CLI Version: 5.2.0-dev (19c2cf33ff915cac2729139d66ba622e33124540, master as of 2024-05-22)
OS Version: NixOS 23.11.6827.383ffe076d9b
Steps to Reproduce:
create a cloud instance (this likely happens with local instances as well, but I haven't tested it): edgedb instance create --region aws-us-west-2 --tier free --version =5.2 zackelan/cross-filesystem-52-us-west-2
mount a USB flash drive, or some other way of getting onto a separate filesystem
initialize a project on that separate filesystem:
/mnt/test $ edgedb project init --server-instance zackelan/cross-filesystem-52-us-west-2
No `edgedb.toml` found in `/mnt/test` or above
Do you want to initialize a new project? [Y/n]
> Y
Specify the name of EdgeDB instance to use with this project [default: zackelan/cross-filesystem-52-us-west-2]:
> zackelan/cross-filesystem-52-us-west-2
Do you want to use existing instance "zackelan/cross-filesystem-52-us-west-2" for the project? [y/n]
> y
Specify branch name: [default: main]:
> main
Applying migrations...
Everything is up to date. Revision initial
Project linked
To connect to zackelan/cross-filesystem-52-us-west-2, run `edgedb`
EXDEV
oldpath and newpath are not on the same mounted filesystem. (Linux permits a filesystem to be mounted at multiple points, but rename() does not work across different mount points, even if the same filesystem is mounted on both.)
The text was updated successfully, but these errors were encountered:
edgedb branch switch
)5.2.0-dev
(19c2cf33ff915cac2729139d66ba622e33124540
, master as of 2024-05-22)Steps to Reproduce:
create a cloud instance (this likely happens with local instances as well, but I haven't tested it):
edgedb instance create --region aws-us-west-2 --tier free --version =5.2 zackelan/cross-filesystem-52-us-west-2
mount a USB flash drive, or some other way of getting onto a separate filesystem
initialize a project on that separate filesystem:
create a branch:
attempt to switch to the branch:
excerpt from
strace
ing this command shows we're attemptingrename(2)
of a temp file from/mnt/test
to my home directory:https://man7.org/linux/man-pages/man2/rename.2.html
The text was updated successfully, but these errors were encountered: