Unix administration - cp: cycle detected error on Solaris 10

This is Interesting: Free IT Magazines  
Home > Archive > Unix administration > November 2006 > cp: cycle detected error on Solaris 10





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author cp: cycle detected error on Solaris 10
Richard.Warden@sma.co.uk

2006-11-16, 7:29 am

Dear all,

I am trying to uninstall software and I get the following error:-

cp: cycle detected: /apps/SNL/SNL/Swiftnet50/lib/lb1

What does this "cp: cycle detected" relate to?

Thanks

Stefaan A Eeckels

2006-11-16, 7:29 am

On 16 Nov 2006 03:02:43 -0800
Richard.Warden@sma.co.uk wrote:

> I am trying to uninstall software and I get the following error:-
>
> cp: cycle detected: /apps/SNL/SNL/Swiftnet50/lib/lb1
>
> What does this "cp: cycle detected" relate to?


Is this a package you're trying to un-install?

The message comes from the cp command, not from pkgrm. IMHO it's
specific to the uninstall script of the software, and has little if
anything to do with Solaris 10.

--
Stefaan A Eeckels
--
The one thing IT really needs to outsource is the freakin' clueless
managers that don't understand that there are more possibilities than
chaos on the one hand and the reduction of alternatives to zero on the
other. -- Richard Hamilton in comp.sys.sun.hardware
Richard.Warden@sma.co.uk

2006-11-16, 7:29 am

It is indeed an application I am trying to unistall, using the
appropriate uninstall routine shipped with the app.

I think this might be something to do with the link behind this file,
in that the cp command is trying to copy the file twice. Does that
sound plausable?



On 16 Nov, 11:52, Stefaan A Eeckels <hoend...@ecc.lu> wrote:
> On 16 Nov 2006 03:02:43 -0800
>
> Richard.War...@sma.co.uk wrote:
>
>
>
> The message comes from the cp command, not from pkgrm. IMHO it's
> specific to the uninstall script of the software, and has little if
> anything to do with Solaris 10.
>
> --
> Stefaan A Eeckels
> --
> The one thing IT really needs to outsource is the freakin' clueless
> managers that don't understand that there are more possibilities than
> chaos on the one hand and the reduction of alternatives to zero on the
> other. -- Richard Hamilton in comp.sys.sun.hardware


James Carlson

2006-11-16, 7:29 am

Richard.Warden@sma.co.uk writes:
> I am trying to uninstall software and I get the following error:-
>
> cp: cycle detected: /apps/SNL/SNL/Swiftnet50/lib/lb1
>
> What does this "cp: cycle detected" relate to?


It's related to the 'cp' command. The "cycle detected" message means
that someone is doing a recursive copy ("cp -r"; perhaps as part of a
packaging script) and the cp command ended up visiting the same
directory more than once.

I don't _think_ that should happen unless the file system is corrupt
-- e.g., by creating a hard link to a directory. (But I'm not
certain.)

--
James Carlson, KISS Network <james.d.carlson@sun.com>
Sun Microsystems / 1 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
Dave Hinz

2006-11-16, 7:29 am

On 16 Nov 2006 04:52:58 -0800, Richard.Warden@sma.co.uk <Richard.Warden@sma.co.uk> wrote:
> It is indeed an application I am trying to unistall, using the
> appropriate uninstall routine shipped with the app.


1. Don't top-post. It makes us have to scroll down to see what the heck
you're answering.

2. If you'd give the actual command you used, that would help.

> I think this might be something to do with the link behind this file,
> in that the cp command is trying to copy the file twice. Does that
> sound plausable?


Hard to say. Need more info. What does the vendor say?

Casper H.S. Dik

2006-11-16, 1:17 pm

James Carlson <james.d.carlson@sun.com> writes:

>I don't _think_ that should happen unless the file system is corrupt
>-- e.g., by creating a hard link to a directory. (But I'm not
>certain.)



Nope:

mkdir a
ln -s . a/foo
cp -r a b
cp: cycle detected: a/foo

cp follows symlinks.

use cp -rH

Casper
Bo Yang

2006-11-17, 1:25 am

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Casper H.S. Dik :
> James Carlson <james.d.carlson@sun.com> writes:
>
>
>
> Nope:
>
> mkdir a
> ln -s . a/foo
> cp -r a b
> cp: cycle detected: a/foo

I do this in gentoo Linux, It is ok!

mkdir a
ln -s . a/foo
cd a
ls -l
lxwrxwrxwr ......... foo -> .
cd foo
pwd
a/foo
ls
foo
cd foo
pwd
a/foo/foo
....
It is such a thing!
>
> cp follows symlinks.
>
> use cp -rH
>
> Casper


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFXSn67tZp58UCwyMRAs4gAJ4gqh3IRhJQ
moasFCkdqhQAJly3LACg0gdI
HcXV36guD/SzLm4MU/48q+I=
=wRFv
-----END PGP SIGNATURE-----
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com