Failure of "--add-price-quotes" option.

David Brock david at tubits.com
Thu Sep 15 09:38:59 EDT 2005


Hi-

I'm running Gnucash 1.8.11 on FreeBSD 5.4-RELEASE.  It's been quite
stable, but I don't think I really push it too hard, just standard
transactions, and a little investment tracking.  I'm trying to increase
the investment tracking, as in, automatic price updates.

So, GC has the option --add-price-quotes, which is documented thusly:

gnucash --add-price-quotes <datafile>

...and I figure I'll create a cron job to run weekday evenings.  No
problem, I think to myself.

Yet, trying it that way gave an error.  I added debugging, and cranked
the loglevel way up; the output is pasted below.  The filename is good-
that's what I call it (Personal.dat) and I've given it the full path to
my data file.

When I ran it, as a test, with a non-existent filename, I got an error
that said something like "can't find any equities flagged for price
download", which says to me that, with my proper filename, it's finding
what it needs to download, but it can't seem to add the quotes to the
data file. (See the "[E]" quoted lines at the bottom of the pasted
output text)

Permissions are 644, and it's being run by me (the owner):

dmbrock at mercury~/GNUCash>ls -l Personal.dat
-rw-r--r--  1 dmbrock  dmbrock  8629655 15 Sep 08:37 Personal.dat

It may be pertinent that the next time I tried to open gnucash, I got
the "Could not obtain lock" error.  It appears to have written the LCK
file, and not removed it following the attempted automatic price update.

Can anyone shed any light on the below errors or what I might try to
further troubleshoot?

;-David


===================================================================
dmbrock at mercury~/GNUCash>gnucash --debug --loglevel 5
--add-price-quotes /home/dmbrock/GNUCash/Personal.dat 
gnucash: [D] "handling arg ""--loglevel"
gnucash: [D] "handling arg ""--add-price-quotes"
gnucash: [D] "files to open: "()
gnucash: [D] "starting up (2)."
gnucash: [D] "gnc:find-file looking for ""finance-quote-check"" in
"("/usr/X11R6/share/gnome/gnucash")
gnucash: [D] "  checking for
""/usr/X11R6/share/gnome/gnucash/finance-quote-check"
gnucash: [D] "found file
""/usr/X11R6/share/gnome/gnucash/finance-quote-check"
gnucash: [D] "gnc:find-file looking for ""finance-quote-helper"" in
"("/usr/X11R6/share/gnome/gnucash")
gnucash: [D] "  checking for
""/usr/X11R6/share/gnome/gnucash/finance-quote-helper"
gnucash: [D] "found file
""/usr/X11R6/share/gnome/gnucash/finance-quote-helper"
gnucash: [D] "loading system configuration"
gnucash: [D] "gnc:find-file looking for ""config"" in
"("/usr/X11R6/etc/gnucash")
gnucash: [D] "  checking for ""/usr/X11R6/etc/gnucash/config"
gnucash: [D] "found file ""/usr/X11R6/etc/gnucash/config"
gnucash: [D] "loading user configuration"
gnucash: [D] "trying to load ""/home/dmbrock/.gnucash/config-1.8.user"
gnucash: [D] "trying to load ""/home/dmbrock/.gnucash/config-1.6.user"
gnucash: [D] "trying to load ""/home/dmbrock/.gnucash/config.user"
gnucash: [D] "trying to load ""/home/dmbrock/.gnucash/config-1.8.auto"
gnucash: [D] "loading saved reports"
gnucash: [D] "trying to load ""/home/dmbrock/.gnucash/saved-reports-1.8"
gnucash: [D] "Running functions on hook "report-hook
  #<procedure business-report-function ()>
gnucash: [D] "Running functions on hook "startup-hook
  #<procedure #f ()>
Enter: gnc_book_new:  
Leave: gnc_book_new: book=0x8adb200
Enter: gnc_session_begin:  sess=0x8dca040 ignore_lock=0,
book-id=/home/dmbrock/GNUCash/Personal.dat
Enter: xaccResolveFilePath: filefrag=/home/dmbrock/GNUCash/Personal.dat
Info: gnc_session_begin: filepath=/home/dmbrock/GNUCash/Personal.dat
Enter: xaccResolveFilePath: filefrag=/home/dmbrock/GNUCash/Personal.dat
Info: gnc_session_begin: logpath=/home/dmbrock/GNUCash/Personal.dat
Enter: gnc_session_load_backend:  
Enter: gnc_book_set_backend: book=0x8adb200 be=0x8adb480
Leave: gnc_session_load_backend:  
Enter: file_session_begin:  
Info: gnc_session_begin: Done running session_begin on backend
Leave: gnc_session_begin: backend error 6
Enter: gnc_session_destroy: sess=0x8dca040 book_id=(null)
Enter: gnc_session_end: sess=0x8dca040 book_id=(null)
Leave: gnc_session_end: sess=0x8dca040 book_id=(null)
Enter: gnc_book_set_backend: book=0x8adb200 be=0x0
Enter: gnc_book_destroy: book=0x8adb200
Leave: gnc_book_destroy: book=0x8adb200
Leave: gnc_session_destroy: sess=0x8dca040
gnucash: [E] "book-add-quotes unable to open file"
gnucash: [E] "Failed to add quotes to
""/home/dmbrock/GNUCash/Personal.dat"
gnucash: [D] "Shutdown -- exit-status: "1
gnucash: [D] "Running functions on hook "shutdown-hook
  #<procedure #f ()>
gnucash: [D] "Running functions on hook "save-options-hook
  #<procedure gnc:save-style-sheet-options ()>
dmbrock at mercury~/GNUCash>
===================================================================





More information about the gnucash-user mailing list