powered by Jive Software

Unable to install plugins

Currently running openfire 3.9.3 on OS X 10.9.5. Everything was running fine until last night when I updated the user services plugin. Since then I haven’t been able to install any plugin. I have reinstalled openfire as well but nothing seems to be working. For now openfire is rendered useless for me.

I am not sure if I am supposed to post any console logs but if there’s any required information, please let me know.

Please look at the recent logs found within openfire logs/ folder and see if there are any traces shown.

I have a same problem here…

After updating the userservice plugin to version 2.0 the problem started as described by Kartik Thapar.

When I try to do a REST API request to the userservice I am getting the blank page… :confused:

Also, I tried to revert the version of the plugin but now the problem is still here and after that…

Please could someone help about this issue.

Could you provide me more details?

  • Do you call the old REST API or the new one?

  • Is every rest call broken?

  • Which HTTP Response code do you receive?

  • Do you use the Secret key authentication or the HTTP Basic authentication? (Please check that your authentication type is enabled in Openfire Webinterface)

  • Any error logs in Openfire?

(Try also update to 2.0.1)

@Redeyes

- Do you call the old REST API or the new one?

I call:

http://server_ip:9090/plugins/userService/userservice?type=add&secret=z6Ls3nl7&u sername=kafka&password=drowssap&name=kafka&email=kafka@kafkaj.com

And response is blank page and response is: HTTP 0 error

- Is every rest call broken?

Actually, with userservice plugin it is, but presence plugin works ok.

- Do you use the Secret key authentication or the HTTP Basic authentication? (Please check that your authentication type is enabled in Openfire Webinterface)

I prefer tu use a secret key authentication.

plugin.userservice.httpAuth.enabled true

- Any error logs in Openfire?

Last error in error.log is:

2014.10.07 13:44:16 org.jivesoftware.util.CertificateManager - Error decoding subjectAltName

java.lang.ClassCastException: org.bouncycastle.asn1.DERTaggedObject cannot be cast to org.bouncycastle.asn1.ASN1Sequence

at org.jivesoftware.util.CertificateManager.getSubjectAlternativeNames(Certificate Manager.java:260)

at org.jivesoftware.util.CertificateManager.getPeerIdentities(CertificateManager.j ava:223)

at org.jivesoftware.util.CertificateManager.isCertificate(CertificateManager.java: 371)

at org.jivesoftware.util.CertificateManager.isRSACertificate(CertificateManager.ja va:322)

at org.jivesoftware.openfire.admin.index_jsp._jspService(index_jsp.java:519)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:547)

Also, I want to mention that i use the next version of JAVA on Linux Dedicated Cent OS 6.5:

java version “1.7.0_67”

Java™ SE Runtime Environment (build 1.7.0_67-b01)

Java HotSpot™ 64-Bit Server VM (build 24.65-b04, mixed mode)

Where I can find a plugin version 2.0.1 because I have installed 2.0.0 version and openfire indicated that there are no updates on 2.0.1 ?

Do you have some ideas what can be the problem, or did I do something wrong?

Please see the logs below —

In my case, it doesn’t matter which way I install the plugins (through upload, by installing through available plugins or by moving it to /usr/local/openfire/plugins), they just don’t show up in the installed plugins section. However, the checkmark for those plugins disappears from the available plugins section indicating as though they have been deployed in some form.

launchd.stderr

cat: 639: No such file or directory

cat: 637: No such file or directory

cat: 639: No such file or directory

cat: 637: No such file or directory

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/debug.log (No such file or directory)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:192)

at java.io.FileOutputStream.(FileOutputStream.java:116)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:15 0)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:163)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:425)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:470)

at org.apache.log4j.LogManager.(LogManager.java:122)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:357)

at java.lang.Class.newInstance(Class.java:310)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/info.log (No such file or directory)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:192)

at java.io.FileOutputStream.(FileOutputStream.java:116)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:15 0)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:163)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:425)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:470)

at org.apache.log4j.LogManager.(LogManager.java:122)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:357)

at java.lang.Class.newInstance(Class.java:310)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/warn.log (No such file or directory)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:192)

at java.io.FileOutputStream.(FileOutputStream.java:116)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:15 0)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:163)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:425)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:470)

at org.apache.log4j.LogManager.(LogManager.java:122)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:357)

at java.lang.Class.newInstance(Class.java:310)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/error.log (No such file or directory)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:192)

at java.io.FileOutputStream.(FileOutputStream.java:116)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:15 0)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:163)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:425)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:470)

at org.apache.log4j.LogManager.(LogManager.java:122)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:357)

at java.lang.Class.newInstance(Class.java:310)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

/usr/local/openfire/bin/extra/openfire-launchd-wrapper.sh: line 9: kill: (1365) - Operation not permitted

/usr/local/openfire/bin/extra/openfire-launchd-wrapper.sh: line 9: kill: (1366) - Operation not permitted

Server halted

cat: 1418: No such file or directory

cat: 1420: No such file or directory

cat: 1418: No such file or directory

cat: 1420: No such file or directory

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/debug.log (No such file or directory)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:192)

at java.io.FileOutputStream.(FileOutputStream.java:116)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:15 0)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:163)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:425)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:470)

at org.apache.log4j.LogManager.(LogManager.java:122)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:357)

at java.lang.Class.newInstance(Class.java:310)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/info.log (No such file or directory)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:192)

at java.io.FileOutputStream.(FileOutputStream.java:116)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:15 0)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:163)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:425)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:470)

at org.apache.log4j.LogManager.(LogManager.java:122)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:357)

at java.lang.Class.newInstance(Class.java:310)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/warn.log (No such file or directory)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:192)

at java.io.FileOutputStream.(FileOutputStream.java:116)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:15 0)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:163)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:425)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:470)

at org.apache.log4j.LogManager.(LogManager.java:122)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:357)

at java.lang.Class.newInstance(Class.java:310)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

log4j:ERROR setFile(null,true) call failed.

java.io.FileNotFoundException: /logs/error.log (No such file or directory)

at java.io.FileOutputStream.openAppend(Native Method)

at java.io.FileOutputStream.(FileOutputStream.java:192)

at java.io.FileOutputStream.(FileOutputStream.java:116)

at org.apache.log4j.FileAppender.setFile(FileAppender.java:289)

at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:167)

at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:163)

at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:256)

at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:220)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:15 0)

at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:163)

at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:425)

at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:394)

at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:829)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:712)

at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)

at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:470)

at org.apache.log4j.LogManager.(LogManager.java:122)

at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)

at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)

at org.jivesoftware.openfire.XMPPServer.(XMPPServer.java:131)

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessor Impl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructor AccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

at java.lang.Class.newInstance0(Class.java:357)

at java.lang.Class.newInstance(Class.java:310)

at org.jivesoftware.openfire.starter.ServerStarter.start(ServerStarter.java:113)

at org.jivesoftware.openfire.starter.ServerStarter.main(ServerStarter.java:58)

The problem is that you use the HTTP Basic authentication (plugin.userservice.httpAuth.enabled = true). But you want the shared secret key authentication.

To fix the problem, download the latest version of Userservice 2.0.1 (Ignite Realtime: Openfire Plugins )

Change the authentication in Openfire Webinterface from HTTP Basic to Shared secret key.

Hi,

@Redeyes I have done as you say me, but still nothing.

Here is a direct URL to my request so you can see what happening:

http://167.114.1.42:9090/plugins/userService/userservice?type=add&secret=99Am0jD w&username=kafka&password=drowssap&name=…

Also there is a few screen shoots of my openfire admin console to be clear with settings and plugin version:

Admin Plugins page:

System properties:

Userservice plugin settings:

Filip, your latest reply is under moderation. But i see that you have posted your secret key and password in the URL. Is it OK to approve this message?

Yes,

I will change a secret when resolve a problem…

Hi Filip,

if I call your link i get 401 Unauthorized response (try to do that with curl or postman or something like this).

I guess i know what the problem is. Since the update, the plugin require the Secret over Header (see readme documentation) and not anymore over URL Param.

I will take a look to fix that, to be 100% backwards compatible.

Best,

Roman

1 Like

@Redeyes

I figured out now, but when I tried with following curl:

curl -X POST -i -H “Content-type: application/xml” -H “Authorization:99Am0jDw” -X POST http://167.114.1.42:9090/plugins/userService/users -d ’

{

“username”:“korisnik”,

“password”:“lozinka”

}

And response is HTTP 400 - Bad Request.

I know that I probably doing something wrong but there is a response:

HTTP/1.1 400 Bad Request

Set-Cookie: JSESSIONID=ka1ynjfbs2o8pj3hvwn0i7w3;Path=/

Expires: Thu, 01 Jan 1970 00:00:00 GMT

Content-Length: 0

Otherwise when I call a GET request to same URL I get HTTP 200 OK and a list of users like this:

GET http://167.114.1.42:9090/plugins/userService/users

And response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> admin Administrator pipofilipo@email.com

I did not changed secret or something other…

Do you have ideas where I am a wrong?

Thanks in advance.

I just released user service 2.0.2. This should fix your previously problem.

To the new API, you send the request in JSON format. At the moment is only XML allowed.

Here are examples how to create a new user: User Service Plugin Readme

Best,

Roman

1 Like

Could we also look at the original problem in the OP? What Filip described is a complete different issue to what has been described in the OP. The log has been posted at the bottom of the page. Can you also look at that?

Thanks.

Hey, it looks to be a filesystem permission problem.

That openfire can not access / write to usr/local/openfire/plugins folder.

As it appears, the Openfire web panel is able to install the binaries in the /usr/local/openfire/plugins directory; but those plugins never show up in the web panel. I change the permissions to a+rw for everything in openfire for now.

drwxrwxrwx 6 openfire 241 204 May 6 14:54 bin

drwxrwxrwx 7 openfire 241 238 Oct 6 17:12 conf

drwxrwxrwx 6 openfire 241 204 Oct 6 16:53 embedded-db

drwxrwxrwx 21 openfire 241 714 May 6 14:54 lib

drwxrwxrwx 4 openfire 241 136 Oct 6 16:31 logs

drwxrwxrwx 9 openfire 241 306 Oct 6 17:12 plugins

drwxrwxrwx 6 openfire 241 204 May 6 14:54 resources

Is there a next step to this?

Thanks Roman!

Now works perfectly!