Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Publish All timing out

 

 


glevine
User

Jul 6, 2009, 7:29 AM

Post #1 of 4 (2441 views)
Shortcut
Publish All timing out Can't Post

I have over 8,000 articles in my database and recently made small modifications to my templates. Therefore, I need to perform a Publish All operation to apply these changes to the published HTML files.

I have tried running the Publish All command from two locations. First, I tried running it in IE 7 from an unused desktop connected to an uninterrupted T1 line with a standard Ethernet cable. Second, I tried running it in a browser on an Xserve that sits next to the webserver on which Article Manager resides. In both cases, the operation timed out.

The error message I received was the following:

"The server timed out and was unable to complete publishing.
The last status message was: - Article: In Command"

I really have three questions that relate to this issue:

1. Does anyone have any ideas as to why this is failing and/or what I can do to complete a Publish All operation?

2. Does anyone know how I might be able to determine how far the operation got before the timeout occurred?

3. Would any information about the timeout (i.e., what was happening when the process stopped, why it stopped, etc.) be accessible from a log that is kept during the life of the application? If so, where might I find it?

Thanks,

Greg


Donna
Staff / Moderator


Jul 7, 2009, 12:28 PM

Post #2 of 4 (2420 views)
Shortcut
Re: [glevine] Publish All timing out [In reply to] Can't Post

Hi there,

Are you running Article Manager with a MySQL database, or the default flatfile? If you're running on flatfile, I'd strongly recommend swapping to MySQL with that many articles in your database.

As for how far the operation got before timing out -- exactly as far as the status window displays. It shows all of the files published as they're published.

One thing you can try is to publish each publish rule individually and see if they publish that way. You can do that from the "Publishing" menu.

Donna

--
support@interactivetools.com


glevine
User

Jul 7, 2009, 12:50 PM

Post #3 of 4 (2416 views)
Shortcut
Re: [Donna] Publish All timing out [In reply to] Can't Post

Donna,

Thanks for the reply.

I am running Article Manager 2.16, with the MySQL database backend.

Because of the complexity of the website, I have 2,400+ categories with the same number of publishing rules. That may be the hangup?

Due to the number of rules, it takes roughly 10 hours to fully publish the 8,000+ articles. That makes it impossible to watch the whole process and determine where the timeout occurred.

Also, given the number of publishing rules, it will take far too long to publish each rule independently. I'm curious though, is it possible to execute a Publish call for a set of publishing rules using a URL like the following?

http://www.domain.com/artman2/admin.cgi?action=publishAll&selectedRuleNumbers=1,2,3,4,5&nextAction=publishRulesList

If I can do that, then I could publish five rules at a time to break the job into pieces. Or, I can execute Publish calls for each individual publishing rule from a cron job that never times out. Those URLs would look like:

http://www.domain.com/artman2/admin.cgi?action=publishAll&selectedRuleNumbers=1&nextAction=publishRulesList

(Note: The difference in URLs is the value of the selectedRuleNumbers parameter.)

Does this sound legit?

Thanks,

Greg


Donna
Staff / Moderator


Jul 10, 2009, 2:04 PM

Post #4 of 4 (2392 views)
Shortcut
Re: [glevine] Publish All timing out [In reply to] Can't Post

Hi there,

Yep, that sounds like why it's slowing down. That's a heck of a lot of categories, and a long time to have to re-publish -- most servers won't allow a process to run that long.

I don't think you can set it to publish a few at a time, but you should be able to run each publishing rule from a cron. You would need to setup a cron job for each individual publish rule, but once it was setup, you'd have an easy way to recreate your entire site without having to republish 2400 rules individually. :)

The only part I could see being problematic would be logging in. I couldn't find a single-line way of both logging in and publishing an individual publish rule -- I can get it to log in, then do a publish all, but passing along the extra query required for the specific publish rule wouldn't go.

If you can come up with a way to do that, then you're golden. :) Here's the URL to log yourself in:

http://domain.com/artman/admin.cgi?loginUsername=artman&loginPassword=welcome&action=loginSubmit

...where "artman" is the username and "welcome" is the password. If you did this:

http://domain.com/artman/admin.cgi?loginUsername=artman&loginPassword=welcome&action=loginSubmit&nextAction=publishAll

...it would also publish everything, but only one query gets pushed through the "next action", so that's where the sticking point is. :)

Anyway, that's about the best I can come up with -- if you have a method of running an automated script that can log itself in first, you've got something that'll work there. If not, you may want to contact our consulting department -- they can probably come up with a custom script that would be able to work with the database directly to publish the individual publish rules. You can contact them at consulting@interactivetools.com

I hope this helps!

Donna

--
support@interactivetools.com