Cannot push to Bitbucket
Post here questions and problems related to editing and publishing DITA content.
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
Cannot push to Bitbucket
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!
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!
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: Cannot push to Bitbucket
Post 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:
- 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
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
- 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
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
Re: Cannot push to Bitbucket
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:
...followed by quite a few of these:
If you think I should still contact support@oxygenxml.com, I will do that.
Thanks for your consideration!
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)
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)
Thanks for your consideration!
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: Cannot push to Bitbucket
Post 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.
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.
-
- Posts: 118
- Joined: Mon Apr 19, 2010 5:33 pm
Re: Cannot push to Bitbucket
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.
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: Cannot push to Bitbucket
Post by sorin_carbunaru »
And now, if you commit another change and try to push it from oXygen, is it still unable to do it?
-
- Posts: 417
- Joined: Mon May 09, 2016 9:37 am
Re: Cannot push to Bitbucket
Post by sorin_carbunaru »
Could you please send the log file to the support address? Perhaps I can find something interesting inside it...
-
- Posts: 1
- Joined: Thu Oct 03, 2019 8:47 am
Re: Cannot push to Bitbucket
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
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
meenati biswal 

Return to “DITA (Editing and Publishing DITA Content)”
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service