-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Joex fails to start: SQL processing failed #2661
Comments
Hi @daviddavo can you perhaps run this sql and show me the results: -- Ident(all-page-count-tracker), Waiting, Scheduled, Running, Stuck
SELECT job.jid, job.task, job.group_, job.args, job.subject, job.submitted, job.submitter, job.priority, job.state, job.retries, job.progress, job.tracker, job.worker, job.started, job.finished
FROM job
WHERE (job.tracker = 'all-page-count-tracker' AND job.state IN ('Waiting' , 'Scheduled' , 'Running' , 'Stuck'))
(this is taken from your log output, replacing the |
I get no results:
|
I tried changing the query a bit: -- Ident(all-page-count-tracker), Waiting, Scheduled, Running, Stuck
SELECT job.jid, job.task, job.group_, job.args, job.subject, job.submitted, job.submitter, job.priority, job.state, job.retries, job.progress, job.tracker, job.worker, job.started, job.finished
FROM job
WHERE (job.state != 'success')
It seems that jobs have the status with lowercase letters instead of uppercase |
Can you try removing one of the |
How can I export de original file first? It was directly sent to docspell from the scanner. And what command should I use to delete it? |
Figured it out: DELETE
FROM job
WHERE (job.jid = 'HmifruTDUbk-ZT9eLaQmVWi-d37ayV24UJZ-moy6qV2ARdc')
-- DELETE 1 New state:
It seems to be working now, thanks! But I don't know what might have caused the problem. Perhaps the fact that I have multiple joex instances under a single url? |
Hey, sorry for the late reply. Yes, that is the command I meant. This job is not about processing files, so you don't need to save it somewhere first. And yes, the question is why it was inserted twice. I think it is due to the two instances starting up at the same time, there seems to be no guarding here (all just a guess, haven't had the time yet to really take a look). Both entries have been inserted only a fraction of a second apart. I'll create another issue to take a deeper look |
The rest server works fine, but I can't run joex because I get the following error:
The rest server is also on the same version (v0.41.0). I've never used the nightly, so this is not a duplicate of #1642
The text was updated successfully, but these errors were encountered: