corruption

Programmatically Repair SQLite Database

五迷三道 提交于 2019-12-02 04:55:37
I have a need to try and repair a SQLite database from a .NET program if the database file gets corrupted. I have found several sites such as Fix SQLite and in the FAQ it describes that you can: Depending how badly your database is corrupted, you may be able to recover some of the data by using the CLI to dump the schema and contents to a file and then recreate. Does anyone know of a way to repair a SQLite database programmatically in .NET? Jeff You are overlooking one important word: you can 'recover some data', this is not a repair! If there is a sitatuation where a corrupted database could

check for bad sectors on hard disk

孤街醉人 提交于 2019-12-02 03:17:22
Recently after a couple of power outages, my computer has gotten quite messed up (BSODs every now and then, entire OS behaves really strange). Now I have a program that ran perfectly fine before my computer got messed up. This program just basically creates a file using CreateFile and writes to it using WriteFile . This program also has other stuff doing their thing based on this file. I noticed that the entire program acted strangely as well. My debugging results: I noticed that after CreateFile , the file is created where it should be (checked using Explorer and command-line). WriteFile did

SQLite Database Copy Appears Corrupted When Generated by Device and not Emulator

醉酒当歌 提交于 2019-12-01 23:56:42
First I want to say thanks to everyone that reads this. Stackoverflow is an amazing site and you guys help me out with answers everyday in the form of questions already submitted. You all rock! My problem: I'm working on a database app that I'd like to back up the database at certian points so I can save the data I've collected in database over time, during development. So to save the database to accessible memory I've followed this page: How can I pull databases off my android onto my desktop? ..and the above code is working great in the emulator (I can use DDMS to pull the copy of the

Corrupt files when creating HDF5 files without closing them (h5py)

末鹿安然 提交于 2019-12-01 19:31:55
I am using h5py to store experiment data in an HDF5 container. In an interactive session I open the file using: measurement_data = h5py.File('example.hdf5', 'a') Then I write data to the file using some self-written functions (can be many GB of data from a couple of days experiment). At the end of the experiment I usually would close the file using measurement_data.close() Unfortunately, from time to time it happens, that the interactive session ends without me explicitly closing the file (accidentally killing the session, power outage, crash of OS due to some other software). This always

Image corruption on upload to s3, production only. (carrierwave, engineyard)

落爺英雄遲暮 提交于 2019-12-01 18:29:18
I am using carrierwave to upload images to amazon s3. This works great on development, but not when I push it to my server (engineyard cloud trial). The process works fine, no errors are thrown, and a link is given back. However, the actual image is corrupted, somehow. Here's one, for example: https://s3.amazonaws.com/ZenBucket/uploads/goal/photo/30/guinness-toucan.jpg Can anyone tell me how it's being corrupted, or what could be doing it? Edit: The first image upload attempt after deploying always seems to fail 500, but the error doesn't show in the log. Not sure if that's relevent. Edit2:

Git corrupted repo: how to pick a git object from a clean repository

家住魔仙堡 提交于 2019-12-01 17:42:05
This is one of the numerous questions regarding a Git repo that is corrupted, precisely a loose object that went wrong: $ git gc Counting objects: 3299, done. error: inflate: data stream error (unknown compression method) error: unable to unpack 831a5d31af4a0af2f5a367689bee27a44efc22c9 header Delta compression using up to 6 threads. Compressing objects: 100% (3283/3283), done. error: inflate: data stream error (unknown compression method) fatal: loose object 831a5d31af4a0af2f5a367689bee27a44efc22c9 (stored in .git/objects/83/1a5d31af4a0af2f5a367689bee27a44efc22c9) is corrupt error: failed to

Git corrupted repo: how to pick a git object from a clean repository

爷,独闯天下 提交于 2019-12-01 16:39:53
问题 This is one of the numerous questions regarding a Git repo that is corrupted, precisely a loose object that went wrong: $ git gc Counting objects: 3299, done. error: inflate: data stream error (unknown compression method) error: unable to unpack 831a5d31af4a0af2f5a367689bee27a44efc22c9 header Delta compression using up to 6 threads. Compressing objects: 100% (3283/3283), done. error: inflate: data stream error (unknown compression method) fatal: loose object

VS corrupted .sln file?

旧巷老猫 提交于 2019-12-01 05:47:28
When I try to open my .sln file, Visual Studio quits on me. I can open it by opening up TFS, getting a specific version, choosing the latest version, forcing an overrwrite, opening up the .sln file, and then ignoring an 'incompatible doc message". However, I would like to know what's wrong and how it can be fixed, in case some day I can't do this. How can this be fixed? I would think this is more likely to be the .suo (which is a hidden file). These are know to corrupt (and this has been true since at least VC++ V6). Deleting it will clear all sorts of odd/erroneous behaviour in VS. (The .suo

VS corrupted .sln file?

我的未来我决定 提交于 2019-12-01 02:24:22
问题 When I try to open my .sln file, Visual Studio quits on me. I can open it by opening up TFS, getting a specific version, choosing the latest version, forcing an overrwrite, opening up the .sln file, and then ignoring an 'incompatible doc message". However, I would like to know what's wrong and how it can be fixed, in case some day I can't do this. How can this be fixed? 回答1: I would think this is more likely to be the .suo (which is a hidden file). These are know to corrupt (and this has been

What can I do with Git corruption due to a missing object?

本秂侑毒 提交于 2019-11-30 18:16:17
I just went to clone a repository on another remote server and ran into an issue trying to do so: git clone git@codebasehq.com:blah/blah/docs.git Cloning into docs... remote: Counting objects: 343, done. remote: error: unable to find 14f87a739828e4d489b0310a51e057b30333926e remote: Compressing objects: 100% (325/325), done. error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible repository corruption on the remote side. remote: fatal: unable to read 14f87a739828e4d489b0310a51e057b30333926e remote: aborting due to possible repository corruption