Page 1 of 1
Cannot push to Bitbucket
Posted: Thu Oct 24, 2019 8:22 pm
by kmank
Hello
I have the Git add-in installed and I am able to connect to my git repository. I have made changes to a couple files and Oxygen successfully stages and commits them. I can also see that the Push button is correctly decorated with the number of committed files I wish to push.
However, whe I click Push, nothing happens. I can verify this in the bitbucket repo online.
How can I troubleshoot this?
Thank you!
Re: Cannot push to Bitbucket
Posted: Fri Oct 25, 2019 9:27 am
by sorin_carbunaru
Hello,
1. What version of the add-on are you using?
2. Can you pull changes from the remote?
For us to further investigate the problem you could do the following:
- in oXygen's installation folder create a "log4j.properties" file with the following content:
Code: Select all
log4j.rootCategory= info, R2
#log4j.category.ro.sync.ui.application.ThreadWatchDog=debug
log4j.category.com.oxygenxml.git=debug
log4j.appender.R2=org.apache.log4j.RollingFileAppender
log4j.appender.R2.File=${user.home}/Desktop/oxygenLog/oxygen.log
log4j.appender.R2.MaxFileSize=12000KB
log4j.appender.R2.MaxBackupIndex=20
log4j.appender.R2.layout=org.apache.log4j.PatternLayout
log4j.appender.R2.layout.ConversionPattern=%r %p [ %t ] %c - %m%n
- launch oXygen, try to push, wait for a few seconds to make sure it finished (even if by failing), then close the app
- on you Desktop you should have an "oxygenLog" folder. Please archive it and send it to
support@oxygenxml.com
Best wishes,
Sorin Carbunaru
oXygen XML
Re: Cannot push to Bitbucket
Posted: Fri Oct 25, 2019 7:18 pm
by kmank
Thank you, Sorin
This was partially helpful. I say that because I have switched directions (not intending to frustrate). Let me explain.
I applied your suggestion for the log4j.properties file and found that the .git folder was being reported as read-only even after verifying that it (and its sub-content) was not.
I was working with a portable version of Oxygen, and although I would like to think that it does not matter for the issue at hand, I decided to remove that and install the 64-bit version of Oxygen. So... starting clean.
I installed the Git add-on (version 1.5.2) and followed the instructions for usage. I added the Repository URL and the Destination Path, which resulted in the new folder created in the destination path. Then, performing a Pull from the master results in nothing actually being pulled.
Looking at the oxygen.log file, I am getting the following error:
Code: Select all
1131 ERROR [ ForkJoinPool.commonPool-worker-1 ] org.eclipse.jgit.util.FS - java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\DITA\transforms\extracts\Test\.git\.probe-a7c489d7-8b88-4bfc-a949-bf6e1ec5cab6" "write")
java.util.concurrent.CompletionException: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\DITA\transforms\extracts\Test\.git\.probe-a7c489d7-8b88-4bfc-a949-bf6e1ec5cab6" "write")
at java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
at java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
at java.util.concurrent.CompletableFuture$AsyncSupply.exec(Unknown Source)
at java.util.concurrent.ForkJoinTask.doExec(Unknown Source)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(Unknown Source)
at java.util.concurrent.ForkJoinPool.runWorker(Unknown Source)
at java.util.concurrent.ForkJoinWorkerThread.run(Unknown Source)
Caused by: java.security.AccessControlException: access denied ("java.io.FilePermission" "C:\DITA\transforms\extracts\Test\.git\.probe-a7c489d7-8b88-4bfc-a949-bf6e1ec5cab6" "write")
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at ro.sync.security.manager.SandboxSecurityManager.checkWrite(SandboxSecurityManager.java:177)
at sun.nio.fs.WindowsChannelFactory.open(Unknown Source)
at sun.nio.fs.WindowsChannelFactory.newFileChannel(Unknown Source)
at sun.nio.fs.WindowsFileSystemProvider.newByteChannel(Unknown Source)
at java.nio.file.Files.newByteChannel(Unknown Source)
at java.nio.file.Files.createFile(Unknown Source)
at org.eclipse.jgit.util.FS$FileStoreAttributes.measureFsTimestampResolution(FS.java:461)
at org.eclipse.jgit.util.FS$FileStoreAttributes.lambda$0(FS.java:341)
...followed by quite a few of these:
Code: Select all
1507 DEBUG [ AWT-EventQueue-0 ] com.oxygenxml.git.service.GitAccess - org.eclipse.jgit.api.errors.NoHeadException: No HEAD exists and no explicit starting revision was specified
org.eclipse.jgit.api.errors.NoHeadException: No HEAD exists and no explicit starting revision was specified
at org.eclipse.jgit.api.LogCommand.call(LogCommand.java:150)
at com.oxygenxml.git.service.GitAccess.getBranchInfo(GitAccess.java:1708)
at com.oxygenxml.git.service.GitAccess.getPushesAhead(GitAccess.java:1570)
at com.oxygenxml.git.view.ToolbarPanel.createGUI(ToolbarPanel.java:265)
at com.oxygenxml.git.view.ToolbarPanel.<init>(ToolbarPanel.java:143)
at com.oxygenxml.git.view.StagingPanel.createGUI(StagingPanel.java:181)
at com.oxygenxml.git.view.StagingPanel.<init>(StagingPanel.java:126)
at com.oxygenxml.git.OxygenGitPluginExtension$1.customizeView(OxygenGitPluginExtension.java:95)
at ro.sync.exml.layout.c.f(Unknown Source)
at ro.sync.exml.layout.i$3.create(Unknown Source)
at ro.sync.exml.layout.c.j(Unknown Source)
at ro.sync.exml.layout.i.z(Unknown Source)
at ro.sync.exml.layout.i.hb(Unknown Source)
at ro.sync.exml.layout.i.yb(Unknown Source)
at ro.sync.exml.layout.i.eb(Unknown Source)
at ro.sync.exml.j.e(Unknown Source)
at ro.sync.exml.MainFrame$37.run(Unknown Source)
at ro.sync.ui.me$1.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
If you think I should still contact
support@oxygenxml.com, I will do that.
Thanks for your consideration!
Re: Cannot push to Bitbucket
Posted: Mon Oct 28, 2019 10:16 am
by sorin_carbunaru
Hello,
Can you push/pull using another Git client, such as SourceTree, or perhaps using Git command lines? If yes, if you try again with oXygen's Git add-on, are you still unable to push?
If the remote repository is a new one and is empty, you need to explicitly push a new branch (see
https://stackoverflow.com/a/17096880/1288460). Or perhaps you could go to the remote repository (BitBucket), make there a commit (let's say by creating a "readme" file), then clone the repository locally and try pushing some new changes to it again.
In other words, it seems to be a repository issue, first and foremost.
Have a nice week,
Sorin C.
Re: Cannot push to Bitbucket
Posted: Tue Oct 29, 2019 3:20 pm
by kmank
I have actually been using SourceTree for a couple of weeks with this repository prior to trying the Git add-on. That is how I know that the repository is functioning as it should.
Re: Cannot push to Bitbucket
Posted: Tue Oct 29, 2019 3:23 pm
by kmank
For what it's worth, I can also go into SourceTree and see that Oxygen has successfully committed, and then I can push the files using SourceTree. After the push, Oxygen refreshes and the decoration on the Push button disappears.
Re: Cannot push to Bitbucket
Posted: Tue Oct 29, 2019 3:25 pm
by sorin_carbunaru
And now, if you commit another change and try to push it from oXygen, is it still unable to do it?
Re: Cannot push to Bitbucket
Posted: Tue Oct 29, 2019 5:13 pm
by kmank
Correct. Still unable to push files.
Re: Cannot push to Bitbucket
Posted: Tue Oct 29, 2019 6:15 pm
by sorin_carbunaru
Could you please send the log file to the support address? Perhaps I can find something interesting inside it...
Re: Cannot push to Bitbucket
Posted: Wed Oct 30, 2019 9:21 am
by ruhhana
After creating new project in Bitbucket, use clone. Enter cloning command in terminal and it should clone empty project to your computer. After that you can copy your files to this directory and start committing and pushing to bitbucket.
This error also shows up when the repository does not exist. I tried all the answers until I saw the repo name was missing a dash