Unity icon indicating copy to clipboard operation
Unity copied to clipboard

Fails to initialize: System.IO.IOException: Source and destination are not on the same device

Open xaviergmail opened this issue 5 years ago • 3 comments

Prerequisites

I am running Arch Linux with GNOME 3 Linux 5.5.4-arch1-1 #1 SMP PREEMPT Sat, 15 Feb 2020 00:36:29 +0000 x86_64 GNU/Linux

Description

GitHub integration fails to initialize (Stuck on "Extracting Zip...")

Steps to Reproduce

  1. Open a project tracked by Git with the Linux editor (Repository was initialized using Git for Unity on Windows)

Additional Information

The settings keep resetting to empty values. Furthermore, signing in using the web browser sign-on does not work, nor does the standard password+totp authentication.

200220-10:14:44.969  INFO [ 1] <Global>                            Initializing GitHubForUnity:'v1.4.0' Unity:'v2019.3.1f1'
200220-10:14:45.719  WARN [49] <CopyHelper>                        Error copying.
System.IO.IOException: Source and destination are not on the same device
  at System.IO.Directory.Move (System.String sourceDirName, System.String destDirName) [0x000dd] in <437ba245d8404784b9fbab9b439ac908>:0 
  at GitHub.Unity.FileSystem.DirectoryMove (System.String toString, System.String s) [0x00000] in <d27dffc26bb9411a9db40b1fbace639c>:0 
  at GitHub.Unity.FSWrapper.DirectoryMove (GitHub.Unity.NPath from, GitHub.Unity.NPath to) [0x00030] in <d27dffc26bb9411a9db40b1fbace639c>:0 
  at GitHub.Unity.NPath.Move (GitHub.Unity.NPath dest) [0x000ba] in <d27dffc26bb9411a9db40b1fbace639c>:0 
  at GitHub.Unity.CopyHelper.CopyFolder (GitHub.Unity.NPath fromPath, GitHub.Unity.NPath toPath) [0x00037] in <d27dffc26bb9411a9db40b1fbace639c>:0 
  at GitHub.Unity.CopyHelper.Copy (GitHub.Unity.NPath fromPath, GitHub.Unity.NPath toPath) [0x00027] in <d27dffc26bb9411a9db40b1fbace639c>:0 
=======
  at GitHub.Unity.CopyHelper.Copy (GitHub.Unity.NPath fromPath, GitHub.Unity.NPath toPath) [0x00000] in <d27dffc26bb9411a9db40b1fbace639c>:0 
  at GitHub.Unity.GitInstaller.ExtractGit (GitHub.Unity.GitInstaller+GitInstallationState state) [0x00000] in <d27dffc26bb9411a9db40b1fbace639c>:0 
  at GitHub.Unity.GitInstaller.SetupGitIfNeeded (GitHub.Unity.GitInstaller+GitInstallationState state) [0x00000] in <d27dffc26bb9411a9db40b1fbace639c>:0 
  at GitHub.Unity.ApplicationManagerBase.<Run>b__20_0 () [0x00000] in <d27dffc26bb9411a9db40b1fbace639c>:0 
  at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0 
  at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0 
  at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0 
  at System.Threading.ThreadHelper.ThreadStart () [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0 
200220-10:14:45.787  WARN [49] <IApplicationManager>               We could not find Git in the system.

For the record, I do in fact have git and git-lfs installed.

# whereis git
git: /usr/bin/git /usr/include/git2.h /usr/share/git /usr/share/man/man1/git.1.gz

# whereis git-lfs
git-lfs: /usr/bin/git-lfs /usr/share/man/man1/git-lfs.1.gz

I thought at first this was because the unity editor and project were on a separate physical drive, so I moved them to the same drive that my root / is installed on. This did not change anything. I'm not sure if it's trying to download git into /tmp which is tmpfs rather than a physical drive?

# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=8105376k,nr_inodes=2026344,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
efivarfs on /sys/firmware/efi/efivars type efivarfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda6 on / type ext4 (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /sys/fs/cgroup type tmpfs (ro,nosuid,nodev,noexec,mode=755)
cgroup2 on /sys/fs/cgroup/unified type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
none on /sys/fs/bpf type bpf (rw,nosuid,nodev,noexec,relatime,mode=700)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpu,cpuacct)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/pids type cgroup (rw,nosuid,nodev,noexec,relatime,pids)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/net_cls,net_prio type cgroup (rw,nosuid,nodev,noexec,relatime,net_cls,net_prio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
cgroup on /sys/fs/cgroup/rdma type cgroup (rw,nosuid,nodev,noexec,relatime,rdma)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=28,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=17560)
mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M)
debugfs on /sys/kernel/debug type debugfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
configfs on /sys/kernel/config type configfs (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p5 on /ldata type ext4 (rw,nosuid,nodev,relatime,x-gvfs-show)
/dev/sda2 on /boot type ext4 (rw,relatime,data=ordered)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /run/user/1000 type tmpfs (rw,nosuid,nodev,relatime,size=1624012k,mode=700,uid=1000,gid=1000)
gvfsd-fuse on /run/user/1000/gvfs type fuse.gvfsd-fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
fusectl on /sys/fs/fuse/connections type fusectl (rw,nosuid,nodev,noexec,relatime)
/dev/nvme0n1p3 on /run/media/xavier/Windows type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

xaviergmail avatar Feb 20 '20 18:02 xaviergmail

I have not managed to troubleshoot the root cause of the exception during initialization, but I did get GitHub for Unity to work as expected under Linux, in case someone ends up here through a google search.

The issue I was running into was that I was not hitting the SAVE button right next to the git configuration settings after hitting "Find system git". I'm not sure how I missed it, I must be blind.

img It's ^ right here

xaviergmail avatar Feb 20 '20 20:02 xaviergmail

The IOException above was also what was preventing me from signing in. The browser and password login methods both work now that Git is configured and that the plugin is not stuck on initialization.

xaviergmail avatar Feb 20 '20 20:02 xaviergmail

This helped me just by being at the top of a google search. It wasn't obvious that the configuration is under settings. but it makes sense now.

wilsonHodgson avatar May 30 '20 19:05 wilsonHodgson