Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

adding scheduled task to ml-config causes lexval error on bootstrap #497

Closed
peetkes opened this issue Jul 17, 2015 · 4 comments
Closed

adding scheduled task to ml-config causes lexval error on bootstrap #497

peetkes opened this issue Jul 17, 2015 · 4 comments
Labels
Milestone

Comments

@peetkes
Copy link
Contributor

peetkes commented Jul 17, 2015

I have a configuration with multiple hosts, divided over two groups.
I added a scheduled task to the server section in a specific group in ml-config and added a host-name where the task should run. When bootstrapping I get the following error:
ml local bootstrap
Bootstrapping your project into MarkLogic 8 on ln-vm4-ml2...
ERROR: XDMP-LEXVAL: gr:host-id("") -- Invalid lexical value ""
See MarkLogic Server error log for more details.
ERROR: ... Bootstrap FAILED

If I change the way the host-name is handled in the function setup:create-scheduled-task
from this:
$task/gr:task-host/xdmp:host(.),
to this:
xdmp:host($task/gr:task-host/@name),
and change the way it is configured in ml-config from element content to attribute name, bootstrap will work...

@grtjn
Copy link
Contributor

grtjn commented Jul 17, 2015

This only happens with schedules assigned to a particular host (with a non-empty task-host element). We should switch to putting host-name in a name attrib, like with databases, users, etc. We should change the code to:

$task/gr:task-host/@name/xdmp:host(.)

Do this for all schedule types, check validation, and also have a look at capture..

@peetkes
Copy link
Contributor Author

peetkes commented Jul 17, 2015

But when I redo the bootstrap (when it has scheduled tasks) it will fail with this error:
ml local bootstrap
Bootstrapping your project into MarkLogic 8 on ln-vm4-ml2...
ERROR: ADMIN-DEPENDINGSCHEDULEDTASKS: (err:FOER0000) There are depend tasks on the host or the associated group. Delete those first before moving host 15799318952291192588 to a new group.
See MarkLogic Server error log for more details.
ERROR: ... Bootstrap FAILED

So probably something has to be changed on the validation sde as well

@grtjn grtjn added the bug label Sep 17, 2015
@grtjn grtjn added this to the 1.7.3 milestone Sep 17, 2015
@grtjn grtjn self-assigned this Sep 17, 2015
@grtjn
Copy link
Contributor

grtjn commented Sep 17, 2015

Related to #500

grtjn added a commit to grtjn/roxy that referenced this issue Sep 22, 2015
grtjn added a commit to grtjn/roxy that referenced this issue Jan 29, 2016
dmcassel added a commit that referenced this issue Mar 10, 2016
@grtjn
Copy link
Contributor

grtjn commented Mar 11, 2016

Fixed in dev..

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants