Connectors via RPM

Dear community,

I’m trying to deploy JDBC connector ussing this manual.

At the start you provide the information “All the connectors which were part of the RPM distribution can be found in the /usr/local/openiam/connectors/bin/ directory.” but the problem is that the directory is missing.

I use 4.2.1.13 version, updated from 4.2.1.11. I checked the old version backup and the folder is missing too.

Another information you provide is “If the connector you are looking for was not part of the distribution, download it from the OpenIAM website and copy it to the above directory.”

I didn’t find any link at your website where I can download it. Could you help me please?

Thank you in advance.
Best regards.
Jan

Hello Jan,

You can download the 4.2.1.13 JDBC connector directly from this link.

On our website, you can access downloads such as the RPM releases and the connectors from the knowledge base – you can do this by creating an account for yourself by clicking the “Download a Trial” link to register and then using the login link in the upper right hand side. There is currently a configuration issue with our knowledge base that is affecting downloads, but our hosting provider will have this fixed shortly.

I will consult my team regarding the instructions in our documentation. Please let me know if you have any other questions.

Thanks,
Ameet

Hello Ameet,

Thank you very much for providing the download link and for the advice.

Have a nice day.
Jan

Dear Ameet,

I’m back with another question. I downloaded the connector you provided me. Following the instructions from the manual I got to this part:

When I try to run ./start.sh jdbc-connector-rabbitmq I got the error:

[root@localhost connectors]# ./start.sh jdbc-connector-rabbitmq
Logging system failed to initialize using configuration from ‘null’
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(/tmp/s pring.log,true) call failed. java.io.FileNotFoundException: /tmp/spring.log (Per mission denied)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadCon figuration(LogbackLoggingSystem.java:179)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.reiniti alize(LogbackLoggingSystem.java:232)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWith Conventions(AbstractLoggingSystem.java:73)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(Abs tractLoggingSystem.java:60)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initial ize(LogbackLoggingSystem.java:132)
at org.springframework.boot.context.logging.LoggingApplicationListener.i nitializeSystem(LoggingApplicationListener.java:313)
at org.springframework.boot.context.logging.LoggingApplicationListener.i nitialize(LoggingApplicationListener.java:282)
at org.springframework.boot.context.logging.LoggingApplicationListener.o nApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:240)
at org.springframework.boot.context.logging.LoggingApplicationListener.o nApplicationEvent(LoggingApplicationListener.java:216)
at org.springframework.context.event.SimpleApplicationEventMulticaster.d oInvokeListener(SimpleApplicationEventMulticaster.java:176)
at org.springframework.context.event.SimpleApplicationEventMulticaster.i nvokeListener(SimpleApplicationEventMulticaster.java:169)
at org.springframework.context.event.SimpleApplicationEventMulticaster.m ulticastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.event.SimpleApplicationEventMulticaster.m ulticastEvent(SimpleApplicationEventMulticaster.java:131)
at org.springframework.boot.context.event.EventPublishingRunListener.env ironmentPrepared(EventPublishingRunListener.java:85)
at org.springframework.boot.SpringApplicationRunListeners.lambda$environ mentPrepared$2(SpringApplicationRunListeners.java:66)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at org.springframework.boot.SpringApplicationRunListeners.doWithListener s(SpringApplicationRunListeners.java:120)
at org.springframework.boot.SpringApplicationRunListeners.doWithListener s(SpringApplicationRunListeners.java:114)
at org.springframework.boot.SpringApplicationRunListeners.environmentPre pared(SpringApplicationRunListeners.java:65)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringA pplication.java:344)
at org.springframework.boot.SpringApplication.run(SpringApplication.java :302)
at org.openiam.config.Application.main(Application.java:55)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner .java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
Exception in thread “main” java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner .java:49)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:108)
at org.springframework.boot.loader.Launcher.launch(Launcher.java:58)
at org.springframework.boot.loader.JarLauncher.main(JarLauncher.java:65)
Caused by: java.lang.IllegalStateException: java.lang.IllegalStateException: Log back configuration error detected:
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(/tmp/s pring.log,true) call failed. java.io.FileNotFoundException: /tmp/spring.log (Per mission denied)
at org.springframework.boot.context.logging.LoggingApplicationListener.i nitializeSystem(LoggingApplicationListener.java:328)
at org.springframework.boot.context.logging.LoggingApplicationListener.i nitialize(LoggingApplicationListener.java:282)
at org.springframework.boot.context.logging.LoggingApplicationListener.o nApplicationEnvironmentPreparedEvent(LoggingApplicationListener.java:240)
at org.springframework.boot.context.logging.LoggingApplicationListener.o nApplicationEvent(LoggingApplicationListener.java:216)
at org.springframework.context.event.SimpleApplicationEventMulticaster.d oInvokeListener(SimpleApplicationEventMulticaster.java:176)
at org.springframework.context.event.SimpleApplicationEventMulticaster.i nvokeListener(SimpleApplicationEventMulticaster.java:169)
at org.springframework.context.event.SimpleApplicationEventMulticaster.m ulticastEvent(SimpleApplicationEventMulticaster.java:143)
at org.springframework.context.event.SimpleApplicationEventMulticaster.m ulticastEvent(SimpleApplicationEventMulticaster.java:131)
at org.springframework.boot.context.event.EventPublishingRunListener.env ironmentPrepared(EventPublishingRunListener.java:85)
at org.springframework.boot.SpringApplicationRunListeners.lambda$environ mentPrepared$2(SpringApplicationRunListeners.java:66)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1541)
at org.springframework.boot.SpringApplicationRunListeners.doWithListener s(SpringApplicationRunListeners.java:120)
at org.springframework.boot.SpringApplicationRunListeners.doWithListener s(SpringApplicationRunListeners.java:114)
at org.springframework.boot.SpringApplicationRunListeners.environmentPre pared(SpringApplicationRunListeners.java:65)
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringA pplication.java:344)
at org.springframework.boot.SpringApplication.run(SpringApplication.java :302)
at org.openiam.config.Application.main(Application.java:55)
… 8 more
Caused by: java.lang.IllegalStateException: Logback configuration error detected :
ERROR in ch.qos.logback.core.rolling.RollingFileAppender[FILE] - openFile(/tmp/s pring.log,true) call failed. java.io.FileNotFoundException: /tmp/spring.log (Per mission denied)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.loadCon figuration(LogbackLoggingSystem.java:179)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.reiniti alize(LogbackLoggingSystem.java:232)
at org.springframework.boot.logging.AbstractLoggingSystem.initializeWith Conventions(AbstractLoggingSystem.java:73)
at org.springframework.boot.logging.AbstractLoggingSystem.initialize(Abs tractLoggingSystem.java:60)
at org.springframework.boot.logging.logback.LogbackLoggingSystem.initial ize(LogbackLoggingSystem.java:132)
at org.springframework.boot.context.logging.LoggingApplicationListener.i nitializeSystem(LoggingApplicationListener.java:313)
… 24 more

Don’t you know what I should do? I checked that the file /tmp/spring.log is used by OpenIAM processes. I wouldn’t want to break any other process with any modification.

Thank you in advance.
Best regards
Jan

Hello Jan,

I am checking with my team and should have an answer for you shortly.

Thanks,
Ameet

Hello Jan,

The appears to be a permission issue based on the error logs. Is the JDBC connector deployed as a remote connector on a server where OpenIAM is not installed?

  1. Please run the following command to check the current ownership and permissions of the log file:

ls -l /tmp/spring.log

  1. If the owner is not openiam, please execute the following commands to correct it:

chown openiam:openiam /tmp/spring.log

chmod 644 /tmp/spring.log

  1. Run:

./start.sh jdbc-connector-rabbitmq

Please let me know if this helps resolve the issue.

Thanks,
Ameet