# Fuel Counter-Contract Deploy Error

**URL:** <https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691>\
**Category:** Sway\
**Created:** [November 23, 2023, 1:21pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691 "2023-11-23T13:21:18Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![siliasi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/siliasi/32/1899_2.png) [@siliasi](https://forum.fuel.network/u/siliasi)\
**Post date:** [November 23, 2023, 1:21pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/1 "2023-11-23T13:21:18Z")

</div>

Contract id: 0x9ae39db698cce5e2b05951284c9b5a44f389d2186cffce9ad3168a0c143f0e3b  
Please provide the address of the wallet you are going to sign this transaction with:fuel1vxwseld35v7xc4v0qh5xce9qjpc2v2yppvyyrwywg0a0cpyly7vqu2mkzf  
Error: Provider error: Error making HTTP request: error sending request for url ([http://127.0.0.1:4000/graphql](http://127.0.0.1:4000/graphql)): error trying to connect: tcp connect error: Connection refused (os error 111)

---

<div class="post-metadata">

**Author:** ![kaya](https://avatars.discourse-cdn.com/v4/letter/k/5f8ce5/32.png) [@kaya](https://forum.fuel.network/u/kaya)\
**Post date:** [November 23, 2023, 6:25pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/2 "2023-11-23T18:25:28Z")

</div>

Hey,

It looks like you are trying to deploy to local network but local fuel-core is not running. Can you make sure you start a local node before trying to deploy.

Also if there are no specific reasons I would suggest updating to the latest versions

---

<div class="post-metadata">

**Author:** ![siliasi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/siliasi/32/1899_2.png) [@siliasi](https://forum.fuel.network/u/siliasi)\
**Post date:** [November 24, 2023, 8:47am UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/3 "2023-11-24T08:47:26Z")

</div>

I was following Fuel’s guide but when i reached forc deploy --testnet. It showed an error thats why i opted for forc deploy. Could ypu guide me on how to start a local node or if you dont mind we do a simple google meet. I would appreciate it.

---

<div class="post-metadata">

**Author:** ![sarah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sarah/32/13_2.png) [@sarah](https://forum.fuel.network/u/sarah)\
**Post date:** [November 24, 2023, 4:21pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/4 "2023-11-24T16:21:29Z")

</div>

Can you share the error you got when trying to deploy to the testnet?

For running a local node, you can find a guide for that here: [Running a Local Node | Fuel Docs](https://docs.fuel.network/guides/running-a-node/running-a-local-node/)

---

<div class="post-metadata">

**Author:** ![siliasi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/siliasi/32/1899_2.png) [@siliasi](https://forum.fuel.network/u/siliasi)\
**Post date:** [November 28, 2023, 11:44am UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/5 "2023-11-28T11:44:48Z")

</div>

┌──(x㉿kali)-[~/ExtraWine/x/fuel-project/counter-contract]  
└─$ forc wallet accounts  
Please enter your password to verify cached accounts:  
[0] fuel1vxwseld35v7xc4v0qh5xce9qjpc2v2yppvyyrwywg0a0cpyly7vqu2mkzf

┌──(x㉿kali)-[~/ExtraWine/x/fuel-project/counter-contract]  
└─$ forc deploy --testnet  
error: Found argument ‘–testnet’ which wasn’t expected, or isn’t valid in this context

```
    Did you mean '--terse'?

    If you tried to supply `--testnet` as a value rather than a flag, use `-- --testnet`

```

USAGE:  
forc deploy --terse

For more information try --help  
Hi Sarah Thats the error. Note that I imported my already existing Wallet

---

<div class="post-metadata">

**Author:** ![sandusky](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sandusky/32/1313_2.png) [@sandusky](https://forum.fuel.network/u/sandusky)\
**Post date:** [November 28, 2023, 12:40pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/6 "2023-11-28T12:40:09Z")

</div>

Hi there! @siliasi  
Your error seems quite weird 🤔

Can you please run `fuelup show` and share the result with us? This will let us know your current toolchain version.

Thanks! 🌴

---

<div class="post-metadata">

**Author:** ![siliasi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/siliasi/32/1899_2.png) [@siliasi](https://forum.fuel.network/u/siliasi)\
**Post date:** [November 28, 2023, 2:12pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/7 "2023-11-28T14:12:35Z")

</div>

x㉿kali)-[~/ExtraWine/x/fuel-project/counter-contract]  
└─$ fuelup show  
Default host: x86\_64-unknown-linux-gnu  
fuelup home: /home/x/.fuelup

## installed toolchains

forc (default)

## active toolchain

forc (default)  
forc : 0.37.0  
- forc-client  
- forc-deploy : 0.37.0  
- forc-run : 0.37.0  
- forc-doc : 0.37.0  
- forc-explore : 0.28.1  
- forc-fmt : 0.37.0  
- forc-index : Error getting version string  
- forc-lsp : 0.37.0  
- forc-tx : 0.37.0  
- forc-wallet : 0.2.2  
fuel-core : 0.17.11  
fuel-core-keygen : Error getting version string  
fuel-indexer : Error getting version string

---

<div class="post-metadata">

**Author:** ![sandusky](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sandusky/32/1313_2.png) [@sandusky](https://forum.fuel.network/u/sandusky)\
**Post date:** [November 28, 2023, 7:12pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/8 "2023-11-28T19:12:23Z")

</div>

The “deploy --testnet” feature was added in beta-4, which requires forc \>0.46.

In order to update your toolchain you need to:

1. Update fuelup by running `fuelup self update`
2. Install the beta-4 toolchain by following [this guide](https://docs.fuel.network/guides/installation/#installing-the-propsfueltestnet-toolchain).

- Install the toolchain: `fuelup toolchain install beta-4`
- Set beta-4 as the default toolchain: `fuelup default beta-4`

Let me know if this works for you 🌴

---

<div class="post-metadata">

**Author:** ![siliasi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/siliasi/32/1899_2.png) [@siliasi](https://forum.fuel.network/u/siliasi)\
**Post date:** [November 29, 2023, 6:35am UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/9 "2023-11-29T06:35:15Z")

</div>

(x㉿kali)-[~]  
└─$ fuelup self update  
Fetching binary from [https://github.com/FuelLabs/fuelup/releases/download/v0.20.0/fuelup-0.20.0-x86\_64-unknown-linux-gnu.tar.gz](https://github.com/FuelLabs/fuelup/releases/download/v0.20.0/fuelup-0.20.0-x86_64-unknown-linux-gnu.tar.gz)  
Downloading component fuelup without verifying checksum  
Unpacking and moving fuelup to /tmp/.tmpXGIFyl  
Moving /tmp/.tmpXGIFyl/fuelup to /home/x/.fuelup/bin/fuelup

┌──(x㉿kali)-[~]  
└─$ fuelup toolchain install beta-4

Could not build download configs from channel

┌──(x㉿kali)-[~]  
└─$

---

<div class="post-metadata">

**Author:** ![siliasi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/siliasi/32/1899_2.png) [@siliasi](https://forum.fuel.network/u/siliasi)\
**Post date:** [November 29, 2023, 7:37am UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/10 "2023-11-29T07:37:36Z")

</div>

(x㉿kali)-[~]  
└─$ curl --proto ‘=https’ --tlsv1.2 -sSf [https://install.fuel.network/fuelup-init.sh](https://install.fuel.network/fuelup-init.sh) | sh  
fuelup: warning: forc is already installed via cargo and is in use by your system. You should update your PATH, or execute ‘cargo uninstall forc’  
fuelup: warning: forc-fmt is already installed via cargo and is in use by your system. You should update your PATH, or execute ‘cargo uninstall forc-fmt’  
fuelup: warning: forc-explore is already installed via cargo and is in use by your system. You should update your PATH, or execute ‘cargo uninstall forc-explore’  
fuelup: warning: forc-lsp is already installed via cargo and is in use by your system. You should update your PATH, or execute ‘cargo uninstall forc-lsp’  
fuelup: warning: fuel-core is already installed via cargo and is in use by your system. You should update your PATH, or execute ‘cargo uninstall fuel-core’

fuelup uses “/home/x/.fuelup” as its home directory to manage the Fuel toolchain, and will install binaries there.

To use the toolchain, you will have to configure your PATH, which tells your machine where to locate fuelup and the Fuel toolchain.

If permitted, fuelup-init will configure your PATH for you by running the following:

```
echo "export PATH="$HOME/.fuelup/bin:$PATH"" >> /home/x/.zshrc

```

Would you like fuelup-init to modify your PATH variable for you? (N/y)  
y

fuelup will modify your PATH variable for you.

info: downloading fuelup 0.20.0

Could not build download configs from channel

fuelup 0.20.0 has been installed in /home/x/.fuelup/bin. To fetch the latest toolchain containing the forc and fuel-core binaries, run ‘fuelup toolchain install latest’. To generate completions for your shell, run ‘fuelup completions --shell=SHELL’.

/home/x/.fuelup/bin already exists in your PATH.

┌──(x㉿kali)-[~]  
This happens when I’m installing fuel tool chain. Wondering why it doesn’t install all dependecies

---

<div class="post-metadata">

**Author:** ![sandusky](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sandusky/32/1313_2.png) [@sandusky](https://forum.fuel.network/u/sandusky)\
**Post date:** [November 29, 2023, 5:35pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/11 "2023-11-29T17:35:21Z")

</div>

Hi there!

I recommend doing a clean installation after removing completely the ` /home/x/.fuelup` directory.

---

<div class="post-metadata">

**Author:** ![officialsirvic](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/officialsirvic/32/1936_2.png) [@officialsirvic](https://forum.fuel.network/u/officialsirvic)\
**Post date:** [November 30, 2023, 9:26am UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/12 "2023-11-30T09:26:14Z")

</div>

Hey guys, I also have some issues while trying to deploy a smart contract using ubuntu. I don’t know how to duplicate ubuntu screen so fetching the signature required to sign the transaction ID is where i am stuck.

When it says “provide the signature…” I can’t because I need to duplicate the shell before signing with the tx-id. I tried signing using the “sign message” section on wallet.fuel… but it didn’t work.

---

<div class="post-metadata">

**Author:** ![sandusky](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.fuel.network/sandusky/32/1313_2.png) [@sandusky](https://forum.fuel.network/u/sandusky)\
**Post date:** [December 5, 2023, 10:49pm UTC](https://forum.fuel.network/t/fuel-counter-contract-deploy-error/3691/13 "2023-12-05T22:49:34Z")

</div>

Hi there @officialsirvic please create a new topic for your specific issue!  
Thanks!
