Wrapper Log Error

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Wrapper Log Error

Jonathan Rowell

Hi,


I'm getting an error in the Wrapper Log on Windows (eXist as service) and it is 


INFO   | jvm 1    | 2017/01/13 18:33:44 | Error deleting dir: c:\eXist-db\webapp\WEB-INF\data\expathrepo\.expath-pkg\install-20170113-6914366615934286497.d

which is hardly surprising, since it is the unpacked xar file for my installation and it is still full of my files. In fact the directory .expath-pkg is full of the "install" directories which I have been installing ever since I switched to 3.0RC.


It looks like a recursive deletion of all the files and directories is missing or doesn't work properly. 


I'd like to trace the error before raising an issue.


Any ideas?


thanks


Jonathan




------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Wrapper Log Error

Dannes Wessels-3
I see it quite often; i’d suggest to ignore it, nothing is broken. (I think I remember it is a bug in a 3rd party library)

On 13 Jan 2017, at 18:44 , Jonathan Rowell <[hidden email]> wrote:

Any ideas?


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Wrapper Log Error

Jonathan Rowell

Hi Dannes,


If i remove a package from eXist, I'd expect all traces of it to disappear (that is except in logs saying that that has happened).

If you let me know what the third party module is, I'll try and raise an issue there. If it is fixed, I'll raise an issue concerning an update in eXist.


regards


Jonathan




From: Dannes Wessels <[hidden email]> on behalf of Dannes Wessels <[hidden email]>
Sent: Friday, January 13, 2017 6:05 PM
To: Jonathan Rowell
Cc: eXist open
Subject: Re: [Exist-open] Wrapper Log Error
 
I see it quite often; i’d suggest to ignore it, nothing is broken. (I think I remember it is a bug in a 3rd party library)

On 13 Jan 2017, at 18:44 , Jonathan Rowell <[hidden email]> wrote:

Any ideas?


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Wrapper Log Error

Dannes Wessels-3
Hi,


On 16 Jan 2017, at 15:19 , Jonathan Rowell <[hidden email]> wrote:

If i remove a package from eXist, I'd expect all traces of it to disappear (that is except in logs saying that that has happened).
If you let me know what the third party module is, I'll try and raise an issue there. If it is fixed, I'll raise an issue concerning an update in eXist.

A few things….

  • when a XAR contains (native) Javacode, deinstalling the XAR is a bit more complex for eXist (hence a restart is required)
  • the module is expath.jar (i believe) ; but I am not familiar with part of eXist-db, so I might be a bit wrong here.
  • i agree that all should be removed, but sometimes it is not possible; sometimes it is only on a specific platform, windows is a good example. 

cheers

Dannes


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Wrapper Log Error

Jonathan Rowell

Hi,


yes of course, I wasn't thinking of Java extensions - since I don't intend to have any.

I'll have a look around anyway. Thanks for the tip


Jonathan



From: Dannes Wessels <[hidden email]> on behalf of Dannes Wessels <[hidden email]>
Sent: Monday, January 16, 2017 6:23 PM
To: Jonathan Rowell
Cc: eXist open
Subject: Re: [Exist-open] Wrapper Log Error
 
Hi,


On 16 Jan 2017, at 15:19 , Jonathan Rowell <[hidden email]> wrote:

If i remove a package from eXist, I'd expect all traces of it to disappear (that is except in logs saying that that has happened).
If you let me know what the third party module is, I'll try and raise an issue there. If it is fixed, I'll raise an issue concerning an update in eXist.

A few things….

  • when a XAR contains (native) Javacode, deinstalling the XAR is a bit more complex for eXist (hence a restart is required)
  • the module is expath.jar (i believe) ; but I am not familiar with part of eXist-db, so I might be a bit wrong here.
  • i agree that all should be removed, but sometimes it is not possible; sometimes it is only on a specific platform, windows is a good example. 

cheers

Dannes


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Wrapper Log Error

Wolfgang Meier-2
In reply to this post by Jonathan Rowell
> If i remove a package from eXist, I'd expect all traces of it to disappear (that is except in logs saying that that has happened).
> If you let me know what the third party module is, I'll try and raise an issue there. If it is fixed, I'll raise an issue concerning an update in eXist.

The responsible third party library is https://github.com/fgeorges/expath-pkg-java and I’ve actually been looking into various windows issues
connected to it during the past days. The approach it uses when installing a xar is: 1) unzip the xar into a temporary directory named install-*.d,
2) if the package contents are ok: 3) rename and move the directory to the final install location, 4) if this fails, copy the directory and try to remove
the temporary one.

While I managed to improve some areas (in a fork of the package), the basic issue remains: due to the way windows is locking files, there’s always a risk of deletions to fail and
the approach described above does try to handle this gracefully.

Wolfgang
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Wrapper Log Error

Jonathan Rowell

Hi,


It seems (version 3.0RC for Windows) that when you install it automatically installs itself as a service - which is essentially a good thing.

But if you try to uninstall it doesn't stop the service, if it is still running, and that will cause files "to be locked by Windows".


If I stop the service first "net stop exist-db", and then uninstall, most if not all disappears. What seems to be left is exist-db/tools/wrapper which implies that the uninstall ran as a job under this directory so it was not possible to delete these directories. The Windows link "Uninstall eXist-db" starts c:\eXist-db\uninstall.jar in directory "c:\eXist-db". It manages even to delete itself and that probably explains why c:\eXist-db does not disappear. But it does not explain why c:\eXist-db\tools\wrapper remains.


Of course after installing it again, it does not appear under "Programs and Features" in the Control Panel. Naturally because it's not installed via an MSI package. Might be worth a thought, given that with MSI the install could be also done silently and the uninstall would do a good clean up. The tool kit, WiX, is now open source.


Jonathan





From: Wolfgang Meier <[hidden email]>
Sent: Monday, January 16, 2017 7:24 PM
To: Jonathan Rowell
Cc: Dannes Wessels; eXist open
Subject: Re: [Exist-open] Wrapper Log Error
 
> If i remove a package from eXist, I'd expect all traces of it to disappear (that is except in logs saying that that has happened).
> If you let me know what the third party module is, I'll try and raise an issue there. If it is fixed, I'll raise an issue concerning an update in eXist.

The responsible third party library is https://github.com/fgeorges/expath-pkg-java and I’ve actually been looking into various windows issues
github.com
expath-pkg-java - Implementation of the EXPath Packaging System for Java, Saxon and Calabash


connected to it during the past days. The approach it uses when installing a xar is: 1) unzip the xar into a temporary directory named install-*.d,
2) if the package contents are ok: 3) rename and move the directory to the final install location, 4) if this fails, copy the directory and try to remove
the temporary one.

While I managed to improve some areas (in a fork of the package), the basic issue remains: due to the way windows is locking files, there’s always a risk of deletions to fail and
the approach described above does try to handle this gracefully.

Wolfgang

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Exist-open mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/exist-open
Loading...