<p>If you installed Bitcoin Core via Snap, then you can easily dump your wallet keys to <code>snap/bitcoin-core/common/</code> directory, like</p>
<pre><code>dumpwallet /home/alex/snap/bitcoin-core/common/walletdump.txt
</code></pre>
<p>In case of success, you'll see the following response:</p>
<pre><code>{
  &quot;filename&quot;: &quot;/home/alex/snap/bitcoin-core/common/walletdump.txt&quot;
}
</code></pre>

CC BY-SA 4.0
2020-08-30T19:37:45.523Z
2020-08-30T19:37:45.523Z
Aliaksandr Adzinets
<p>To fix this on Windows I had to specify the full path to a folder, and it could not be inside Program Files.  This full path worked</p>
<pre><code>C:\Users\me\Desktop\temp\test
</code></pre>

CC BY-SA 4.0
2020-12-28T01:12:24.873Z
2020-12-28T01:12:24.873Z
coolshoeshine
<p>Last time it happened to me, it was because the user of bitcoind didn't have the write permission in the dir I tried to dump the backup.<br>
I think you should check the permission for the bitcoin directory, or try to change the path where to dump your wallet backup and see if it still fails.</p>

CC BY-SA 4.0
2020-04-21T15:48:15.503Z
I try to make the backup in my home but it doesn't allow me
themagician
CC BY-SA 4.0
2020-04-21T16:11:58.233Z
which user "home" is it? The one that is running bitcoind or the one you are calling the rpc method right now? Where is the bitcoin directory and what is its permission? Can you make other rpc call?
Sosthène
CC BY-SA 4.0
2020-04-21T16:30:23.343Z
The one that is running bitcoind and the one is calling the rpc method are the same user.

BTC directory is ~/snap/bitcoin-core/common/.bitcoin    with permission 775.

But I am trying to backup in /snap/bin with permission 777
themagician
CC BY-SA 4.0
2020-04-21T16:56:52.410Z
Ok it's probably not the problem I was thinking about then, sorry for the false hope!
Sosthène
CC BY-SA 4.0
2020-04-21T14:52:27.923Z
2020-04-21T14:52:27.923Z
Sosthène
<p>Does anyone know why I can't dump info into a text file?</p>

<p>It also doesn't allow me to back up my wallet.</p>

<p>i am using SNAP<a href="https://i.sstatic.net/vtFl0.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/vtFl0.png" alt="enter image description here"></a></p>

CC BY-SA 4.0
2020-04-21T17:52:51.423Z
Try giving an absolute path.
Pieter Wuille
<wallet><backup><error>
Cannot open wallet dump file (code-8)
themagician
# Cannot open wallet dump file (code-8)

(Asked by: username_0 on 2020-04-21)

Does anyone know why I can't dump info into a text file?

It also doesn't allow me to back up my wallet.

i am using SNAP[![enter image description here](https://i.sstatic.net/vtFl0.png)](https://i.sstatic.net/vtFl0.png)

**Tags:** wallet, backup, error

> **Comments:**
> **username_1**: Try giving an absolute path.  

---

## 3 answers

### Answer by username_2 on 2020-08-30. Score: 1

If you installed Bitcoin Core via Snap, then you can easily dump your wallet keys to snap/bitcoin-core/common/ directory, like
dumpwallet /home/alex/snap/bitcoin-core/common/walletdump.txt

In case of success, you'll see the following response:
{
  "filename": "/home/alex/snap/bitcoin-core/common/walletdump.txt"
}


---

### Answer by username_3 on 2020-12-28. Score: 1

To fix this on Windows I had to specify the full path to a folder, and it could not be inside Program Files.  This full path worked
C:\Users\me\Desktop\temp\test


---

### Answer by username_4 on 2020-04-21. Score: 0

Last time it happened to me, it was because the user of bitcoind didn't have the write permission in the dir I tried to dump the backup.  
I think you should check the permission for the bitcoin directory, or try to change the path where to dump your wallet backup and see if it still fails.

> **Comments:**
> **username_0**: I try to make the backup in my home but it doesn't allow me  
> **username_4**: which user "home" is it? The one that is running bitcoind or the one you are calling the rpc method right now? Where is the bitcoin directory and what is its permission? Can you make other rpc call?  
> **username_0**: The one that is running bitcoind and the one is calling the rpc method are the same user.  BTC directory is ~/snap/bitcoin-core/common/.bitcoin    with permission 775.  But I am trying to backup in /snap/bin with permission 777  
> **username_4**: Ok it's probably not the problem I was thinking about then, sorry for the false hope!  

---

