15

I'm getting this error when I upload my application to linux. This is working fine on my local windows system but gives me error on linux server. When I search regarding this then I found this is sqLite related issue. If this is sqLite issue then how can I change this to MySQL.

Please help me.

NoNaMe
  • 6,020
  • 30
  • 82
  • 110
Lakhwinder Singh
  • 5,536
  • 5
  • 27
  • 52

6 Answers6

40

Delete the /tmp/debug_kit.sqlite

S.Galarneau
  • 2,194
  • 1
  • 24
  • 26
6

Delete the tmp folder

Delete the /tmp/*

if you are getting further permission issue the set 777 permission to cakephp folder

chmod -R 777 bookmarker

4

Delete the /tmp/* directory. Hope it should be solved.

Faisal
  • 4,591
  • 3
  • 40
  • 49
1

I just had the samme issue on my machine with OSX 10.11 w/ MAMP (MySQL + Apache 2)

It helped to clear the tmp/ directory within the cake3 installation - the problem persisted throughout different databases, so I figured it must have been an issue with local files rather than the database.

Spriz
  • 457
  • 2
  • 9
0

In the Laravel SQlite Context

I got this error too. My stack is Laravel with SQlite database and Ubuntu as OS. In my case i tried to edit a column with the DBBrowser for Sqlite. But the changes domnt affected and i start to migrate again. Afterwards i got this error

SQLSTATE[HY000]: General error: 11 database disk image is malformed (SQL: create table "migrations" ("id" integer not null primary key autoincrement, "migration" varchar not null, "batch" integer not null))

I remove the database.sqlite with rm pathToDatabase/database.sqlite. After that I was able to migrate the data again.

Maik Lowrey
  • 15,957
  • 6
  • 40
  • 79
-2

This error may be caused by a hardware, file system or Operating System fault causing corruption to the Disk Safe file. Disk Safe viability, in part, relies on the stability of the underlying hardware and Operating System of the host storage device.

The safest solution is to create a new Disk Safe as soon as Server Backup reports that the database disk image is malformed. In some situations, the Disk Safe may still be usable for restoring recovery points that were created before the Disk Safe reported a corruption. However, we have no way to determine the extent of the corruption or if the workaround mentioned below will be able to repair the Disk Safe. In addition, we do not expect that a corrupt Disk Safe will be successful in a bare metal restore.

You may attempt to repair the Disk Safe by running a Disk Safe Verification (DSV) task (introduced in Server Backup v5.2.0) against the Disk Safe with the malformed image. The DSV will check the most recent recovery point to ensure all blocks are accounted for. If the disk safe fails to verify, a repair attempt will be made during the next replication task which will attempt to reconcile any missing blocks from the recovery point.

Ataboy Josef
  • 2,087
  • 3
  • 22
  • 27
  • 1
    this answer is not correct. even if this would be a solution it is way over the top. Like building a new house, when a window broke. – alexdd55 Mar 02 '16 at 12:19