CDR Tickets

Issue Number 4726
Summary Republish Job Fails
Created 2019-11-20 17:55:40
Issue Type Improvement
Submitted By Englisch, Volker (NIH/NCI) [C]
Assigned To Kline, Bob (NIH/NCI) [C]
Status Closed
Resolved 2019-11-21 10:56:49
Resolution Fixed
Path /home/bkline/backups/jira/ocecdr/issue.252634
Description

Trying to start the "Re-publishing" menu fails with the following error message:

('42S22', "[42S22] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name 'doctype'. (207) (SQLExecDirectW)")

Comment entered 2019-11-21 10:56:49 by Kline, Bob (NIH/NCI) [C]

Typo in column name fixed (DEV2 and QA2). Please have another look.

Comment entered 2019-11-21 11:10:14 by Englisch, Volker (NIH/NCI) [C]

Let me know if you prefer for me to add a separate ticket.

When entering a document ID to republish I'm getting the following error on clicking Submit:

invalid document IDs

Comment entered 2019-11-21 11:17:25 by Kline, Bob (NIH/NCI) [C]

DEV2 or QA2?

Comment entered 2019-11-21 11:21:10 by Kline, Bob (NIH/NCI) [C]

Ah, never mind. Missing import. Fixed on both tiers. Please try again.

Comment entered 2019-11-21 11:44:01 by Englisch, Volker (NIH/NCI) [C]

It is working now but the web interface is giving a message in the status line about an error:

Republish request failed: republish(): b'<Errors><Err>Job 17619 of this publication type is still pending</Err></Errors>'

It is reporting the job just submitted as an error.

Comment entered 2019-11-21 12:12:50 by Englisch, Volker (NIH/NCI) [C]

The publishing job finished successfully but the document couldn't get pushed.  The push job failed with the following message and it would be correct because that directory does not exist:

[2019-11-21 11:49:08.549836] [Errno 2] No such file or directory: 'd:/cdr/Output/Job17619/CDR62866.xml'

Comment entered 2019-11-21 12:16:22 by Kline, Bob (NIH/NCI) [C]

That's odd! Jira just ate my comment. Anyway, here it is again. I think I've found and fixed the problem, but before I turn it back over to you I want to test it myself. Can you tell me what parameters/options you were using?

Comment entered 2019-11-21 12:21:28 by Englisch, Volker (NIH/NCI) [C]

I'm only entering a CDR-ID: 62866 to push a single document.  Everything else is left at its default value.

Comment entered 2019-11-21 12:24:06 by Englisch, Volker (NIH/NCI) [C]

That's odd! Jira just ate my comment.

It's lunch time.  Yum!!! 🙂

Comment entered 2019-11-21 12:30:47 by Kline, Bob (NIH/NCI) [C]

Well, I did fix the problem with the "job already running" error message, but for some reason the republish export job isn't writing the document to the file system. Is it perhaps as confused as I used to be, thinking the republish would just go find the previous export for the push that failed and push that? Anyway, I'll continue digging and report back (possibly after lunch).

Comment entered 2019-11-21 12:38:07 by Englisch, Volker (NIH/NCI) [C]

Is it perhaps as confused as I used to be, thinking the republish would just go find the previous export for the push that failed and push that?

That is one of the options at the bottom of the form, to push the last job that failed.  Most often, however, we want to push a document (or document type) that may not have changed in which case we're skipping the diff process that figures out if the document has changed and needs to be send to GK/Drupal.

Comment entered 2019-11-22 11:32:42 by Englisch, Volker (NIH/NCI) [C]

I was trying to run a QC publishing job and this, too, does not create any output.  It appears that the default for creating output is wrong.  We do want to create output by default.  I'm wondering if this affects the republish job not being able to find the documents to be pushed.

Comment entered 2019-11-22 11:44:18 by Kline, Bob (NIH/NCI) [C]

Yes, I just noticed that. I'm working on that and a couple of other anomalies in the CGI publishing.py script, and hope to have a correct version by the end of the day. Will keep you posted.

Comment entered 2019-11-22 11:48:16 by Englisch, Volker (NIH/NCI) [C]

OK, I hold off testing the publishing jobs for now.

Comment entered 2019-11-23 09:44:40 by Kline, Bob (NIH/NCI) [C]

Fixed on DEV2 and QA2, I think.

Comment entered 2019-12-03 15:19:28 by Englisch, Volker (NIH/NCI) [C]

I ran plenty of Re-publish jobs over the last week.  I'm marking this as verified.

Comment entered 2020-02-07 13:25:05 by Englisch, Volker (NIH/NCI) [C]

We typically don't run re-publish jobs on PROD and I don't want to run one just for testing.

I tested plenty of these jobs on the lower tiers, so I'm marking the ticket as closed.

Elapsed: 0:00:00.001680