Announcement

Collapse
No announcement yet.

DatabaseError: database disk image is malformed

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DatabaseError: database disk image is malformed

    Hello!
    I have some problems with my server, could you please explain me how can I fix it?
    Or please tell me what is wrong with server/kernel?

    OS - CloudLinux Server release 5.7
    Kernel - 2.6.18-338.5.1.el5.lve0.8.25xen

    Errors (at the /var/log/messages):

    Oct 19 14:41:19 server-name lvestats-server[4852]: Traceback (most recent call last):
    Oct 19 14:41:19 server-name lvestats-server[4852]: File "/usr/sbin/lvestats-server", line 352, in run
    Oct 19 14:41:19 server-name lvestats-server[4852]: self.refresh()
    Oct 19 14:41:19 server-name lvestats-server[4852]: File "/usr/sbin/lvestats-server", line 405, in refresh
    Oct 19 14:41:19 server-name lvestats-server[4852]: self.saveToDB();
    Oct 19 14:41:19 server-name lvestats-server[4852]: File "/usr/sbin/lvestats-server", line 377, in saveToDB
    Oct 19 14:41:19 server-name lvestats-server[4852]: \%s), (str(now), conf[SERVER_ID]))
    Oct 19 14:41:19 server-name lvestats-server[4852]: File "/usr/lib64/python2.4/site-packages/sqlite/main.py", line 255, in execute
    Oct 19 14:41:19 server-name lvestats-server[4852]: self.rs = self.con.db.execute(SQL % parms)
    Oct 19 14:41:19 server-name lvestats-server[4852]: DatabaseError: database disk image is malformed

  • #2
    do: rm /var/lve/lveinfo.db
    service restart lvestats

    Comment


    • #3
      > Igor Seletskiy wrote:
      > service restart lvestats

      But can you explain me, what this error means? :?:
      Because after that I have another error:

      Oct 19 16:10:46 server-name lvestats-server[911963]: _sqlite.DatabaseError: no such table: last_run

      Comment


      • #4
        The errors are related to sqlite db for lve stats being corrupted.

        Strange that you are getting. Try yum update on your server, sounds like you are running old version of lvestats

        Comment


        • #5
          > Igor Seletskiy wrote:
          > The errors are related to sqlite db for lve stats being corrupted.
          >
          > Strange that you are getting. Try yum update on your server, sounds like you are running old version of lvestats

          Yeah, thats what I was thinking. Must be an old version

          Comment


          • #6
            Yeah, thats what I was thinking. Must be an old version[/quote]

            What version are you using? I think that may be my problem as well.

            Comment

            Working...
            X