Bug 419820 - won't load
Summary: won't load
Status: RESOLVED NOT A BUG
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian stable Linux
: NOR critical
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-07 21:15 UTC by Bob Price
Modified: 2020-04-09 05:43 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bob Price 2020-04-07 21:15:17 UTC
SUMMARY
kmy is too short

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Bob Price 2020-04-07 21:18:40 UTC
The error I get is "kmy is too short./build/kmymoney-yzwQi1/kmymoney-5.0.3/kmymoney/plugins/gnc/import/gncimporter.cpp:80"
Comment 2 Jack 2020-04-07 21:36:10 UTC
What version of KMM are you running?  If it's really 5.0.3, try upgrading to a newer version.  I can't say whether the problem has been fixed, as it's not clear what the problem is. but 5.0.3 os rather old at this point. 

What won't load?  If it's your .kmy file, when did it last load, or did you just create it?  The error confuses me, however, as it says the .kmy is too short, but the file reverence is to the GnuCash importer.

Also assuming it is your .kmy file, how long is it?  Can you copy file.kmy to file.xmlgz and then gunzip it?  Do you have any backups.  What are their sizes?  Where is the file stored?  Local hard drive, or network share?
Comment 3 Bob Price 2020-04-07 21:49:14 UTC
It is 5.0.3. I just installed it as I had to reinstall complete OS 
debian 10.3. It worked fine yesterday and before that. I have a backup 
on a thumb drive and I copied it to my Documents as I always have. Had 
no problems until today when all this happened. Stored on hard drive & 
thumb drive. I don't know what size it is, but it is about a year 
long--one checking account and one savings account. They are not that 
long. AS I said I have done this before but never had any problems until 
today. Thank you for your quick response. I don't know what to do.

On 4/7/20 3:36 PM, Jack wrote:
> https://bugs.kde.org/show_bug.cgi?id=419820
>
> Jack <ostroffjh@users.sourceforge.net> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|---                         |WAITINGFORINFO
>               Status|REPORTED                    |NEEDSINFO
>
> --- Comment #2 from Jack <ostroffjh@users.sourceforge.net> ---
> What version of KMM are you running?  If it's really 5.0.3, try upgrading to a
> newer version.  I can't say whether the problem has been fixed, as it's not
> clear what the problem is. but 5.0.3 os rather old at this point.
>
> What won't load?  If it's your .kmy file, when did it last load, or did you
> just create it?  The error confuses me, however, as it says the .kmy is too
> short, but the file reverence is to the GnuCash importer.
>
> Also assuming it is your .kmy file, how long is it?  Can you copy file.kmy to
> file.xmlgz and then gunzip it?  Do you have any backups.  What are their sizes?
>   Where is the file stored?  Local hard drive, or network share?
>
Comment 4 Bob Price 2020-04-07 22:44:23 UTC
I just started all over from the first of the year and got to March 4th 
and saved it on thumb drive and in my documents. When I went to open it, 
it would not let me--same error I had before.

On 4/7/20 3:36 PM, Jack wrote:

> https://bugs.kde.org/show_bug.cgi?id=419820
>
> Jack <ostroffjh@users.sourceforge.net> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>           Resolution|---                         |WAITINGFORINFO
>               Status|REPORTED                    |NEEDSINFO
>
> --- Comment #2 from Jack <ostroffjh@users.sourceforge.net> ---
> What version of KMM are you running?  If it's really 5.0.3, try upgrading to a
> newer version.  I can't say whether the problem has been fixed, as it's not
> clear what the problem is. but 5.0.3 os rather old at this point.
>
> What won't load?  If it's your .kmy file, when did it last load, or did you
> just create it?  The error confuses me, however, as it says the .kmy is too
> short, but the file reverence is to the GnuCash importer.
>
> Also assuming it is your .kmy file, how long is it?  Can you copy file.kmy to
> file.xmlgz and then gunzip it?  Do you have any backups.  What are their sizes?
>   Where is the file stored?  Local hard drive, or network share?
>
Comment 5 Jack 2020-04-07 22:53:44 UTC
You should be able to check file sizes with either "ls -l" in a command console (xterm or Konsole, for example) or even by checking the file's properties in any file manager, such as Dolphin, if you are using a full KDE environment.

However, back to that error message, is is just "kmy is too short./build/kmymoney-yzwQi1/kmymoney-5.0.3/kmymoney/plugins/gnc/import/gncimporter.cpp:80" or does it start "File kmy is too short."?  That error is from the GnuCash file importer.  How are you launching KMyMoney?  I'm wondering if there is something funny in the shortcut or launcher.

One thing to try - open a console, and start KMyMoney with "kmymoney -n" which tells it not to open the last file it used.  The use the File\Open menu item to be sure you are opening the correct file.  Let us know how it works?

[Also - when you respond to a bug report by email, there is no need to include the entre message you are replying to (unless you reply to specific parts of the message) as your entire email gets appended to the bug report as the next comment.]
Comment 6 Jack 2020-04-07 22:54:54 UTC
Also - if you are saving the file to both the local hard drive and to a thumb drive, have you tried to open both of them?  Have you compared them to see if they are identical.
Comment 7 Thomas Baumgart 2020-04-08 06:51:27 UTC
In case the filesize itself seems to be OK, one can check the contents of the file with:

  % file xxx.kmy

where xxx is your file name. This should in case of a valid .kmy file provide you with the following or similar output:

  xxx.kmy: gzip compressed data, was "", last modified: Thu Aug 15 15:17:07 2019, from Unix

The gzip compression is what it needs. In case that is OK, the next step could be to check the contents. Proceed as follows in a console window:

  % zcat xxx.kmy > xxx.xml
  % xmllint xxx.xml

This dumps the (XML) contents of xxx.xml to the console if the file is not corrupted. In other cases you see error messages. If that is also OK, then your data seems to be safe. (You sure have kept a backup of it somewhere, just in case). The next step is to go around the GNC importer. Start KMyMoney from the command line with the -n option. Open the settings, go to the plugins page and deselect the GnuCash importer. Then try to open your file.

Don't forget to cleanup:

  % rm xxx.xml
Comment 8 Bob Price 2020-04-08 17:58:51 UTC
They are identical. Yesterday I formatted my hard drive and reinstalled 
debian 10.3 and all of my programs including kmymoney. I started with 
Jan. 2020 and input about 6 entries and saved it and then opened it. 
Everything is working fine so far.

On 4/7/20 4:54 PM, Jack wrote:
> https://bugs.kde.org/show_bug.cgi?id=419820
>
> --- Comment #6 from Jack <ostroffjh@users.sourceforge.net> ---
> Also - if you are saving the file to both the local hard drive and to a thumb
> drive, have you tried to open both of them?  Have you compared them to see if
> they are identical.
>
Comment 9 Bob Price 2020-04-08 18:01:39 UTC
Yesterday I formatted my hard drive and reinstalled debian 10.3 and all 
of my programs including kmymoney. I started with Jan 2020 and input 
about 6 entries and saved it. I then opened it and everything seems to 
be working fine so far.

On 4/8/20 12:51 AM, Thomas Baumgart wrote:
> https://bugs.kde.org/show_bug.cgi?id=419820
>
> --- Comment #7 from Thomas Baumgart <tbaumgart@kde.org> ---
> In case the filesize itself seems to be OK, one can check the contents of the
> file with:
>
>    % file xxx.kmy
>
> where xxx is your file name. This should in case of a valid .kmy file provide
> you with the following or similar output:
>
>    xxx.kmy: gzip compressed data, was "", last modified: Thu Aug 15 15:17:07
> 2019, from Unix
>
> The gzip compression is what it needs. In case that is OK, the next step could
> be to check the contents. Proceed as follows in a console window:
>
>    % zcat xxx.kmy > xxx.xml
>    % xmllint xxx.xml
>
> This dumps the (XML) contents of xxx.xml to the console if the file is not
> corrupted. In other cases you see error messages. If that is also OK, then your
> data seems to be safe. (You sure have kept a backup of it somewhere, just in
> case). The next step is to go around the GNC importer. Start KMyMoney from the
> command line with the -n option. Open the settings, go to the plugins page and
> deselect the GnuCash importer. Then try to open your file.
>
> Don't forget to cleanup:
>
>    % rm xxx.xml
>
Comment 10 Thomas Baumgart 2020-04-09 05:43:36 UTC
Apparently not a problem of KMyMoney