git add-on: invalid SSH passphrase (and logging)

Oxygen general issues.
piotrb
Posts: 15
Joined: Fri Jan 09, 2009 9:18 pm

git add-on: invalid SSH passphrase (and logging)

Post by piotrb »

I use my institute's git repo with the git add-on, and up till recently (modulo my post-pandemic comings and goings , which is to say that I am not sure what "recently" stands for, precisely), everything was fine but now, the add-on keeps telling me that the "previous SSH passphrase was invalid", and when I enter the same password as the one that I successfully use on the commandline, the client fails to connect and pops up the same dialog again. Resetting credentials hasn't helped. I have found a nice piece of advice by Sorin at post60238.html , suggesting that it's possible to enable logging of the add-on's errors. That would help a lot, but I can't seem to be able to get it to work.
Sorin says there:
For investigating the authentication problem, you could create a "log4j.properties" file inside Oxygen's installation folder with the following content:

Code: Select all

log4j.rootCategory=info, R2

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

log4j.category.com.oxygenxml.git=debug
I have created the file in the directory where oXygen is installed (~/Oxygen XML Editor 24) and tried both the "${user.home}" as well as absolute path of my home dir, but the oxygenLog/ directory isn't there in ~/Desktop although I've closed and reopened oXygen and fooled around with the add-on.
(I wasn't able to find "user.home" anywhere else, when grepping recursively across the installation directory, so I thought I'd make sure that it's not an obsolete variable name -- but neither option works).

Perhaps after the log4j crisis, logging is handled differently now? May I ask, in the first step, for confirmation that the snippet above should work at present?

Thanks in advance! :-)
alex_jitianu
Posts: 1009
Joined: Wed Nov 16, 2005 11:11 am

Re: git add-on: invalid SSH passphrase (and logging)

Post by alex_jitianu »

Hello,

We've changed the logging system from log4j to logback so the configuration file is different.

1. Create a logback.xml file in the lib folder from the application installation directory with the content from below.
2. Restart the application.
3. Reproduce the problem.
4. Close the application.
5. Delete the logback.xml file because it might cause performance issues if you leave it in the lib folder.

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.

Code: Select all

<configuration><link type="text/css" rel="stylesheet" id="dark-mode-custom-link"/><link type="text/css" rel="stylesheet" id="dark-mode-general-link"/><style lang="en" type="text/css" id="dark-mode-custom-style"/><style lang="en" type="text/css" id="dark-mode-native-style"/>
    <appender name="R2" class="ch.qos.logback.core.rolling.RollingFileAppender">
        <file>${user.home}/Desktop/oxygenLog/oxygen.log</file>
        <rollingPolicy class="ch.qos.logback.core.rolling.FixedWindowRollingPolicy">
            <fileNamePattern>${user.home}/Desktop/oxygenLog/oxygen%i.log.gz</fileNamePattern>
            <minIndex>1</minIndex>
            <maxIndex>20</maxIndex>
        </rollingPolicy>
        <triggeringPolicy class="ch.qos.logback.core.rolling.SizeBasedTriggeringPolicy">
            <maxFileSize>12MB</maxFileSize>
        </triggeringPolicy>
        <encoder>
            <pattern>%r %marker %p [ %t ] %c - %m%n</pattern>
        </encoder>
    </appender> 
    
    <!-- CLIENT FOR V4 -->
    <logger name="org.apache.commons.httpclient" level="error"/>
    <logger name="httpclient.wire" level="error"/>
    <logger name="ro.sync.net.protocol" level="error"/>
    
    <!-- CLIENT FOR V4 -->
    <logger name="org.apache.http.impl.conn" level="error"/>
    <logger name="org.apache.http.impl.client" level="error"/>
    <logger name=" org.apache.http.client" level="error"/>
    <logger name="org.apache.http.wire" level="error"/>
    <logger name="org.apache.http" level="error"/>
	
	<logger name="com.oxygenxml.git" level="debug"/>
	<logger name="org.apache.sshd" level="debug"/>
	
    
    <root level="info">
        <appender-ref ref="R2"/>
    </root>
	
</configuration>
Best regards,
Alex
piotrb
Posts: 15
Joined: Fri Jan 09, 2009 9:18 pm

Re: git add-on: invalid SSH passphrase (and logging)

Post by piotrb »

Dear Alex,
Thanks so much for this! Will try it out as soon as I get back to that task (and that repository).
Piotr
Post Reply