Avast WEBforum

Business Products => Avast Business => Avast Business for Linux => Topic started by: wchii on July 16, 2004, 05:00:56 PM

Title: avastvpsupdate
Post by: wchii on July 16, 2004, 05:00:56 PM
 ::)Why am I getting this error:
avastvpsreload: can't move new VPS file to '/var/lib/avast4/' directory - Invalid cross-device link

Thanks, Bill
Title: Re:avastvpsupdate
Post by: Vlk on July 16, 2004, 05:19:53 PM
1. What linux distribution are you using?
2. Are you running avastvpsupdate.pl as root?
3. Can you check the file /var/lib/avast4/400.vps. Is it OK?
Title: Re:avastvpsupdate
Post by: wchii on July 16, 2004, 07:22:54 PM
Running Fedora Core1 w/Kernel 2.4.22-1.2174.npt1
Logged in as root
The vps file seems to be OK.
Thanks
Title: Re:avastvpsupdate
Post by: Vlk on July 16, 2004, 08:41:56 PM
"Invalid cross-device link" is what the system call rename is returning.

It is trying to move the downloaded temp file from /tmp to /var/lib/avast4. Do you have a clue about what "cross-device" can mean in this case?
Title: Re:avastvpsupdate
Post by: thailon on July 19, 2004, 11:37:34 PM
i have the same problem.  if i move this file manualy, everything is OK.
-system MDK 9.2
-i run this script as a root
- what does it mean : check ?

"Invalid cross-device link" is what the system call rename is returning.

It is trying to move the downloaded temp file from /tmp to /var/lib/avast4. Do you have a clue about what "cross-device" can mean in this case?
Title: Re:avastvpsupdate
Post by: Vlk on July 20, 2004, 08:01:44 AM
I think it's similar to this incident:
http://archives.neohapsis.com/archives/postfix/2002-05/1044.html

It's caused by the fact the we're using the "rename" function to move the new vps file from the temp directory but this does not work if the filesystems in /tmp and /var/lib/avast4 are different.

I guess we'll change it to copy instead...

Thanks for the input,
Vlk
Title: Re:avastvpsupdate
Post by: Vlk on July 22, 2004, 02:55:50 PM
Hi, could you please try the following update:
http://www2.asw.cz/~vlk/avastvpsreload-1.0.7b-i386.tar.gz

Just unpack the file and replace the avastvpsreload binary in (I believe it's in /usr/bin ).

Thanks
Vlk
Title: Re:avastvpsupdate
Post by: jwf on August 02, 2004, 01:42:36 PM
I was having the same problem... the new binary avastvpsreload did the trick... thanks.