JSON-RPC backupwallet causes 500 Internal Server Error in bitcoind #2831

issue grahama opened this issue on July 15, 2013
  1. grahama commented at 11:26 AM on July 15, 2013: none

    I'm using v0.8.3 and issuing the backupwallet command via the QT GU works, but that performs a local backup.

    Using the JSON-RPC to a bitcoind server via 127.0.0.1 or remote IP always causes the server to return 500 Internal Server Error, additionally it does not return any JSON error codes as per bitcoin/bitcoin#1908

    This is a documented function and I would it expect the path or path/filename to refer to a filespec on the remote server when using the RPC interface.

    Its critical tp me to be able to backup your wallet via RPC.

  2. grahama commented at 8:49 PM on July 16, 2013: none

    Guys,

    I'm really sorry, but this was my fault, I was doing (perl):

    sub backupwallet { my ($self, $param) = @_; $self->raw({method => 'backupwallet', param => [$param]}); }

    I should have been "params" not "param" :(

    I was unable to detect this typo because the server threw a 500 and did not return a JSON error code, which I would have expected, maybe something like RPC_INVALID_PARAMETER or RPC_INVALID_PARAMS.

    Once again sorry, BTW: I'm running the binary Linux x64 from bitcoin.org, as I cannot compile it as I'm running Fedora 14 and it's openssl does not support some features see https://bugzilla.redhat.com/show_bug.cgi?id=319901

    BTW: if there is anyone in bitcoin development that could read the last comment on that bug and maybe help out on the legal question, bitcoin would eventually find it's way into every RHEL/Fedora distribution which would widen the bitcoin community somewhat.

    Albert

  3. grahama closed this on Jul 16, 2013

  4. grahama cross-referenced this on Jul 16, 2013 from issue A series of RPC calls can lead to a crash by cgaebel
  5. Bushstar referenced this in commit 297c266e91 on Apr 8, 2020
  6. bitcoin locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC