[wpkg-users] "Database Inconsistency: Package with ID x does not exist..." But it Does Exist
James Arnold
james at longhill.org.uk
Mon Nov 27 16:12:32 CET 2017
Gosh that was mega helpful, thanks for taking the time on that Dave.
Right, that's been amended as per, but still wasn't working.
However I *did* find that (with the help of an xml verifier) that my remove
tag didn't end correctly. I've changed that now, but it was checking out
that local log file that steered me right to it, so thanks again hugely for
that too!
Just so I know I understand then (sorry if this has been painful everyone!)
the .xml file for the package itself (eg msoffice.xml, chrome.xml) I can
call anything at all. What matters is, in the file itself, the
<package></package> section has the id=boris SO LONG AS in profiles.xml
I've a section under the relevant OU for <package package-id="boris" />
I *think* I'm there now. Thanks much to everyone!
J
On 27 November 2017 at 14:34, Dave Evans <dave.evans at goodness.co.uk> wrote:
> James: just to be clear
> and you may have got it working by now as others have commented, but the
> explanation may help
> you say in the title:
> ""Database Inconsistency: Package with ID x does not exist..." But it Does
> Exist"
> it doesn't exist, hence the error :-)
>
> you have defined in your profile that a package called "claroreadse7"
> should be installed
> I'm guessing that you have created a file called "claroreadse7.xml"
> in that file you have created a package definition with an id of
> "ClaroReadSE7.2.38"
>
> first of all WPKG is blind to the filename of the .xml files, you could
> have called it boris.xml and it would have worked just as well (or badly)
> WPKG reads all the contents of all the .xml files it can find, and puts
> them all together, the filenames themselves are not important.
> there are only two things which need to line up:
> * the name you called it in the profile.xml file (or a file in the
> /profiles folder)
> * and the id in a package definition
> so if you've called it "claroreadse7" in your profiles file:
> then your package needs to start:
>
> <package
> id="claroreadse7"
> name="ClaroReadSE7.2.38"
> revision="1"
> reboot="false"
> priority="10">
>
> I'm not sure if the package ID is case sensitive but I always preserve the
> case - just in case.
> the above should get your package working
>
> even better style might be this:
> <package
> id="claroreadse7"
> name="ClaroReadSE"
> revision="%version%"
> reboot="false"
> priority="10">
>
> <variable name="version" value="7.2.38" />
>
> then you just need to update the version line when there's a new version
> to deploy, and everything just works.
> the "name" is just a description, useful in reports.
>
> by default I believe WPKG should be creating a log file in SYSTEM's %temp%
> (probably c:\windows\temp) which you can inspect.
> if you find and amend this line in config.xml you can force it to create
> the log file in the root of c:\ on each system
>
> <param name='log_file_path' value='%SystemDrive%' />
>
> the file will likely be called wpkg-[HOSTNAME].log
>
> Happy wpkg-ing
>
> Dave
>
> On 27/11/2017 14:04, Paul McGrath wrote:
>
> Hi,
>
>
>
>
>
> You’ve named it ‘ <package id="ClaroReadSE7.2.38" but it is referenced
> in the error as ‘claroreadse7’
>
>
>
> Lose the .2.38 from the package id in both the package and profile xml
>
>
>
>
>
> *From:* wpkg-users [mailto:wpkg-users-bounces at lists.wpkg.org
> <wpkg-users-bounces at lists.wpkg.org>] *On Behalf Of *James Arnold
> *Sent:* 27 November 2017 13:59
> *To:* wpkg-users at lists.wpkg.org
> *Subject:* Re: [wpkg-users] "Database Inconsistency: Package with ID x
> does not exist..." But it Does Exist
>
>
>
> Thanks Ulli and Paul!
>
>
>
> Okay, I've changed those fields above, still not getting it installed
> though.
>
>
>
> Yes it's in the correct position/OU and defined in profiles.xml
>
>
>
> Same message in client's AppLog: Database inconsistency: Package with ID
> 'claroreadse7' does not exist within the package database or the local
> settings file. Please contact your system administrator!
>
>
>
> Cheers both again,
>
>
>
> J
>
>
>
> On 27 November 2017 at 13:17, James Arnold <james at longhill.org.uk> wrote:
>
> Hello everyone,
>
>
>
> First off, to whoever's reading, thanks loads for the work on wpkg! Just
> getting to grips with a system I've inherited at the moment and I've hit a
> snag. Please be gentle!
>
>
>
> Okay, client deploys all historic packages except for the new one I've
> just done. That's "claroreadse7.xml" below:
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
>
>
>
> <packages>
>
>
>
> <package
>
> id="ClaroReadSE7.2.38"
>
> name="ClaroReadSE7.2.38"
>
> revision="1"
>
> reboot="false"
>
> priority="10">
>
>
>
> <check type="file" condition="exists" path="C:\Program Files (x86)\Claro
> Software\ClaroRead SE\ClaroUp.exe" />
>
>
>
> <!-- <install cmd="%SOFTWARE%\ClaroReadSE7\claro.bat" /> -->
>
> <install cmd='msiexec.exe /qn /i "%SOFTWARE%\ClaroReadSE7\01\
> ClaroReadSE-7.2.38-auth\ClaroReadSE-engb-7.2.38-auth-X.msi"
> LICENCEKEY=xxxx-xxxx-xxxx-xxxx-xxxx /passive /norestart' />
>
> <install cmd='msiexec.exe /qn /i "%SOFTWARE%\ClaroReadSE7\01\
> ClaroReadSE-7.2.38-auth\VA25-BritishEnglish-Serena.msi" /passive
> /norestart' />
>
> <!-- <upgrade cmd="%SOFTWARE%\ClaroReadSE7\claro.bat >
> c:\clarobatupgrade.log" /> -->
>
>
>
> <remove cmd='msiexec.exe /qn /x "%SOFTWARE%\ClaroReadSE7\01\
> ClaroReadSE-7.2.38-auth\ClaroReadSE-engb-7.2.38-auth-X.msi" /passive
> /norestart' />
>
> <exit code="0"/>
>
> <exit code="2"/>
>
> </remove>
>
>
>
> </package>
>
>
>
> This doesn't install on my test client, which (in AppLog) complains of
> "Database inconsistency: Package with ID 'claroreadse7' does not exist
> within the package database or the local settings file. Please contact your
> system administrator!"
>
>
>
> But there is 100% certainly a "claroreadse7.xml" in the packages folder
> with the rest of the packages, with the same rights as all the other .xml
> files in there.
>
>
>
> Anyone see what I'm doing wrong? Thanks for any and all help! :)
>
>
>
> </packages>
>
>
>
>
>
> --
>
> *James Arnold - Network Manager*
>
> *Longhill High School*
>
> *Falmer Road*
>
> *Rottingdean*
>
> *East Sussex*
>
> *BN2 7FR*
>
>
> ---------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing listwpkg-users at lists.wpkg.orghttps://lists.wpkg.org/mailman/listinfo/wpkg-users
>
>
>
> ---------------------------------
> wpkg-users mailing list archives >> http://lists.wpkg.org/
> pipermail/wpkg-users/
> _______________________________________________
> wpkg-users mailing list
> wpkg-users at lists.wpkg.org
> https://lists.wpkg.org/mailman/listinfo/wpkg-users
>
>
--
*James Arnold - Network Manager*
*Longhill High School*
*Falmer Road*
*Rottingdean*
*East Sussex*
*BN2 7FR*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20171127/98ed3e09/attachment-0001.html>
More information about the wpkg-users
mailing list