Niel,

I would also suggest that you upgrade your MarkLogic installation to the
latest version of the server (4.0-3).  I recall that there were issues
similar to those that you describe below that were fixed in 4.0-2.

Cheers,
Mark

> -----Original Message-----
> From: [email protected] [mailto:general-
> [email protected]] On Behalf Of Neil Bradley
> Sent: Monday, February 09, 2009 5:44 PM
> To: 'General Mark Logic Developer Discussion'
> Subject: RE: [MarkLogic Dev General] Cannot delete App Server!
> 
> Mike,
> 
> I am using 4.0-1 on XP.
> 
> I am indeed using the admin interface, so there is no code to show
you.
> 
> To be honest, I only said that I deleted the database because I had
been
> deleting some other databases, but had not intended to delete that
one. I
> just assumed that I deleted it by mistake. Even at the time, I thought
it
> was strange that I would accidentally delete it. So now I am pretty
> convinced that I didn't delete it at all, and that it vanished along
with
> one of the other database that I did delete!
> 
> So the question that then arises is how my database went missing!
> 
> The only clue I have is that this activity followed my attempts to
create
> other databases and app servers from my own code. I had a problem when
I
> was
> allowed to create an app server with the same name (but different port
> address) as an existing app server, and was then unable to use it,
getting
> errors from MarkLogic, so I deleted it and the database it was
connected
> to.
> I suspect the other disappearing database was a side-effect of that
other
> problem?
> 
> Neil.
> 
> 
> 
> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]] On Behalf Of Michael
> Blakeley
> Sent: 09 February 2009 17:33
> To: General Mark Logic Developer Discussion
> Subject: Re: [MarkLogic Dev General] Cannot delete App Server!
> 
> Neil,
> 
> It sounds like you're using the admin API to do all of this? It's odd
> that you were able to delete the database at all. When I try something
> similar, I get an error: ADMIN-DATABASEINUSE.
> 
> import module namespace admin = "http://marklogic.com/xdmp/admin";
>   at "/MarkLogic/admin.xqy";
> 
> let $config := admin:get-configuration()
> let $config := admin:database-delete(
>    $config, admin:database-get-id($config, 'test'))
> return $config
> =>
> [0.9-ml] ADMIN-DATABASEINUSE: The following http-servers still refer
to
> this database: test.
> 
> Which server release and OS are you using? Can you show us the code
> you're using to delete the database, and to delete the orphaned app
> server?
> 
> -- Mike
> 
> On 2009-02-09 04:59, Neil Bradley wrote:
> > Hi,
> >
> >
> >
> > During experimenting with MarkLogic 4.0, I created a database,
created
> an
> > HTTP server that connected to it, and later deleted the database. I
then
> > tried to delete the app server, but could not because I get the
> following
> > error message as soon as I try to select it in order to delete it.
> >
> >
> >
> >
> > 500 Internal Server Error
> >
> >
> > ADMIN-NOSUCHDATABASE: No such database 12654575518838442059
> >
> > in /MarkLogic/admin-private.xqy, on line 386,
> >
> >
> >
> >
> >
> > I realise that ideally I should have deleted the database before the
app
> > server. But surely the admin system should cater for this scenario?
> >
> >
> >
> > And what can I do now to get around this problem, so that I can
delete
> the
> > redundant app server?
> >
> >
> >
> > Neil.
> >
> >
> >
> >
> >
> >
> >
> >
> >
------------------------------------------------------------------------
> >
> > _______________________________________________
> > General mailing list
> > [email protected]
> > http://xqzone.com/mailman/listinfo/general
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
> 
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to