# Transcoder Tip - Geth Light Client

**URL:** <https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247>\
**Category:** Transcoders\
**Created:** [May 13, 2018, 6:50pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247 "2018-05-13T18:50:27Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![dob](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.livepeer.org/dob/32/7_2.png) [@dob](https://forum.livepeer.org/u/dob)\
**Post date:** [May 13, 2018, 6:50pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/1 "2018-05-13T18:50:27Z")

</div>

Transcoding nodes need to read data from the Ethereum blockchain and submit transactions. By default, nodes connect to Infura hosted Geth nodes, which is very convenient. Although these connections often fail or timeout, sometimes resulting in missed transactions or log events. Here’s a tip for an approach that’s been running reliably for a few days: **Run a Geth Light Client on the same machine as your Livepeer node.**

`./geth --cache 256 --maxpeers 50 --syncmode light --rpc --rpcapi db,eth,net,web3 --ws --wsorigins "*"`

Then when you start your livepeer node, tell it to connect to the local geth node with the `--ethUrl` flag:

`-ethUrl ws://127.0.0.1:8546`

_Note: the --wsorigins “\*” flag opens up your node to connections from any machine, so either set this more specifically to only receive connections from your current machine, or make sure your firewall is configured to prevent inbound traffic to your geth node._

---

<div class="post-metadata">

**Author:** ![jbrukh](https://avatars.discourse-cdn.com/v4/letter/j/3ab097/32.png) [@jbrukh](https://forum.livepeer.org/u/jbrukh)\
**Post date:** [May 13, 2018, 7:05pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/2 "2018-05-13T19:05:23Z")

</div>

I’m seeing the flag to be `--ethWsUrl` but I may be using an older version of Livepeer.

---

<div class="post-metadata">

**Author:** ![dob](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.livepeer.org/dob/32/7_2.png) [@dob](https://forum.livepeer.org/u/dob)\
**Post date:** [May 13, 2018, 10:10pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/3 "2018-05-13T22:10:30Z")

</div>

Yah might be a 0.2.1 update. In `livepeer --help` I see…

> -ethUrl string  
> geth/parity rpc or websocket url

---

<div class="post-metadata">

**Author:** ![ericxtang](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.livepeer.org/ericxtang/32/8_2.png) [@ericxtang](https://forum.livepeer.org/u/ericxtang)\
**Post date:** [May 14, 2018, 7:14pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/4 "2018-05-14T19:14:38Z")

</div>

For me, I had to use `--wsorigins "*"` instead of `--wsorigins *`

---

<div class="post-metadata">

**Author:** ![f1l1b0x](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@f1l1b0x](https://forum.livepeer.org/u/f1l1b0x)\
**Post date:** [May 15, 2018, 12:22pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/5 "2018-05-15T12:22:45Z")

</div>

hm getting

I0515 14:21:11.619131 25013 accountmanager.go:76] Passphrase required to unlock ETH account  
Passphrase:  
I0515 14:21:17.233468 25013 accountmanager.go:87] ETH account 0x97bF5D1b06EbE4d97A6E53353973205c611B4677 unlocked  
I0515 14:21:17.233691 25013 client.go:187] Controller: 0xF96D54E490317c557A967ABfA5d6e33006BE69b3  
E0515 14:21:17.235028 25013 client.go:191] Error getting LivepeerToken address: ErrNoResult  
E0515 14:21:17.235070 25013 livepeer.go:324] Failed to setup client: ErrNoResult

---

<div class="post-metadata">

**Author:** ![f1l1b0x](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@f1l1b0x](https://forum.livepeer.org/u/f1l1b0x)\
**Post date:** [May 15, 2018, 1:26pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/6 "2018-05-15T13:26:26Z")

</div>

(never mind it wasn’t synced yet I guess.)

it started now properly, but the tx it is sending doesn’t make it on the eth chain

geht shows:

INFO [05-15|15:15:53] Submitted transaction fullhash=0x54e42732b0915f7cf591125fffd7034c7399463ebacabd97bbaf55a6cec2e1d7 recipient=0x511Bc4556D823Ae99630aE8de28b9B80Df90eA2e

but the tx is never getting there

---

<div class="post-metadata">

**Author:** ![dob](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.livepeer.org/dob/32/7_2.png) [@dob](https://forum.livepeer.org/u/dob)\
**Post date:** [May 15, 2018, 4:07pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/7 "2018-05-15T16:07:07Z")

</div>

I suspect it may just have not been synced/had peers yet. Try opening a geth console…

$ geth attach ~/.ethereum/geth.ipcs

> admin.peers

> eth.blockNumber

Make sure that there are peers listed, and that the block number equals the current block. If it still can’t get transactions out, then that’s weird.

---

<div class="post-metadata">

**Author:** ![0x88](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.livepeer.org/0x88/32/394_2.png) [@0x88](https://forum.livepeer.org/u/0x88)\
**Post date:** [June 7, 2018, 2:38am UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/8 "2018-06-07T02:38:16Z")

</div>

> [@dob](#):
>
> ./geth --cache 256 --maxpeers 50 --syncmode light --rpc --rpcapi db,eth,net,web3 --ws --wsorigins “\*”

hi… i already run this but when i check for eth.blockNumber it still show 0 … I am new to geth console, how to get the geth start syncing?

**update:** all solved 😍

---

<div class="post-metadata">

**Author:** ![herve](https://avatars.discourse-cdn.com/v4/letter/h/2acd7d/32.png) [@herve](https://forum.livepeer.org/u/herve)\
**Post date:** [July 26, 2018, 6:54pm UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/9 "2018-07-26T18:54:16Z")

</div>

thanks Doug, this solved the issue I was having the past few weeks. Was running a full geth node and trying to use the ethIpcUrl flag with no luck.

---

<div class="post-metadata">

**Author:** ![buhaomiaoshu](https://avatars.discourse-cdn.com/v4/letter/b/4af34b/32.png) [@buhaomiaoshu](https://forum.livepeer.org/u/buhaomiaoshu)\
**Post date:** [October 23, 2018, 6:14am UTC](https://forum.livepeer.org/t/transcoder-tip-geth-light-client/247/10 "2018-10-23T06:14:33Z")

</div>

do you fix it ? it block me again
