no communication with the server

Asked by Moritz Kirchner

I installed the xibo pyclient and the server on the my Linux Ubuntu 14.04.1 server.
I have configured the site.cfg:
  [Main]
  xmdsUrl=http://127.0.0.1
  xmdsClientID=test
  xmdsKey=test
  xmdsUpdateInterval=90
  requireXmds=false
  width=960
  height=540
  bpp=24
  fullscreen=true

But if I start the client and press "i" all flags are grey and no new monitor was showen at the server CMS.
I have allready checkt the problem with the same Client at another Xibo Server.

Xibo pyclient version is 1.6.2 timestamp: Fri 2014-07-18 23:43:48 +0100
message:
[hotfix][cms] Missing statemaents from structure.sql

Another problem is the the screen is flare independently from the update interval at the side.cfg

I hope you can help me

Thanks a lot

Moritz Kirchner

Max-Planck-Society Munich

Question information

Language:
English Edit question
Status:
Solved
For:
Xibo Edit question
Assignee:
No assignee Edit question
Solved by:
Moritz Kirchner
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
bhavanitech (bhavanitechconsultant) said :
#1

Pls check your xmdsURL it should be like xmdsUrl=http://127.0.0.1/xibo

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#2

Thanks for the fast answer but the problem is still persists.

Revision history for this message
Alex Harrington (alexharrington) said :
#3

14.04 isn't supported for the client so I'd be surprised if it works at
all. However, try setting requireXmds to true initially to get the client
Registered

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#4

Now i built it again on a Ubuntu 12.04.5 LTS and still have the same Problem.
When i activate requireXmds the Register Display flag would be red.
Thanks for the great support.

Revision history for this message
Alex Harrington (alexharrington) said :
#5

That's normal. You need to go to your CMS and licence the display before
anything else will happen

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#6

But there is no display showen in the CMS

Revision history for this message
Alex Harrington (alexharrington) said :
#7

Then the server key in the client config is wrong. If you look at the
client logs it will tell you why it's unable to register

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#8

The logfile says that the client can not connect to XMDS:

LOG: 2014-08-25 10:17:12 (.check:3434) 0 error Could not connect to XMDS.
LOG: 2014-08-25 10:17:12 (.check:3420) 2 info Connecting to XMDS at URL: http://127.0.0.1/xibo/xmds.php Attempt Number: 2
LOG: 2014-08-25 10:17:12 (.frameHandle:4604) 5 debug Added new node to info
LOG: 2014-08-25 10:17:12 (.enqueue:4584) 3 info Enqueue: setBitmap ('M1-2-3', <libavg.avg.Bitmap object at 0x951fd24>)
LOG: 2014-08-25 10:17:12 (.frameHandle:4604) 5 debug Added new node to info
LOG: 2014-08-25 10:17:12 (.enqueue:4590) 3 info Queue length is now 66
LOG: 2014-08-25 10:17:12 (.enqueue:4584) 3 info Enqueue: resize ('M1-2-3', 1280.0, 720.0, 'centre', 'centre')
LOG: 2014-08-25 10:17:12 (.enqueue:4590) 3 info Queue length is now 67
LOG: 2014-08-25 10:17:12 (.check:3434) 0 error Could not connect to XMDS.
LOG: 2014-08-25 10:17:12 (.check:3420) 2 info Connecting to XMDS at URL: http://127.0.0.1/xibo/xmds.php Attempt Number: 3
LOG: 2014-08-25 10:17:12 (.__init__:30) 2 info FadeInTransition plugin loaded!
LOG: 2014-08-25 10:17:12 (.frameHandle:4604) 5 debug Added new node to info
LOG: 2014-08-25 10:17:12 (.check:3434) 0 error Could not connect to XMDS.
LOG: 2014-08-25 10:17:12 (.RequiredFiles:3485) 0 error XMDS could not be initialised
LOG: 2014-08-25 10:17:12 (.enqueue:4584) 3 info Enqueue: setOpacity ('infoRFGreen', 0)
LOG: 2014-08-25 10:17:12 (.check:3420) 2 info Connecting to XMDS at URL: http://127.0.0.1/xibo/xmds.php Attempt Number: 1

Revision history for this message
Alex Harrington (alexharrington) said :
#9

Then you need to investigate why that is.

If you open a browser on the client and visit
http://127.0.0.1/xibo/xmds.php?wsdl what do you get?

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#10

A XML File:

-<definitions targetNamespace="urn:xmds"><types><xsd:schema targetNamespace="urn:xmds"><xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/><xsd:import namespace="http://schemas.xmlsoap.org/wsdl/"/></xsd:schema></types><message name="RegisterDisplayRequest"><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="displayName" type="xsd:string"/><part name="version" type="xsd:string"/></message><message name="RegisterDisplayResponse"><part name="ActivationMessage" type="xsd:string"/></message><message name="RequiredFilesRequest"><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="version" type="xsd:string"/></message><message name="RequiredFilesResponse"><part name="RequiredFilesXml" type="xsd:string"/></message><message name="GetFileRequest"><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="filePath" type="xsd:string"/><part name="fileType" type="xsd:string"/><part name="chunkOffset" type="xsd:int"/><part name="chuckSize" type="xsd:int"/><part name="version" type="xsd:string"/></message><message name="GetFileResponse"><part name="file" type="xsd:base64Binary"/></message><message name="ScheduleRequest"><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="version" type="xsd:string"/></message><message name="ScheduleResponse"><part name="ScheduleXml" type="xsd:string"/></message><message name="RecieveXmlLogRequest"><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="xml" type="xsd:string"/><part name="version" type="xsd:string"/></message><message name="RecieveXmlLogResponse"><part name="success" type="xsd:boolean"/></message><message name="BlackListRequest"><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="mediaId" type="xsd:int"/><part name="type" type="xsd:string"/><part name="reason" type="xsd:string"/><part name="version" type="xsd:string"/></message><message name="BlackListResponse"><part name="success" type="xsd:boolean"/></message><message name="SubmitLogRequest"><part name="version" type="xsd:string"/><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="logXml" type="xsd:string"/></message><message name="SubmitLogResponse"><part name="success" type="xsd:boolean"/></message><message name="SubmitStatsRequest"><part name="version" type="xsd:string"/><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="statXml" type="xsd:string"/></message><message name="SubmitStatsResponse"><part name="success" type="xsd:boolean"/></message><message name="MediaInventoryRequest"><part name="version" type="xsd:string"/><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="mediaInventory" type="xsd:string"/></message><message name="MediaInventoryResponse"><part name="success" type="xsd:boolean"/></message><message name="GetResourceRequest"><part name="serverKey" type="xsd:string"/><part name="hardwareKey" type="xsd:string"/><part name="layoutId" type="xsd:int"/><part name="regionId" type="xsd:string"/><part name="mediaId" type="xsd:string"/><part name="version" type="xsd:string"/></message><message name="GetResourceResponse"><part name="resource" type="xsd:string"/></message><portType name="xmdsPortType"><operation name="RegisterDisplay"><documentation>Register the Display with the CMS</documentation><input message="tns:RegisterDisplayRequest"/><output message="tns:RegisterDisplayResponse"/></operation><operation name="RequiredFiles"><documentation>The files required by the requesting display</documentation><input message="tns:RequiredFilesRequest"/><output message="tns:RequiredFilesResponse"/></operation><operation name="GetFile"><documentation>Gets the file requested</documentation><input message="tns:GetFileRequest"/><output message="tns:GetFileResponse"/></operation><operation name="Schedule"><documentation>Gets the schedule</documentation><input message="tns:ScheduleRequest"/><output message="tns:ScheduleResponse"/></operation><operation name="RecieveXmlLog"><documentation>Recieves the Log Xml</documentation><input message="tns:RecieveXmlLogRequest"/><output message="tns:RecieveXmlLogResponse"/></operation><operation name="BlackList"><documentation>Set media to be blacklisted</documentation><input message="tns:BlackListRequest"/><output message="tns:BlackListResponse"/></operation><operation name="SubmitLog"><documentation>Submit Logging from the Client</documentation><input message="tns:SubmitLogRequest"/><output message="tns:SubmitLogResponse"/></operation><operation name="SubmitStats"><documentation>Submit Display statistics from the Client</documentation><input message="tns:SubmitStatsRequest"/><output message="tns:SubmitStatsResponse"/></operation><operation name="MediaInventory"><documentation>Report back the clients MediaInventory</documentation><input message="tns:MediaInventoryRequest"/><output message="tns:MediaInventoryResponse"/></operation><operation name="GetResource"><documentation>Gets the file requested</documentation><input message="tns:GetResourceRequest"/><output message="tns:GetResourceResponse"/></operation></portType><binding name="xmdsBinding" type="tns:xmdsPortType"><soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="RegisterDisplay"><soap:operation soapAction="urn:xmds#RegisterDisplay" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="RequiredFiles"><soap:operation soapAction="urn:xmds#RequiredFiles" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="GetFile"><soap:operation soapAction="urn:xmds#GetFile" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="Schedule"><soap:operation soapAction="urn:xmds#Schedule" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="RecieveXmlLog"><soap:operation soapAction="urn:xmds#RecieveXmlLog" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="BlackList"><soap:operation soapAction="urn:xmds#BlackList" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="SubmitLog"><soap:operation soapAction="urn:xmds#SubmitLog" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="SubmitStats"><soap:operation soapAction="urn:xmds#SubmitLog" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="MediaInventory"><soap:operation soapAction="urn:xmds#MediaInventory" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation><operation name="GetResource"><soap:operation soapAction="urn:xmds#GetResource" style="rpc"/><input><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></input><output><soap:body use="encoded" namespace="urn:xmds" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/></output></operation></binding><service name="xmds"><port name="xmdsPort" binding="tns:xmdsBinding"><soap:address location="http://172.17.10.149//xibo/xmds.php"/></port></service></definitions>

Revision history for this message
Alex Harrington (alexharrington) said :
#11

So your webserver is returning a different address for itself

http://172.17.10.149//xibo/xmds.php

That url isn't correct so the client can't then connect to the service.

You need to configure your webserver correctly to return either a fully
qualified DNS name for itself or something like 'localhost'

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#12

I have check this with localhost and 127.0.0.1 on the server to. It was just to copy it from my workstation to this window because the xibo server isn't connect to the internet.

Revision history for this message
Alex Harrington (alexharrington) said :
#13

Yes, but in the xml returned you'll see that the server is redirecting the
client to that other address.

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#14

But if I add a windows client to the server there wouldn't any problems.

Revision history for this message
Alex Harrington (alexharrington) said :
#15

The Windows client doesn't correctly honour the redirect in the WSDL.

You need to get that correct, then it will work. I can't help you any
further until you fix that

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#16

Thanks Alex Harrington, that solved my question.

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#17

But if i type http://localhost//xibo/xmds.php?wsdl into a browser on my ubuntu server the soap:address location="http://localhost/xibo/xmds.php" in the xml file. I don't know what i should configure at my webserver (apache)
sorry for the trouble caused to you

Revision history for this message
Alex Harrington (alexharrington) said :
#18

From the client machine, can you access the CMS at http://localhost/xibo?

If so, then use localhost in the configuration file rather than 127.0.0.1

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#19

Yes, I can reach it. But after the configuration change the problem is still the same.

Revision history for this message
Alex Harrington (alexharrington) said :
#20

That's very strange. Can you connect the client to a cloud account? You can
sign up for a free demo at http://springsignage.com

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#21

No sorry
We have very hard safety instructions for our network. But thanks for your help. I will test it at a ubuntu 10.04 to check xibo with older client versions .

Revision history for this message
Dan Garner (dangarner) said :
#22

Try hardcoding the correct address in the WSDL at the CMS end - it is in lib/service/service.wsdl. Just replace {{XMDS_LOCATION}} with your correct address.

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#23

Still the same problem

Revision history for this message
Dan Garner (dangarner) said :
#24

What does it say now in the logs?

LOG: 2014-08-25 10:17:12 (.check:3434) 0 error Could not connect to XMDS.
LOG: 2014-08-25 10:17:12 (.check:3420) 2 info Connecting to XMDS at URL: http://127.0.0.1/xibo/xmds.php Attempt Number: 2

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#25

Sorry but there are no changes in the logfile
Just the same:

LOG: 2014-08-25 10:17:12 (.check:3434) 0 error Could not connect to XMDS.
LOG: 2014-08-25 10:17:12 (.check:3420) 2 info Connecting to XMDS at URL: http://127.0.0.1/xibo/xmds.php Attempt Number: 2

Revision history for this message
Dan Garner (dangarner) said :
#26

Sorry, that has progressed beyond my knowledge - you may have to try on 12.02

Revision history for this message
Alex Harrington (alexharrington) said :
#27

Without being able to test against a known good CMS I don't see how we can
progress this I'm afraid

Revision history for this message
Moritz Kirchner (kirchner-k) said :
#28

Thanks for your help all problems are solved i have set of a new ubuntu 10.04 server and installed it manualy.