Hi, Can some one kindly provide inputs here?

thanks,
Ram

On Mon, Nov 17, 2008 at 3:01 PM, ramanujan oops <[EMAIL PROTECTED]> wrote:

> Hi,
>
>       I think I have run into one situation here..
>
> My IPS application package installs its files under the target path
> (say) "/opt/SUNWtest/".
>
> During the application's lifetime, it creates a folder
> "/opt/SUNWtest/output" under which the output files are collected.
>
> Now, when I uninstall the package, IPS pkg client is unable to remove
> the /opt/SUNWtest/output folder, as this was never created during IPS
> installation. Please find the relevant logs below:
>
>
> Removal Phase                                167/206 Action removal
> failed for 'opt/SUNWtest/output' (pkg:/SUNWtest):
>  OSError: [Errno 17] File exists:
> '/var/pkg/lost+found/opt/SUNWtest/output-2008-11-14+17:32:27'
> pkg: An unexpected error happened during uninstallation: [Errno 17]
> File exists: '/var/pkg/lost+found/opt/SUNWtest/output-2008-11-14+17:32:27'
> The Boot Environment opensolaris failed to be updated. A snapshot was
> taken before the failed attempt and is mounted here /tmp/tmpjoxHlJ.
> Use 'beadm activate opensolaris_static:-:2008-11-14-12:02:19 and
> reboot if you wish to boot to this BE.
> Traceback (most recent call last):
>  File "/usr/bin/pkg", line 1440, in ?
>    ret = main_func()
>  File "/usr/bin/pkg", line 1408, in main_func
>    return uninstall(img, pargs)
>  File "/usr/bin/pkg", line 569, in uninstall
>    ip.execute()
>  File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py",
> line 421, in execute
>    p.execute_removal(src, dest)
>  File "/usr/lib/python2.4/vendor-packages/pkg/client/pkgplan.py",
> line 308, in execute_removal
>    src.remove(self)
>  File "/usr/lib/python2.4/vendor-packages/pkg/actions/directory.py",
> line 157, in remove
>    pkgplan.image.salvagedir(localpath)
>  File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line
> 1190, in salvagedir
>    shutil.move(os.path.normpath(os.path.join(self.root, path)), salvagedir)
>  File "/usr/lib/python2.4/shutil.py", line 190, in move
>    copytree(src, dst, symlinks=True)
>  File "/usr/lib/python2.4/shutil.py", line 111, in copytree
>    os.mkdir(dst)
> OSError: [Errno 17] File exists:
> '/var/pkg/lost+found/opt/SUNWtest/output-2008-11-14+17:32:27'
>
>
> How do I handle this situation? I will have to be writing into
> /opt/SUNWtest/output and would need the output folders saved even
> after uninstallation.
>
> Is there any mechanism which can cause pkg client to skip this removal
> attempt ?
>
>
> Appreciate your inputs here.
>
> thanks,
> Ram
>
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to