Unable to push to repository on USB drive [message #1806758] |
Tue, 14 May 2019 14:48  |
Eclipse User |
|
|
|
Whenever I use Egit try to push commits onto a repository on a USB flash drive, it fails with the message "error occurred during unpacking on the remote end: error Cannot lock pack in /Volumes/<path to repository>/.git/objects/pack/pack-b54....pack".
Any suggestions on what to try next?
Details
I have a USB flash drive that I use to keep projects on my home computer (Windows 10) synchronized with my office computer (Mac OS X 10.11.6). I recently upgraded both computers to Eclipse 2019-03, and sometime since then I have been unable to push commits from my Mac to the flash drive. I do not know if the problem started immediately after the upgrade or after. There is no problem with pushing from the Windows computer.
I have verified that I can push to a second local repository on my Mac hard drive. I have also tried and failed to push onto repositories on two different flash drives, and also tried cloning a repository onto a flash drive. Error messages and stack traces are below.
I have looked at the file permissions through the directory structure on one of the USB drives, and they are rwxrwxrwx all the way down, so it doesn't look like a permissions problem.
At this point the only cause I can think of is that the .git directory is hidden by default in OS X, and that is somehow tripping up EGit since the upgrade.
Full error message caused by push
Caused by: org.eclipse.jgit.errors.TransportException: file:////Volumes/SANDISK/EGit/SANDISK_DESKTOPPOI/: error occurred during unpacking on the remote end: error Cannot lock pack in /Volumes/SANDISK/EGit/SANDISK_DESKTOPPOI/.git/objects/pack/pack-b54a095ea27b0788e1ce57d53f3d893d9fff547b.pack
at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:382)
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:222)
Full error message caused by clone
/Volumes/WHITE LEXAR/EGit/IMAC_DESKTOPPOI/.git/HEAD.lock.6def3a6c1de54091aae558c1ee1d7a29 -> /Volumes/WHITE LEXAR/EGit/IMAC_DESKTOPPOI/.git/HEAD.lock: Operation not supported
Stack trace after pull failed
org.eclipse.jgit.api.errors.TransportException: file:////Volumes/SANDISK/EGit/SANDISK_DESKTOPPOI/: error occurred during unpacking on the remote end: error Cannot lock pack in /Volumes/SANDISK/EGit/SANDISK_DESKTOPPOI/.git/objects/pack/pack-b54a095ea27b0788e1ce57d53f3d893d9fff547b.pack
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:180)
at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:217)
at org.eclipse.egit.ui.internal.push.PushJob.performJob(PushJob.java:86)
at org.eclipse.egit.ui.internal.jobs.RepositoryJob.run(RepositoryJob.java:59)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: org.eclipse.jgit.errors.TransportException: file:////Volumes/SANDISK/EGit/SANDISK_DESKTOPPOI/: error occurred during unpacking on the remote end: error Cannot lock pack in /Volumes/SANDISK/EGit/SANDISK_DESKTOPPOI/.git/objects/pack/pack-b54a095ea27b0788e1ce57d53f3d893d9fff547b.pack
at org.eclipse.jgit.transport.BasePackPushConnection.readStatusReport(BasePackPushConnection.java:382)
at org.eclipse.jgit.transport.BasePackPushConnection.doPush(BasePackPushConnection.java:222)
at org.eclipse.jgit.transport.BasePackPushConnection.push(BasePackPushConnection.java:170)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:172)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1346)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:170)
... 4 more
Stack trace after clone failed
org.eclipse.jgit.api.errors.JGitInternalException: /Volumes/WHITE LEXAR/EGit/IMAC_DESKTOPPOI/.git/HEAD.lock.6def3a6c1de54091aae558c1ee1d7a29 -> /Volumes/WHITE LEXAR/EGit/IMAC_DESKTOPPOI/.git/HEAD.lock: Operation not supported
at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:128)
at org.eclipse.jgit.api.CloneCommand.init(CloneCommand.java:274)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:195)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:180)
at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.executeCloneOperation(AbstractGitCloneWizard.java:486)
at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard.access$2(AbstractGitCloneWizard.java:479)
at org.eclipse.egit.ui.internal.clone.AbstractGitCloneWizard$6.run(AbstractGitCloneWizard.java:458)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.nio.file.FileSystemException: /Volumes/WHITE LEXAR/EGit/IMAC_DESKTOPPOI/.git/HEAD.lock.6def3a6c1de54091aae558c1ee1d7a29 -> /Volumes/WHITE LEXAR/EGit/IMAC_DESKTOPPOI/.git/HEAD.lock: Operation not supported
at sun.nio.fs.UnixException.translateToIOException(UnixException.java:91)
at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
at sun.nio.fs.UnixFileSystemProvider.createLink(UnixFileSystemProvider.java:476)
at java.nio.file.Files.createLink(Files.java:1086)
at org.eclipse.jgit.util.FS_POSIX.createNewFileAtomic(FS_POSIX.java:457)
at org.eclipse.jgit.internal.storage.file.LockFile.lock(LockFile.java:164)
at org.eclipse.jgit.internal.storage.file.RefDirectoryUpdate.tryLock(RefDirectoryUpdate.java:89)
at org.eclipse.jgit.lib.RefUpdate.link(RefUpdate.java:708)
at org.eclipse.jgit.internal.storage.file.FileRepository.create(FileRepository.java:309)
at org.eclipse.jgit.api.InitCommand.call(InitCommand.java:125)
... 7 more
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04980 seconds