# .CONF "swap file" problem

**URL:** <https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313>\
**Category:** zcashd client\
**Created:** [August 28, 2016, 12:25am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313 "2016-08-28T00:25:30Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 12:25am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/1 "2016-08-28T00:25:30Z")

</div>

I’m pretty “new” when it comes to this stuff, so bear with me.

I entered the command _vi ~/.zcash/zcash.conf_ so I could create the Zcash.conf file, but I screwed something up. Then, apparently, I further complicated the problem by “x-ing” out of the terminal instead of quiting with the correct command.

At this point, I just want to start over (create the .conf and enter testnet details) but whenever I enter vi _~/.zcash/zcash.conf_ I get the error below. I’m not sure how to fix this problem. I’m guessing somebody here can fix it in 5 minutes, so it makes more sense for me to break down and ask, rather than spend another couple hours trying to figure it out.

Link to Screenshot of error  
[![](http://www.mediafire.com/view/a0o8bv72x9fbuzm/zcash-error.jpg) ](http://www.mediafire.com/view/a0o8bv72x9fbuzm/zcash-error.jpg)

---

<div class="post-metadata">

**Author:** ![Shawn](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/shawn/32/187_2.png) [@Shawn](https://forum.zcashcommunity.com/u/Shawn)\
**Post date:** [August 28, 2016, 12:32am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/2 "2016-08-28T00:32:35Z")

</div>

Rather than doing it by command line you could look in your files directory, CTRL+H to see hidden files (.zcash) and right click to create the .conf file (inside the .zcash folder)

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 12:42am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/3 "2016-08-28T00:42:11Z")

</div>

Thanks for the fast reply, Shawn. Quick question: I see the two files that were showing up in the error message (the most recent screenshot only shows one of them, but there were two) Anyway, they’re named: zcash.conf.swp and zcash.conf.swo. …would it hurt to delete those?

**UPDATE:** Ok, I deleted the two files and I seemed to get a little further, but I’m having no luck when I go to save the testnet info. Here’s what I’m doing:

I open terminal and enter: _vi ~/.zcash/zcash.conf_

I then press “insert” on my keyboard and paste in the info  
_testnet=1_  
_addnode=alphatestnet.z.cash_  
_rpcuser=username_  
_rpcpassword=password_

I then press _ESC_ and enter _:wq_ then press “enter”

I get the error “can’t open file for writing” (screenshot below)  
[Screenshot image](http://www.mediafire.com/view/9aln3zjfzhi1oh3/cant-open-2.jpg)

By the way, I did try adding zcash.conf manually to each of the three zcash folders I saw in the directory (I just put “test text 1, test text 2, test text 3” respectively in each file) but I didn’t see any of these in the terminal when I ran the command _vi ~/.zcash/zcash.conf_ (…not sure, but I think if I’d added the file to the right place, I would have seen one of the test / text messages.)

---

<div class="post-metadata">

**Author:** ![daira](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/daira/32/43253_2.png) [@daira](https://forum.zcashcommunity.com/u/daira)\
**Post date:** [August 28, 2016, 1:37am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/4 "2016-08-28T01:37:11Z")

</div>

Check that the `~/.zcash` directory exists and has permissions allowing writing by the user account in which you’re running vi.

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 1:42am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/5 "2016-08-28T01:42:53Z")

</div>

> [@daira](#):
>
> Check that the ~/.zcash directory exists…

Would I just search for _ **.zcash** _ ? If so, I don’t see anything coming up with that name. I only get results when I search zcash (without the _dot_).

---

<div class="post-metadata">

**Author:** ![Voluntary](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voluntary/32/4343_2.png) [@Voluntary](https://forum.zcashcommunity.com/u/Voluntary)\
**Post date:** [August 28, 2016, 1:45am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/6 "2016-08-28T01:45:48Z")

</div>

There is a zcash directory & .zcash directory. I think you might find this easier with a desktop interface btw. What OS are you using?

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 1:53am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/7 "2016-08-28T01:53:15Z")

</div>

> [@Voluntary](#):
>
> I think you might find this easier with a desktop interface btw. What OS are you using?

I’m using Ubuntu 16.04 64 bit (was told that was the one to go with.) I don’t see the .zcash directory. Easy fix? (Fingers crossed).

NOTE: I do get “.zcash-params,” but I’m guessing that’s not what I want.

---

<div class="post-metadata">

**Author:** ![Voluntary](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voluntary/32/4343_2.png) [@Voluntary](https://forum.zcashcommunity.com/u/Voluntary)\
**Post date:** [August 28, 2016, 2:17am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/8 "2016-08-28T02:17:30Z")

</div>

This command will show all the files and directories in the current directory:

> ls -a

If you see the zcash directory but there’s still no .zcash directory then you might not have followed all the instructions in the Public Alpha Guide - particularly the fetch-params.sh part.

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 2:25am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/9 "2016-08-28T02:25:33Z")

</div>

> [@Voluntary](#):
>
> If you see the zcash directory but there’s still no .zcash directory then you might not have followed all the instructions in the Public Alpha Guide - particularly the fetch-params.sh part.

Well, it’s definitely not there. (I’ve done this on two machines, the other one has the .zcash directory…this one doesn’t.) No idea what I did wrong / different. Here’s what I ran before…should I just run it all again?

git clone [GitHub - zcash/zcash: Zcash - Internet Money](https://github.com/zcash/zcash.git)  
cd zcash/  
git checkout zc.v0.11.2.z8  
./zcutil/fetch-params.sh

---

<div class="post-metadata">

**Author:** ![Voluntary](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voluntary/32/4343_2.png) [@Voluntary](https://forum.zcashcommunity.com/u/Voluntary)\
**Post date:** [August 28, 2016, 2:30am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/10 "2016-08-28T02:30:44Z")

</div>

Did fetch-params.sh take a while to finish downloading the proving key? Did it show a progress display?

---

<div class="post-metadata">

**Author:** ![daira](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/daira/32/43253_2.png) [@daira](https://forum.zcashcommunity.com/u/daira)\
**Post date:** [August 28, 2016, 2:31am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/11 "2016-08-28T02:31:15Z")

</div>

Note that you should now be using `git checkout zc.v0.11.2.z9`. You also need to create the `.zcash` directory using `mkdir ~/.zcash` (the Public Alpha Guide does say this).

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 2:36am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/12 "2016-08-28T02:36:29Z")

</div>

> [@Voluntary](#):
>
> Did fetch-params.sh take a while to finish downloading

Yes, everything took a while and I ran the “tests” afterword (which also took a while but seemed OK.)

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 2:40am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/13 "2016-08-28T02:40:49Z")

</div>

> [@daira](#):
>
> Note that you should now be using git checkout zc.v0.11.2.z9. You also need to create the .zcash directory using mkdir ~/.zcash (the Public Alpha Guide does say this)

Thanks, Daira. I had another guy who knows a lot more about this stuff than I do write out some instructions for me…seems like they worked on my Windows 7 machine, but not my Windows 8.1.

Am I able to fix whatever is screwed up here, or do I have to uninstall and start over?

---

<div class="post-metadata">

**Author:** ![Voluntary](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/voluntary/32/4343_2.png) [@Voluntary](https://forum.zcashcommunity.com/u/Voluntary)\
**Post date:** [August 28, 2016, 2:45am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/14 "2016-08-28T02:45:10Z")

</div>

Starting in the same directory that the zcash directory is located, what happens when you enter?

> ls .zcash

The reason I ask is that fetch-params.sh downloads files into .zcash

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 2:58am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/15 "2016-08-28T02:58:02Z")

</div>

> [@Voluntary](#):
>
> Starting in the same directory that the zcash directory is located, what happens when you enter?
> 
> ls .zcash

When I open the terminal and run that command, it just says “no such file or directory.”

Here is the full view (what I get when I run _ls -a_

[.Zcash missing](http://www.mediafire.com/view/ifjvss4un08phrf/Zcash-missing.jpg)

---

<div class="post-metadata">

**Author:** ![daira](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/daira/32/43253_2.png) [@daira](https://forum.zcashcommunity.com/u/daira)\
**Post date:** [August 28, 2016, 3:02am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/16 "2016-08-28T03:02:40Z")

</div>

I updated [Home · zcash/zcash Wiki · GitHub](https://github.com/zcash/zcash/wiki/Public-Alpha-Guide#running) to hopefully make the need to create `~/.zcash` clearer.

Note that `zcutil/fetch-params.sh` creates `~/.zcash-params`, not `~/.zcash`.

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 3:09am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/17 "2016-08-28T03:09:23Z")

</div>

> [@daira](#):
>
> I updated [Home · zcash/zcash Wiki · GitHub](https://github.com/zcash/zcash/wiki/Public-Alpha-Guide#running)

Thanks again. What happens if I just start over from the beginning? Do I wind up with a bigger mess, or will everything just be “updated.” (I’d be using your guide this time instead of the instructions I used before.)

---

<div class="post-metadata">

**Author:** ![daira](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/daira/32/43253_2.png) [@daira](https://forum.zcashcommunity.com/u/daira)\
**Post date:** [August 28, 2016, 3:11am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/18 "2016-08-28T03:11:04Z")

</div>

You should be able to just continue from the ‘Running’ section (if you’ve already completed the previous steps).

---

<div class="post-metadata">

**Author:** ![joe1](https://avatars.discourse-cdn.com/v4/letter/j/d26b3c/32.png) [@joe1](https://forum.zcashcommunity.com/u/joe1)\
**Post date:** [August 28, 2016, 3:19am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/19 "2016-08-28T03:19:54Z")

</div>

> [@daira](#):
>
> You should be able to just continue from the ‘Running’ section (if you’ve already completed the previous steps).

Gave it a shot, but still got an error (screenshot below)

[No luck](http://www.mediafire.com/view/zsycivsf8vwymqi/no_luck.jpg)

---

<div class="post-metadata">

**Author:** ![hud](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@hud](https://forum.zcashcommunity.com/u/hud)\
**Post date:** [August 28, 2016, 3:24am UTC](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313/20 "2016-08-28T03:24:08Z")

</div>

`~/.zcash/zcash.conf` is not the command and it obviously produce that error message. You simply need to create a zcash.conf file with a text editor like gedit and then place it in the ~/.zcash folder.

[Next page](https://forum.zcashcommunity.com/t/conf-swap-file-problem/1313.md?page=2)
