Opened by another process
Monday, 17 November 2014 · 7 messages · last reply 18 Nov 2014
PS
Paul Swennenhuis17 Nov 2014 22:44 #
Why would I get a bxerr:BXDB0007 error "Database 'profiles' cannot be updated, as it is opened by another process"
when executing these commands from a BaseX client:
open profiles;
xquery insert node <profile>abc</profile> into /profilesWhere "profiles" is an existing database, and /profiles an existing root element, and I am quite positive that the database is NOT being used in another process?
When I issue these commands on localhost it is working fine.
Paul
FE
Fabrice Etanchaud17 Nov 2014 22:51 #
Hi Paul,
Is there any basexhttp instance that could have opened the db ?
Best regards,
Fabrice
Questel/Orbit
-----Message d'origine-----
Quoted text · Paul Swennenhuis · 11 lines
De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de Paul Swennenhuis Envoyé : lundi 17 novembre 2014 22:44 À : basex-talk at mailman.uni-konstanz.de Objet : [basex-talk] Opened by another process Why would I get a bxerr:BXDB0007 error "Database 'profiles' cannot be updated, as it is opened by another process" when executing these commands from a BaseX client: open profiles; xquery insert node <profile>abc</profile> into /profiles Where "profiles" is an existing database, and /profiles an existing root element, and I am quite positive that the database is NOT being used in another process? When I issue these commands on localhost it is working fine. Paul
PS
Paul Swennenhuis17 Nov 2014 22:58 #
Hi Fabrice,
How would I know?
A thought that just crossed my mind: the files of the database are not owned by root or tomcat.
Could that be an issue?
(I'm not very familiar with unix, so I don't know exactly how ownership of a file effects processes).
Paul
Quoted text · Fabrice Etanchaud · 24 lines
> Hi Paul, > Is there any basexhttp instance that could have opened the db ? > > Best regards, > Fabrice > Questel/Orbit > > -----Message d'origine----- > De : basex-talk-bounces at mailman.uni-konstanz.de [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de Paul Swennenhuis > Envoyé : lundi 17 novembre 2014 22:44 > À : basex-talk at mailman.uni-konstanz.de > Objet : [basex-talk] Opened by another process > > Why would I get a bxerr:BXDB0007 error "Database 'profiles' cannot be updated, as it is opened by another process" > when executing these commands from a BaseX client: > > open profiles; > xquery insert node <profile>abc</profile> into /profiles > > Where "profiles" is an existing database, and /profiles an existing root element, and I am quite positive that the database is NOT being used in another process? > > When I issue these commands on localhost it is working fine. > > Paul
PS
Paul Swennenhuis17 Nov 2014 23:08 #
Ah, that did the trick!
I changed ownership to tomcat:tomcat and now the error has disappeared.
Thanks very much for the hint Paul :-)
Paul
Quoted text · Paul Swennenhuis · 41 lines
> Hi Fabrice, > > How would I know? > > A thought that just crossed my mind: the files of the database are not > owned by root or tomcat. > Could that be an issue? > (I'm not very familiar with unix, so I don't know exactly how > ownership of a file effects processes). > > Paul >> Hi Paul, >> Is there any basexhttp instance that could have opened the db ? >> >> Best regards, >> Fabrice >> Questel/Orbit >> >> -----Message d'origine----- >> De : basex-talk-bounces at mailman.uni-konstanz.de >> [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de >> Paul Swennenhuis >> Envoyé : lundi 17 novembre 2014 22:44 >> À : basex-talk at mailman.uni-konstanz.de >> Objet : [basex-talk] Opened by another process >> >> Why would I get a bxerr:BXDB0007 error "Database 'profiles' cannot be >> updated, as it is opened by another process" >> when executing these commands from a BaseX client: >> >> open profiles; >> xquery insert node <profile>abc</profile> into /profiles >> >> Where "profiles" is an existing database, and /profiles an existing >> root element, and I am quite positive that the database is NOT being >> used in another process? >> >> When I issue these commands on localhost it is working fine. >> >> Paul >
CG
Christian Grün17 Nov 2014 23:51 #
Quoted text · Paul Swennenhuis · 3 lines
> Ah, that did the trick! > I changed ownership to tomcat:tomcat and now the error has disappeared. > Thanks very much for the hint Paul :-)
Thanks, too ;)
Christian
Quoted text · Paul Swennenhuis · 47 lines
> > Paul > >> Hi Fabrice, >> >> How would I know? >> >> A thought that just crossed my mind: the files of the database are not >> owned by root or tomcat. >> Could that be an issue? >> (I'm not very familiar with unix, so I don't know exactly how ownership of >> a file effects processes). >> >> Paul >>> >>> Hi Paul, >>> Is there any basexhttp instance that could have opened the db ? >>> >>> Best regards, >>> Fabrice >>> Questel/Orbit >>> >>> -----Message d'origine----- >>> De : basex-talk-bounces at mailman.uni-konstanz.de >>> [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de Paul >>> Swennenhuis >>> Envoyé : lundi 17 novembre 2014 22:44 >>> À : basex-talk at mailman.uni-konstanz.de >>> Objet : [basex-talk] Opened by another process >>> >>> Why would I get a bxerr:BXDB0007 error "Database 'profiles' cannot be >>> updated, as it is opened by another process" >>> when executing these commands from a BaseX client: >>> >>> open profiles; >>> xquery insert node <profile>abc</profile> into /profiles >>> >>> Where "profiles" is an existing database, and /profiles an existing root >>> element, and I am quite positive that the database is NOT being used in >>> another process? >>> >>> When I issue these commands on localhost it is working fine. >>> >>> Paul >> >> >
MG
Maximilian Gärber18 Nov 2014 11:31 #
wow, this has to be nicest tech list on the planet....
users thank themselves, receive thanks from the owners ;-)
2014-11-17 23:51 GMT+01:00 Christian Grün <christian.gruen at gmail.com>:
Quoted text · Christian Grün · 55 lines
>> Ah, that did the trick! >> I changed ownership to tomcat:tomcat and now the error has disappeared. >> Thanks very much for the hint Paul :-) > > Thanks, too ;) > Christian > > >> >> Paul >> >>> Hi Fabrice, >>> >>> How would I know? >>> >>> A thought that just crossed my mind: the files of the database are not >>> owned by root or tomcat. >>> Could that be an issue? >>> (I'm not very familiar with unix, so I don't know exactly how ownership of >>> a file effects processes). >>> >>> Paul >>>> >>>> Hi Paul, >>>> Is there any basexhttp instance that could have opened the db ? >>>> >>>> Best regards, >>>> Fabrice >>>> Questel/Orbit >>>> >>>> -----Message d'origine----- >>>> De : basex-talk-bounces at mailman.uni-konstanz.de >>>> [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de Paul >>>> Swennenhuis >>>> Envoyé : lundi 17 novembre 2014 22:44 >>>> À : basex-talk at mailman.uni-konstanz.de >>>> Objet : [basex-talk] Opened by another process >>>> >>>> Why would I get a bxerr:BXDB0007 error "Database 'profiles' cannot be >>>> updated, as it is opened by another process" >>>> when executing these commands from a BaseX client: >>>> >>>> open profiles; >>>> xquery insert node <profile>abc</profile> into /profiles >>>> >>>> Where "profiles" is an existing database, and /profiles an existing root >>>> element, and I am quite positive that the database is NOT being used in >>>> another process? >>>> >>>> When I issue these commands on localhost it is working fine. >>>> >>>> Paul >>> >>> >>
IL
Imsieke, Gerrit, le-tex18 Nov 2014 11:39 #
Quoted text · Maximilian Gärber · 4 lines
On 18.11.2014 11:31, Maximilian Gärber wrote: > wow, this has to be nicest tech list on the planet.... > > users thank themselves, receive thanks from the owners ;-)
But there are also nasty subscribers such as myself who pedantically insist that said users thank each other (rather than themselves, reflexively). So curb your enthusiasm, Max!
Gerrit
Quoted text · Maximilian Gärber · 58 lines
> > > 2014-11-17 23:51 GMT+01:00 Christian Grün <christian.gruen at gmail.com>: >>> Ah, that did the trick! >>> I changed ownership to tomcat:tomcat and now the error has disappeared. >>> Thanks very much for the hint Paul :-) >> >> Thanks, too ;) >> Christian >> >> >>> >>> Paul >>> >>>> Hi Fabrice, >>>> >>>> How would I know? >>>> >>>> A thought that just crossed my mind: the files of the database are not >>>> owned by root or tomcat. >>>> Could that be an issue? >>>> (I'm not very familiar with unix, so I don't know exactly how ownership of >>>> a file effects processes). >>>> >>>> Paul >>>>> >>>>> Hi Paul, >>>>> Is there any basexhttp instance that could have opened the db ? >>>>> >>>>> Best regards, >>>>> Fabrice >>>>> Questel/Orbit >>>>> >>>>> -----Message d'origine----- >>>>> De : basex-talk-bounces at mailman.uni-konstanz.de >>>>> [mailto:basex-talk-bounces at mailman.uni-konstanz.de] De la part de Paul >>>>> Swennenhuis >>>>> Envoyé : lundi 17 novembre 2014 22:44 >>>>> À : basex-talk at mailman.uni-konstanz.de >>>>> Objet : [basex-talk] Opened by another process >>>>> >>>>> Why would I get a bxerr:BXDB0007 error "Database 'profiles' cannot be >>>>> updated, as it is opened by another process" >>>>> when executing these commands from a BaseX client: >>>>> >>>>> open profiles; >>>>> xquery insert node <profile>abc</profile> into /profiles >>>>> >>>>> Where "profiles" is an existing database, and /profiles an existing root >>>>> element, and I am quite positive that the database is NOT being used in >>>>> another process? >>>>> >>>>> When I issue these commands on localhost it is working fine. >>>>> >>>>> Paul >>>> >>>> >>>
--
Gerrit Imsieke
Geschäftsführer / Managing Director
le-tex publishing services GmbH
Weissenfelser Str. 84, 04229 Leipzig, Germany
Phone +49 341 355356 110, Fax +49 341 355356 510
gerrit.imsieke at le-tex.de, http://www.le-tex.de
Registergericht / Commercial Register: Amtsgericht Leipzig
Registernummer / Registration Number: HRB 24930
Geschäftsführer: Gerrit Imsieke, Svea Jelonek,
Thomas Schmidt, Dr. Reinhard Vöckler
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery