Open wujastyk opened 1 month ago
Hello!
I would be interested in taking a look at the Git Client logs, perhaps I can spot something fishy in there... For that, I need you to:
Best wishes!
Thank you for the step-by-step. I attach the oxygen.log in a zip file, and also a screenshot of the error message.
Best, Dominik
-- Professor Dominik Wujastyk https://apps.ualberta.ca/directory/person/wujastyk ,
Singhmar Chair in Classical Indian Society and Polity ,
Department of History, Classics, and Religion http://historyandclassics.ualberta.ca/ , University of Alberta, Canada .
On Tue, 23 Jul 2024 at 07:26, Sorin Carbunaru @.***> wrote:
Hello!
I would be interested in taking a look at the Git Client logs, perhaps I can spot something fishy in there... For that, I need you to:
- Download logback.zip https://github.com/user-attachments/files/16344073/logback.zip and extract the XML file from inside it.
- Copy the "logback.xml" file in the "lib" folder from the Oxygen XML Editor/Author/Developer installation directory.
- Restart the application.
- Reproduce the push problem.
- Close the application. The resulting log files are named "oxygen.log" and "oxygen#.log.qz" (for example, oxygen.log, oxygen1.log.gz, oxygen2.log.gz, etc.) and are located in the "Desktop\oxygenLog" folder.
- When done, delete the "logback.xml" file, because it may cause performance issues if left in the "lib" folder.
- Add the "Desktop\oxygenLog" folder to an archive and send it to us at @.***
Best wishes!
— Reply to this email directly, view it on GitHub https://github.com/oxygenxml/oxygen-git-client-addon/issues/180#issuecomment-2244279954, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF2DBSCXFB4VWOPEKYD7ZDZNXSQNAVCNFSM6AAAAABLGVVUDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBUGI3TSOJVGQ . You are receiving this because you authored the thread.Message ID: @.***>
Unfortunately, I don't see the attachments.
Ah, github stripped them out. I'll go to github and attach them there.
-- Professor Dominik Wujastyk https://apps.ualberta.ca/directory/person/wujastyk ,
Singhmar Chair in Classical Indian Society and Polity ,
Department of History, Classics, and Religion http://historyandclassics.ualberta.ca/ , University of Alberta, Canada .
South Asia at the UofA:
sas.ualberta.ca
SSHRC research: The Suśruta Project http://sushrutaproject.org
Journal: History of Science in South Asia http://hssa-journal.org
On Wed, 24 Jul 2024 at 14:19, Sorin Carbunaru @.***> wrote:
Unfortunately, I don't see the attachments.
— Reply to this email directly, view it on GitHub https://github.com/oxygenxml/oxygen-git-client-addon/issues/180#issuecomment-2247768999, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF2DBRFZF4Q66EEDDVKKB3ZN6LWBAVCNFSM6AAAAABLGVVUDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENBXG43DQOJZHE . You are receiving this because you authored the thread.Message ID: @.***>
Hi again,
On Thu, 25 Jul 2024 at 07:52, Sorin Carbunaru notifications@github.com wrote:
Hi again,
What version of the plugin were you using?
The version of yesterday. I fetched and installed it to do your test. 5.3.0
Has it ever worked for you with SSH authentication?
Yes, it worked fine until a few weeks ago. I don't know what changed. And plain CLI git, gh, and GitHub Desktop all work with ssh just fine.
I would suppose the repo was not cloned using the Git Client Add-on, right?
That's right. I mostly work just with CLI git.
What you could quickly try is to reset the Git Client credentials and see that makes any changes:
[image.png (view on web)](https://github.com/user-attachments/assets/0304e97f-1b19-498a-b629-523b9f7f2729)
I tried that before, no improvement.
I've just reset credentials again, and got this On Thu, 25 Jul 2024 at 07:52, Sorin Carbunaru notifications@github.com wrote:
Hi again,
What version of the plugin were you using?
The version of yesterday. I fetched and installed it to do your test. 5.3.0
Has it ever worked for you with SSH authentication?
Yes, it worked fine until a few weeks ago. I don't know what changed. And plain CLI git, gh, and GitHub Desktop all work with ssh just fine.
I would suppose the repo was not cloned using the Git Client Add-on, right?
That's right. I mostly work just with CLI git.
What you could quickly try is to reset the Git Client credentials and see that makes any changes:
[image.png (view on web)](https://github.com/user-attachments/assets/0304e97f-1b19-498a-b629-523b9f7f2729)
I tried that before, no improvement.
I've just reset credentials again, and got this
This kind of issues, where everything went well for a while then suddenly something bad happened out of the blue, are quite difficult to understand...
Have you changed anything in the SSH configuration lately? Maybe generated a new pair of keys?
What happens if you try to clone that repo to another location on your computer using the Git Client Oxygen add-on? Can you clone it successfully? If yes, can you then push some changes?
If you cannot clone the repo or push the changes, given the fact that you cannot use the Git Client anymore with SSH anyway, I guess we could try a sort of "hard reset". For that you would have to go to [user_home_directory]/.com.oxygenxml.author
, look for the options file for your version (e.g. oxyAuthorOptionsSa26.1.xml
) and delete all the entries that start with PLUGIN_CUSTOM_OPTIONS.com.oxygenxml.git
(they should be grouped together) + the entry with PLUGIN_CUSTOM_OPTIONS.com.oxygenxml.user.credentials.list
. Then try again cloning and pushing.
Let me know how it goes.
On Fri, 26 Jul 2024 at 08:11, Sorin Carbunaru notifications@github.com wrote:
This kind of issues, where everything went well for a while then suddenly something bad happened out of the blue, are quite difficult to understand...
Yes, I agree! I have tried so many ideas, uninstalling, reinstalling, fiddling with .git/config
etc. etc. The one constant is that the CLI git works fine, and so does GitHub Desktop.
Have you changed anything in the SSH configuration lately? Maybe generated a new pair of keys?
No. Also, Github nowadays needs a special "Personal Access Token (PAT)". I haven't changed that either.
What happens if you try to clone that repo to another location on your computer using the Git Client Oxygen add-on? Can you clone it successfully? If yes, can you then push some changes?
Yes, I can clone, but I still can't "talk" to Github.
I just tried gitg to see if that worked, but I couldn't push and got the following error message:
It seems likely to me that this is the underlying problem affecting Oxygenxml too. I'll work on it now.
I've just spent another couple of hours trying to solve this and I can't. I'm giving up. I will use CLI or Github Desktop. I need to get on with work, not wander in the maze of ssh-land.
If you cannot clone the repo or push the changes, given the fact that you cannot use the Git Client anymore with SSH anyway, I guess we could try a sort of "hard reset". For that you would have to go to
[user_home_directory]/.com.oxygenxml.author
, look for the options file for your version (e.g.oxyAuthorOptionsSa26.1.xml
) and delete all the entries that start withPLUGIN_CUSTOM_OPTIONS.com.oxygenxml.git
(they should be grouped together) + the entry withPLUGIN_CUSTOM_OPTIONS.com.oxygenxml.user.credentials.list
. Then try again cloning and pushing.
After giving up, I thought I'd give this one last try.
I have a directory ~/.com.oxygenxml/
(not -.author
).
I followed your instructions, but no improvement.
If you ever want to try again to make your repo work with the Oxygen Git Client, I would expect using another type of key should do the job.
You can generate a new key by following this procedure: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent#generating-a-new-ssh-key
I've read that, when generating an RSA key using the command from this procedure, SHA256 is used by default instead of the deprecated SHA1 used for your current key.
Then you need to add the new key to GitHub: https://docs.github.com/en/authentication/connecting-to-github-with-ssh/adding-a-new-ssh-key-to-your-github-account.
After that, normally you should be able to work just fine with our Git client.
If it still does not work (i read some coments from people for whom it didn't work), try generating an ECDSA or Ed25519 key (example for Ed25519 in the procedure from GitHub).
BTW, I also added an internal issue (ID = EXM-54715) to show a helpful error message when using RSA-SHA1 keys.
Yes, I did generate a new key, earlier this morning.
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAID+8eD/0hik9LWX9WsawpdGJUgDLc0isb2mBuisgDuoJ wujastyk@gmail.com
and uploaded it to github and did the ssh-add thing on my machine.
Since gitg also doesn't talk to github, I'm quite willing to agree that this is a problem with ssh settings and keys or whatnot, and not specifically oxygenxml. I don't know why git and GH Desktop work just fine when gitg and oxygen don't. I am aware also that the permissions of .ssh
files is a common cause of trouble. Here is the script that refreshes my .ssh
settings:
#!/bin/bash -x
find .ssh/ -type f -exec chmod 600 {} \;; find .ssh/ -type d -exec chmod 700 {} \;; find .ssh/ -type f -name "*.pub" -exec chmod 644 {} \;
What does gitg say now, with the new Ed25519 key?
I tried to pull (main at Github is now ahead) and got
[image: image.png]
-- Professor Dominik Wujastyk https://apps.ualberta.ca/directory/person/wujastyk ,
Singhmar Chair in Classical Indian Society and Polity ,
Department of History, Classics, and Religion http://historyandclassics.ualberta.ca/ , University of Alberta, Canada .
South Asia at the UofA:
sas.ualberta.ca
SSHRC research: The Suśruta Project http://sushrutaproject.org
Journal: History of Science in South Asia http://hssa-journal.org
On Mon, 29 Jul 2024 at 13:19, Sorin Carbunaru @.***> wrote:
What does gitg say now, with the new Ed25519 key?
— Reply to this email directly, view it on GitHub https://github.com/oxygenxml/oxygen-git-client-addon/issues/180#issuecomment-2255665361, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAF2DBW3VXDO7U3FQ5G4KM3ZOYQLXAVCNFSM6AAAAABLGVVUDWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDENJVGY3DKMZWGE . You are receiving this because you authored the thread.Message ID: @.***>
@wujastyk, the image was not posted...
@wujastyk, the image was not posted...
Hello again,
If you go to the "SSH Connections" preferences page, how do your options look like?
I've had to uninstall this plugin and move over to GitHub Desktop because the oxygenxml git plugin refuses to push commits. I've tried everything I can think of. The permissions on my
.ssh
directory are fine. My ssh authentication works fine with the command line and with GitHub Desktop. I'm stymied. The error messages are lacunose and don't give me any leads ("can't push").I'm on Linux Mint + Cinnamon, everything up to date.