Default Layout Not Updating

Asked by Graham Miller

Hello

Exactly the same problem as described here: https://answers.launchpad.net/xibo/+question/115628, and looking at Bug 552853 i have amended the xmds.php file as needed however the default layout still does not update.

Kind of stumped, 4 installs over the summer all working fine and then bang yesterday as the school went back the default layouts would not update and when i changed the default layout to a different layout the xibo splash screen was displayed. I have just recently added scheduled layouts for over lunch time where as previously i did not have any, i guess this is what caused the problem.

Does the Xibo server need to be restarted after commenting out the lines in the bug fix?
Server 1.0.6 and 1.0.7 clients.

Any other ideas or help?

Thanks
Graham

Question information

Language:
English Edit question
Status:
Answered
For:
Xibo Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Alex Harrington (alexharrington) said :
#1

I expect you're hitting this bug:
https://bugs.launchpad.net/xibo/+bug/613209

There will be a 1.0.8 client out shortly to resolve this for people on
1.0 series. 1.2 series will be released without that problem.

In the mean time, you can stop the client, clear the local library and
then delete the cacheManager.xml file from C:\Documents and
Settings\Your User\Application Data\Xibo\2.0.0.0 or equivalent, then
restart the client.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#2

Thanks Alex, i will try the workaround fix and then wait for new client 1.0.8.

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#3

Hello Alex

Update - i stopped the client, cleared out the library folder, deleted the cachemanager.xml file then restarted the client, the client then downloaded the scheduled layout to play over lunchtime. The scheduled layout has now stopped as per the schedule and the xibo splash screen is being displayed instead of the default layout.
Checked the local library folder and apart from the scheduled content no other content has been downloaded. The cachemanager.xml file is back in the xibo\2.0.0.0 folder.
No other layout is scheduled until lunchtime tomorrow.
Any thoughts?
Graham

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

Clear the thing down again now and see what is downloaded. Watch the library folder while the client is running. Are any files downloaded over and over?

Graham Miller <email address hidden> wrote:

Question #121822 on Xibo changed:
https://answers.launchpad.net/xibo/+question/121822

Graham Miller posted a new comment:
Hello Alex

Update - i stopped the client, cleared out the library folder, deleted the cachemanager.xml file then restarted the client, the client then downloaded the scheduled layout to play over lunchtime. The scheduled layout has now stopped as per the schedule and the xibo splash screen is being displayed instead of the default layout.
Checked the local library folder and apart from the scheduled content no other content has been downloaded. The cachemanager.xml file is back in the xibo\2.0.0.0 folder.
No other layout is scheduled until lunchtime tomorrow.
Any thoughts?
Graham

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#5

Did as you asked, cleared down again the library folder ( closed client first) and the xml file. Restarted client, there was 3 items created \ downloaded in library folder.

1. backgrounds folder
2. 13.xlf file
3. 68.ppt

The number 3 file, the ppt file was the lunchtime scheduled layout and not the default layout - i opened it to check what it was.
The xibo splash screen is still showing.
Checked the schedule and nothing is on to play at the moment.
Defo not picking up anything else and no other files were listed or even attempted to copy down.

Graham

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

It sounds very much to me like you haven't got the patch in place correctly.

Can you check it please.

Graham Miller <email address hidden> wrote:

Question #121822 on Xibo changed:
https://answers.launchpad.net/xibo/+question/121822

Graham Miller posted a new comment:
Did as you asked, cleared down again the library folder ( closed client
first) and the xml file. Restarted client, there was 3 items created \
downloaded in library folder.

1. backgrounds folder
2. 13.xlf file
3. 68.ppt

The number 3 file, the ppt file was the lunchtime scheduled layout and not the default layout - i opened it to check what it was.
The xibo splash screen is still showing.
Checked the schedule and nothing is on to play at the moment.
Defo not picking up anything else and no other files were listed or even attempted to copy down.

Graham

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#7

Sorry Alex, being dense here what patch?

Reviewed this link you gave earlier - https://bugs.launchpad.net/xibo/+bug/613209 it recommended the delete option. Did not see a patch mentioned.

Thanks
Graham

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

The one from the original bug report you linked to.

Graham Miller <email address hidden> wrote:

Question #121822 on Xibo changed:
https://answers.launchpad.net/xibo/+question/121822

Graham Miller posted a new comment:
Sorry Alex, being dense here what patch?

Reviewed this link you gave earlier -
https://bugs.launchpad.net/xibo/+bug/613209 it recommended the delete
option. Did not see a patch mentioned.

Thanks
Graham

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#9

Alex

Got ya, think i have added it correctly. Amended the xmds.php on the server install. Heres my amended lines;

//if ($displayInfo['inc_schedule'] == 1)
//{
$SQL .= sprintf(" AND ((schedule_detail.starttime < '%s' AND schedule_detail.endtime > '%s' )", $plus4hours, $currentdate);
$SQL .= " OR (schedule_detail.starttime = '2050-12-31 00:00:00' AND schedule_detail.endtime = '2050-12-31 00:00:00' ))";
//}
//else
//{
// $SQL .= sprintf(" AND (schedule_detail.starttime < '%s' AND schedule_detail.endtime > '%s' )", $plus4hours, $currentdate);
//}
Thanks for your help with this.
Graham

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

I'll make you an amended file to upload when I'm infront of a PC as clearly its not doing what it should.

Did you install from the tar.gz file or the zip?

Alex

Graham Miller <email address hidden> wrote:

Question #121822 on Xibo changed:
https://answers.launchpad.net/xibo/+question/121822

Graham Miller posted a new comment:
Alex

Got ya, think i have added it correctly. Amended the xmds.php on the
server install. Heres my amended lines;

//if ($displayInfo['inc_schedule'] == 1)
//{
$SQL .= sprintf(" AND ((schedule_detail.starttime < '%s' AND schedule_detail.endtime > '%s' )", $plus4hours, $currentdate);
$SQL .= " OR (schedule_detail.starttime = '2050-12-31 00:00:00' AND schedule_detail.endtime = '2050-12-31 00:00:00' ))";
//}
//else
//{
// $SQL .= sprintf(" AND (schedule_detail.starttime < '%s' AND schedule_detail.endtime > '%s' )", $plus4hours, $currentdate);
//}
Thanks for your help with this.
Graham

--
You received this question notification because you are a member of Xibo
Developers, which is an answer contact for Xibo.

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#11

Hi Alex,

From the zip file.
Thanks
Graham

Revision history for this message
Alex Harrington (alexharrington) said :
#12
Revision history for this message
Dan Garner (dangarner) said :
#13

Can you check the contents of your blacklist table?

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#14

Hello Alex,

Inserted the new xmds file, same problem no default layout playing, xibo splash screen only. Cleared out local library and the cachemanager file, again only the scheduled ppt file was downloaded.

@Dan - having problems accessing the sql database using the phpmyadmin utility - access denied message for user root@localhost. will try to get into it and then access the blacklist table - im assuming this is where its at.

Graham

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#15

Forgot to add to last message - i scheduled a layout to display a couple of minutes ago and this has now been downloaded and is playing fine. Its just the default layout not displaying.

Graham

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

What if you change your default layout to a different layout
temporarily.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#17

Alex

Ok - changed the default layout to a different layout - one that i know has not been previously played on the screens. Deleted the scheduled layout from the schedule then restarted the client and got the xibo splash screen displayed and no attempt to download any content.

Graham

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

I just can't explain that then - we know that fix works as other people
are using it too without problem.

I think you're going to need to uninstall the client, and then install
the debug version in it's place and see what it's logging.

I've not used it in a long time so if it's not clear, Dan will chime in
with the location to look for the logs.

Alex

This email carries a disclaimer, a copy of which may be read at http://learning.longhill.org.uk/disclaimer

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

Dan would chime in if he could remember where the logs got written.....

It is quite easy to find out - navigate to your installation directory and
find the .exe.config file with the same prefix as the debug client
executable.

Open this file and look for the declaration of the tracelistener - this will
contain the location of the LOG files that get written.

Something to look at first - The .NET client doesnt actually write out the
return from RequiredFiles to disk - however the schedule should be written
and located alongside the cachemanager.xml file. Does the default layout get
included in this schedule.xml file?

Revision history for this message
Graham Miller (gmiller-wellingtonschool) said :
#20

Hi Dan,

OK - checked the schedule.xml file and as off right now there is the following showing in it:
 <?xml version="1.0" ?>
- <schedule>
  <layout file="10" fromdt="2050-12-31 00:00:00" todt="2050-12-31 00:00:00" scheduleid="" />
  </schedule>

The lunch time scheduled layout has just finished successfully and the screen should be displaying the default layout but its not, its got the xibo splash screen.
I will move onto installing the xibo client debug version and look for the logs.
Just for information i only have 3 files in the 2.0.0.0 folder, cachemanager, schedule and log,xml.
Graham

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

For info 1.0.8 is out. I'd try upgrading server and client and seeing if this goes away.

http://xibo.org.uk/2010/08/22/version-1-0-8-released/

Can you help with this problem?

Provide an answer of your own, or ask Graham Miller for more information if necessary.

To post a message you must log in.