Spiceworks integration

avatar

Hi All,

I'm testing out the Spiceworks integration.
My spiceworks server is installed, scanned and configured. Everything on the spiceworks server side works like it shoud be (I think).

Now I'm trying to enter the information in RDM.
So I've edited a connection, Tools - Spiceworks, Enabled, and filled in the spiceworks host (http://ipaddress). When I click the browser icon the webpage fires up fine. Then I've entered my credentials, double checked them on the spiceworks host. But when I click the Link button next to Device, a new window opens up with the following errors:
- Unable to retrieve groups
- Unable to retrieve the devices

So I thought it was account permission, checked the login information and everything is entered correct.

Am I forgetting something?

All Comments (33)

avatar

Hello Thomas,

If you specify the port in the URL, does it change anything?
Could you see if creating a Spiceworks entry type and using the same information works?

Regards,

Hubert Mireault

avatar

Hi Hubert,

Thanks for the quick reply

Just tested it out with the port addition, but without succes.

I've now tested out the spiceworks entry but with the same result. But if choose Dashboard in the entry then the browser fires up and logs in with the specified password. But Linking a device or group gives the above specified error.

avatar

Hello Thomas,

If you go on your Spiceworks server in a web browser and add "/api/groups.xml" to the URL, does it give an error? Make sure you are logged in and have enough rights before doing it. Example: http://127.0.0.1/api/groups.xml

We use Spiceworks' web API and simply retrieve the XML and parse it to list the groups. I'm unable to replicate your problem with our server, so I'm wondering if it's a problem on Spiceworks' side.

Regards,

Hubert Mireault

avatar

Good idea,

Logged in with my admin user and then added /api/groups.xml & /api/devices.xml and both pages display the correct information. I can see my groups and devices in the XML tree

I'm going to ask my collegeau to test it out on his enviroment

avatar

Thank you for helping us pinpoint the problem. Keep us updated.

Hubert Mireault

avatar

No problem,
It has been tested out on a different server and a different RDM but with the same error, the api pages also loads fine.

As test I have enabled the API option in spiceworks, but no difference.

The version we are using is 7.3.00027 & RDM 10.1.3.0
edited by anvar on 1/6/2015

avatar

In the upcoming RDM version, there will be more detailed logging (in Help > View Application Logs), and the error message will be seen when you get the "Unable to retrieve group/device".

When this new version is available, could you reproduce your problem and give us the logs and error message? You can do this through the forum's private messaging feature or through email at hmireault@devolutions.net

Regards,

Hubert Mireault

avatar

Ah great, I will wait for the new version and send the log file through
thanks in advance

avatar

Hello Thomas,

A new version is ready to download on the website, it is version 10.1.4.0, which contains the more extensive logging for Spiceworks, amongst other things.

When you are able to, could you try to reproduce your problem on that version and send me the application logs?

Regards,

Hubert Mireault

avatar

Hi Hubert,

Yes I've noticed, I did the test again and this is the error in the application log (twice the same error)

System.InvalidOperationException: There is an error in XML document (1, 1). ---> System.Xml.XmlException: Data at the root level is invalid. Line 1, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)

avatar

Hello Thomas,

As we are unable to reproduce it using our own server and it seems to be an XML parsing problem, could you send us the XML file it gives when you access the API using a web browser? We would appreciate a file for the groups and the devices separately, just in case. Make sure to remove any sensitive information from the files.

You can send it through the forum's private messaging feature or email me at hmireault@devolutions.net

Regards,

Hubert Mireault

avatar

Hi Hubert,

I've send you a PM with both the files from both the different installs (see above)

Thanks in advance

avatar

Thank you, I will look into this.

Hubert Mireault

avatar

Hello,

Even using the XML files you sent me, I cannot reproduce the problem. Everything works as expected.
In the next version, when this error occurs, the XML document that is retrieved by RDM will appear on screen. When this version is available, could you send me the document it gives?

I was wondering, do you have a proxy or something similar setup that is enabled in your web browser, but not in RDM? That could definitely have a link to the problem, if that's the case.

Regards,

Hubert Mireault

avatar

That is quite strange, no we do not have a proxy or anything in between. It is also tested from a computer (RDM install) in the same network.

I'll await the next version to see what the XML looks like with the error.

Thanks in advance for all the work and support !

avatar

Hello Thomas,

Version 10.1.5.0 of RDM should be available for download. It includes, among other things, the error handling I mentionned. Could you give it a try and send me the result through private message again? Thank you.

Regards,

Hubert Mireault

avatar

Hello,

I have the same problem. The newest Spiceworks version and the RDM 10.1.5.0.

I get the error messages:
- Unable to retrieve the groups!
- Invalid XML document
"You are beeing redirected to /?unauthenticated=true"

But the credentials and Spiceworks host is right, because I can access the webinterface over RDM.

Regards,

avatar

Hubert,

The same errors as C.Goerner

I've triple checked the username and password, just to be 100% sure that they were correct.
I've also tried with loging in to the webinterface, leaving it open and then testing the integration. But with the same result.

avatar

Hello,

We can reproduce the problem. We will work on a fix.

Regards,

Hubert Mireault

avatar

That is great news.
Thanks for the wonderful support and have a nice weekend

avatar

Hello,

This fix will be included in the next version. Please tell us if you have any more problems with our Spiceworks integration.

Regards,

Hubert Mireault

avatar

Hello,

the newest version of RDM works!

Thank you!

avatar

Hello,

with the Version 10.1.7.0 of RDM the Spiceworks integration sends an error again.

"Unable to retrieve the devices!
There is an error in XML document (317, 40)"

I get a Log File. I will send it via pm if you want.

avatar

Hello,

Did it stop working as soon as you updated to 10.1.7.0 or did it have the same behavior before? Also, what is the version of Spiceworks you are currently running?

Thank you, could you send me both the XML document and the log file through private message? We cannot test every scenario for Spiceworks with our current setup, so looking at the XML itself for what causes the error would be helpful. Be sure to replace any sensitive information before sending it.

Regards,
edited by Hubert Mireault on 1/27/2015

Hubert Mireault

avatar

Hello,

SW-Version: 7.3.00042
After the update of RDM to version 10.1.7.0 it stopped working.
I haven´t got an error before.

I will send the XML via PM.

avatar

Thank you for the log, it helped pinpoint the problem. It had to do with how we parsed the document. We will have this fixed in the next RDM version.

Regards,

Hubert Mireault

avatar

Hello,

today I have installed the Update 10.1.8.0 and now I get another error message.
"Unable to retrieve the devices!
There is an error in XML document (360, 76)".

Do you want the XML again via pm?

avatar

That would be most appreciated, thank you.

Hubert Mireault

avatar

Just to make sure, did you use the "copy" button from the error window to get the XML? I noticed it's formatted in an odd way, and using that button doesn't usually do that.

Regards,

Hubert Mireault

avatar

Hello,

I have found another issue in how we parsed the XML, which will be fixed in the next version. I think that might be why you had a problem.

Regards,

Hubert Mireault

avatar

Hi

I have the Same problem, when clicking on [link] in the spiceworks option on a server
I get Unable to retrieve group
then
You are being redirected to /?unauthenticated=true


when Manually adding /api/groups.xml & /api/devices.xml to the URL, that works fine


Spiceworks Version 7.4.00070D
Remote Desktop Manager Enterprise Edition 10.6.7.0

avatar

Hello,

Could you try the latest beta version of RDM? You can download it here: http://remotedesktopmanager.com/Home/Download#beta

Regards,

Hubert Mireault

avatar

Thanks alot ! it solved the problem