OpenVZ Forum


Home » General » Support » strange problem: moving file failes
strange problem: moving file failes [message #14650] Wed, 04 July 2007 08:37 Go to previous message
schnippo is currently offline  schnippo
Messages: 2
Registered: July 2007
Location: CH
Junior Member
Hi there

I have a gentoo openvz host and a virtual one. It was all working fine, until some strange problems appeared:

Sometimes, tomcat doesn't start properly. It failes with an IOException:
java.io.IOException: Cannot rename new file to /var/lib/tomcat-5.5/conf/tomcat-users.xml


When a manually delete tomcat-users.xml it starts up properly. But then the next problem occures:
09:55:25,145 ERROR [jsp]:250 - Servlet.service() for servlet jsp threw exception
java.io.IOException: tmpFile.renameTo(classFile) failed	at org.apache.jasper.compiler.SmapUtil$SDEInstaller.install(SmapUtil.java:246)	at [...]

Another file renaming problem..
If i delete the work directory, where this problem occures, it works for some time, but after a non reproducable time it happens again.

And i even can't use emerge anymore. It failes with:
cache.cache_errors.CacheCorruption: net-misc/openntpd-3.7_p1 is corrupt: [Errno 18] Invalid cross-device link


This error comes from the os.rename() function call.



So it seems that i have a problem with moving files... moving in shell works...

There is no failcnt in user_beancounters:

cat /proc/user_beancounters
Version: 2.5
       uid  resource           held    maxheld    barrier      limit    failcnt
      201:  kmemsize         614365    4918294   27262976   29360128          0
            lockedpages           0          0      65535      65535          0
            privvmpages        2751     129338 2147483647 2147483647          0
            shmpages              0        178 2147483647 2147483647          0
            dummy                 0          0          0          0          0
            numproc              10        150        300        300          0
            physpages          2039      54273          0 2147483647          0
            vmguarpages           0          0       6144 2147483647          0
            oomguarpages       2039      54273       6144 2147483647          0
            numtcpsock            1         51        180        180          0
            numflock              1          5        100        110          0
            numpty                1          1         16         16          0
            numsiginfo            0         53        256        256          0
            tcpsndbuf             0     248584     716800    1221600          0
            tcprcvbuf             0      97904     716800    1221600          0
            othersockbuf       4432      11760     500000     800000          0
            dgramrcvbuf           0       8360     132096     132096          0
            numothersock          3          9         80         80          0
            dcachesize        57680     232780    1048576   25165540          0
            numfile             292       2833     131072     131072          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            dummy                 0          0          0          0          0
            numiptent             4          4        128        128          0


And quota seems to be enough too..

vzquota stat 201
   resource          usage       softlimit      hardlimit    grace
  1k-blocks        1317928         5242880        5767170
     inodes          92676          400000         440000


Has anyone any idea or a hint? I'm actually a bit helpless...
 
Read Message
Read Message
Read Message
Previous Topic: No yum in CentOS template
Next Topic: Error message creating when creating VPS.
Goto Forum:
  


Current Time: Fri Oct 18 08:29:15 GMT 2024

Total time taken to generate the page: 0.05068 seconds