<p>Notwithstanding the value/importance of cache issue pointed out by @angerman, the cause of the main question of your OP (i.e., the error on port 8080) appears to be that you started the client on 8009, but didn't show any steps for starting the server.</p>
<p>Open a second terminal session, enter the nix-shell, and start the server, and you should be set.</p>

CC BY-SA 4.0
2022-01-14T18:29:43.083Z
Thanks, this is great.  I see that I missed that step on the Setup Starter Pack.   Can I ask another quick question?       Cache setup says to update /etc/nix/nix.conf      Where is the /etc folder?   I haven't been able to locate it.   Do I have to create it?  If so what folder do I create it in.
CryptoBoomer
CC BY-SA 4.0
2022-01-14T16:50:45.773Z
2022-01-14T16:50:45.773Z
Hysteria
<p>You should find the necessary <code>etc/</code> folder from your <code>root</code> directory.
In a terminal, you can do the following from anywhere to get there.</p>
<p>:~/plutus-apps$ <code>cd /</code></p>
<p>bring you to this prompt...</p>
<p>:/$</p>
<p>that is your root dir/path (/) prompt</p>
<p>now;</p>
<p>:/$ <code>ls</code></p>
<p>...and you should see something like this...</p>
<p>bin   dev  home  lib32  libx32      media  nix  proc  run   snap  sys  usr</p>
<p>boot  etc  lib   lib64  lost+found  mnt    opt  root  sbin  srv   tmp  var</p>
<p>Note the <code>etc/</code> dir.
Now that you know where it is, from here just change to the etc/ directory.
If you need to make a nix folder, simply use the mkdir command.</p>
<p>I am not sure how comfortable you are in the bash shell. If you are, here is a handy concatenated line to mkdir and create a nix.conf file at the same time:</p>
<pre><code>sudo mkdir folder &amp;&amp; sudo touch $_/file.txt
</code></pre>
<p>or -&gt; sudo mkdir etc/nix/ &amp;&amp; sudo touch $_/nix.conf</p>
<p>I hope that helps you out with this. Good luck!</p>

CC BY-SA 4.0
2022-01-14T23:36:31.977Z
This my friend is excellent!!  Thank you so much
CryptoBoomer
CC BY-SA 4.0
2022-01-14T21:46:32.780Z
2022-01-14T21:46:32.780Z
Troy Bertolino
<p>I've been a mainframe programmer my for decades.  Never developed on small server platforms. So the biggest challenge I'm having is dealing with the nerve wracking OS setup, Github cloning, server building, nix running craziness,  etc etc etc</p>
<p>These are the steps I accomplished leading up to my Failed Compile.</p>
<p>I followed The Plutus Playground Local Instance Instructions in the Plutus Env: Setup Starter Pack</p>
<p>1 Installed WSL (Ubuntu)   (couldn't get git to work until I did this.) Tried multiple thing. But only this worked.</p>
<p>then:</p>
<ol>
<li><p>Download the plutus-apps repository: git clone <a href="https://github.com/input-output-hk/plutus-apps" rel="nofollow noreferrer">https://github.com/input-output-hk/plutus-apps</a>
<strong>COMPLETED</strong></p>
</li>
<li><p>Go to the latest commit of the repository: git checkout <code>41149926c108c71831cfe8d244c83b0ee4bf5c8a</code>
<strong>COMPLETED</strong></p>
</li>
<li><p>At top of this repo, <code>nix-build -A plutus-playground.server</code><br />
<strong>COMPLETED</strong></p>
</li>
</ol>
<p><a href="https://i.sstatic.net/yspP3.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/yspP3.png" alt="This ran ALL night, went to bed and arrived to this in the morning" /></a></p>
<p>4 Enter nix-shell then:      This ran literally all day and finished at the $prompt
<a href="https://i.sstatic.net/BU6Us.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BU6Us.png" alt="enter image description here" /></a>         <strong>COMPLETED</strong></p>
<p>after nix-shell build stopped entered these two cmnds:</p>
<pre><code>[nix-shell:~/plutus-apps]$ cd plutus-playground-client
[nix-shell:~/plutus-apps/plutus-playground-client]$ npm run start
</code></pre>
<p><a href="https://i.sstatic.net/msZHF.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/msZHF.png" alt="That ran a little while and ended with" /></a>  <strong>COMPLETED</strong></p>
<p>I then navigated to localhost in browser which loaded the demo code to be compiled.
I hit the compile button , it displayed a Compilation Failed message and display the following errors in the Linux Command window:
<a href="https://i.sstatic.net/r6n8e.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/r6n8e.png" alt="enter image description here" /></a>  <strong>FAILED</strong></p>

CC BY-SA 4.0
2022-01-14T04:33:21.557Z
"This ran literally all day and finished at the $prompt", did you add the IOG caches to your nix configuration? That could explain why it built so much.
angerman
CC BY-SA 4.0
2022-01-14T06:22:47.103Z
No, I saw mention of that after the fact in the week #1 Exercises.
CryptoBoomer
CC BY-SA 4.0
2022-01-14T06:29:15.937Z
No, I saw mention of that after the fact in the week #1 Exercises.   I figured at some point I should go back and do that.  It def should've been in the Plutus Env: Setup Starter Pack  instructions, it would've saved me a lot of time.   I have no choice but to push through all the apps I don't know (Linux, Nix, Haskell etc and learn on the fly through trial and error.     Thanks man.
CryptoBoomer
CC BY-SA 4.0
2022-01-15T03:29:56.760Z
FYI, I answered another question that's similar but not the same here that shows some details of a new tool I created that's a little less convoluted. It uses the power of nix to abstract away a lot of the ugliness. https://cardano.stackexchange.com/a/6464/382
Samuel Leathers
<plutus-playground>
First time compiling sample Plutus code in local Plutus Playground failed. Can't figure out why
# First time compiling sample Plutus code in local Plutus Playground failed. Can't figure out why

(Asked by: username_0 on 2022-01-14)

I've been a mainframe programmer my for decades.  Never developed on small server platforms. So the biggest challenge I'm having is dealing with the nerve wracking OS setup, Github cloning, server building, nix running craziness,  etc etc etc
These are the steps I accomplished leading up to my Failed Compile.
I followed The Plutus Playground Local Instance Instructions in the Plutus Env: Setup Starter Pack
1 Installed WSL (Ubuntu)   (couldn't get git to work until I did this.) Tried multiple thing. But only this worked.
then:

Download the plutus-apps repository: git clone https://github.com/input-output-hk/plutus-apps
COMPLETED

Go to the latest commit of the repository: git checkout 41149926c108c71831cfe8d244c83b0ee4bf5c8a
COMPLETED

At top of this repo, nix-build -A plutus-playground.server
COMPLETED



4 Enter nix-shell then:      This ran literally all day and finished at the $prompt
 COMPLETED
after nix-shell build stopped entered these two cmnds:
[nix-shell:~/plutus-apps]$ cd plutus-playground-client
[nix-shell:~/plutus-apps/plutus-playground-client]$ npm run start

 COMPLETED
I then navigated to localhost in browser which loaded the demo code to be compiled.
I hit the compile button , it displayed a Compilation Failed message and display the following errors in the Linux Command window:
 FAILED

**Tags:** plutus-playground
> **Comments:**
> **username_1**: "This ran literally all day and finished at the $prompt", did you add the IOG caches to your nix configuration? That could explain why it built so much.  
> **username_0**: No, I saw mention of that after the fact in the week #1 Exercises.  
> **username_0**: No, I saw mention of that after the fact in the week #1 Exercises.   I figured at some point I should go back and do that.  It def should've been in the Plutus Env: Setup Starter Pack  instructions, it would've saved me a lot of time.   I have no choice but to push through all the apps I don't know (Linux, Nix, Haskell etc and learn on the fly through trial and error.     Thanks man.  
> **username_2**: FYI, I answered another question that's similar but not the same here that shows some details of a new tool I created that's a little less convoluted. It uses the power of nix to abstract away a lot of the ugliness. https://cardano.stackexchange.com/a/6464/382  

---

## 2 answers

### Answer by username_3 on 2022-01-14. Score: 0 | Accepted answer

Notwithstanding the value/importance of cache issue pointed out by @angerman, the cause of the main question of your OP (i.e., the error on port 8080) appears to be that you started the client on 8009, but didn't show any steps for starting the server.

Open a second terminal session, enter the nix-shell, and start the server, and you should be set.

> **Comments:**
> **username_0**: Thanks, this is great.  I see that I missed that step on the Setup Starter Pack.   Can I ask another quick question?       Cache setup says to update /etc/nix/nix.conf      Where is the /etc folder?   I haven't been able to locate it.   Do I have to create it?  If so what folder do I create it in.  

---

### Answer by username_4 on 2022-01-14. Score: 0

You should find the necessary etc/ folder from your root directory.
In a terminal, you can do the following from anywhere to get there.
:~/plutus-apps$ cd /
bring you to this prompt...
:/$
that is your root dir/path (/) prompt
now;
:/$ ls
...and you should see something like this...
bin   dev  home  lib32  libx32      media  nix  proc  run   snap  sys  usr
boot  etc  lib   lib64  lost+found  mnt    opt  root  sbin  srv   tmp  var
Note the etc/ dir.
Now that you know where it is, from here just change to the etc/ directory.
If you need to make a nix folder, simply use the mkdir command.
I am not sure how comfortable you are in the bash shell. If you are, here is a handy concatenated line to mkdir and create a nix.conf file at the same time:
sudo mkdir folder && sudo touch $_/file.txt

or -> sudo mkdir etc/nix/ && sudo touch $_/nix.conf
I hope that helps you out with this. Good luck!

> **Comments:**
> **username_0**: This my friend is excellent!!  Thank you so much  

---

