Chia services starting up, but then FileNotFoundError: can't find vdf_client binary

So the situation is following. I’m trying to start the chia with command “chia start all” . It looks normal for the couple of seconds. It says all services started. But just after few seconds

 chia start all
chia_harvester: started
chia_timelord_launcher: started
chia_timelord: started
chia_farmer: started
chia_full_node: started
chia_wallet: started
(venv) chia@amd:~/chia-blockchain$ 

Here i have few seconds pause, and then comes this error:

Traceback (most recent call last):
  File "/home/chia/chia-blockchain/venv/bin/chia_timelord_launcher", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia_timelord_launcher')())
  File "/home/chia/chia-blockchain/chia/timelord/timelord_launcher.py", line 107, in main
    loop.run_until_complete(spawn_all_processes(config, net_config))
  File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
    return future.result()
  File "/home/chia/chia-blockchain/chia/timelord/timelord_launcher.py", line 85, in spawn_all_processes
    await asyncio.gather(*awaitables)
  File "/home/chia/chia-blockchain/chia/timelord/timelord_launcher.py", line 45, in spawn_process
    path_to_vdf_client = find_vdf_client()
  File "/home/chia/chia-blockchain/chia/timelord/timelord_launcher.py", line 39, in find_vdf_client
    raise FileNotFoundError("can't find vdf_client binary")
FileNotFoundError: can't find vdf_client binary
chia start all

Any ideas for this error?
Thank you.

1 Like

As well when trying to start the plotter, it gives error “Permission denied”. Tried to chmod -R 775 for those folders, but did not helped.

(venv) chia@amd:~/chia-blockchain$ chia plots create -k 32 -n 1 -b 4608 -t /home/chia/500gb_hdd/chia_temp/ -2 /home/chia/nvme0/chia_temp/ -d /home/chia/2tb_hdd/ -r 2 -u 128 
2021-05-21T14:36:04.981  chia.plotting.create_plots       : INFO     Creating 1 plots of size 32, pool public key:  90.....21 farmer public key: aa.....04
2021-05-21T14:36:04.989  chia.plotting.create_plots       : INFO     Memo: 90.......84
2021-05-21T14:36:04.989  chia.plotting.create_plots       : INFO     Starting plot 1/1

Starting plotting progress into temporary dirs: /home/chia/500gb_hdd/chia_temp and /home/chia/nvme0/chia_temp
ID: c4.....1c
Plot size is: 32
Buffer size is: 4608MiB
Using 128 buckets
Using 2 threads of stripe size 65536
Caught plotting error: Could not open /home/chia/500gb_hdd/chia_temp/plot-k32-2021-05-21-14-36-c42d5a238a28917ce2e7c35a0afb22c2a4d3d3f931f0746722ad60e9298c731c.plot.sort.tmp: Permission denied.
Traceback (most recent call last):
  File "/home/chia/chia-blockchain/venv/bin/chia", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia')())
  File "/home/chia/chia-blockchain/chia/cmds/chia.py", line 77, in main
    cli()  # pylint: disable=no-value-for-parameter
  File "/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/decorators.py", line 21, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/home/chia/chia-blockchain/chia/cmds/plots.py", line 135, in create_cmd
    create_plots(Params(), ctx.obj["root_path"])
  File "/home/chia/chia-blockchain/chia/plotting/create_plots.py", line 164, in create_plots
    plotter.create_plot_disk(
RuntimeError: std::exception
(venv) chia@amd:~/chia-blockchain$

Looks like you installed chia as root and trying to run if as chia user. Check who owns ~/chia-blockchain/* and /home/chia/500gb_hdd/chia_temp/
Or miss something to install )) What OS?

1 Like

Im having a similar issue with chia start all and i have to use chia start farmer after a chia stop -d all

It says my chia-blockchain folder is root:
drwxr-xr-x 11 root root 4096 May 4 17:46 chia-blockchain

Is that not right?

`(venv) username@chia:~$ chia start all
Daemon not started yet
Starting daemon
chia_harvester: started
chia_timelord_launcher: started
chia_timelord: started
chia_farmer: started
chia_full_node: started
chia_wallet: started
(venv) username@chia:~$ Traceback (most recent call last):
File “/home/username/chia-blockchain/venv/bin/chia_timelord_launcher”, line 33, in
sys.exit(load_entry_point(‘chia-blockchain’, ‘console_scripts’, ‘chia_timelord_launcher’)())
File “/home/username/chia-blockchain/chia/timelord/timelord_launcher.py”, line 107, in main
loop.run_until_complete(spawn_all_processes(config, net_config))
File “/usr/lib/python3.8/asyncio/base_events.py”, line 616, in run_until_complete
return future.result()
File “/home/username/chia-blockchain/chia/timelord/timelord_launcher.py”, line 85, in spawn_all_processes
await asyncio.gather(*awaitables)
File “/home/username/chia-blockchain/chia/timelord/timelord_launcher.py”, line 45, in spawn_process
path_to_vdf_client = find_vdf_client()
File “/home/username/chia-blockchain/chia/timelord/timelord_launcher.py”, line 39, in find_vdf_client
raise FileNotFoundError(“can’t find vdf_client binary”)
FileNotFoundError: can’t find vdf_client binary

(venv) username@chia:~$ chia stop -d all

(venv) username@chia:~$ chia start farmer
Daemon not started yet
Starting daemon
chia_harvester: started
chia_farmer: started
chia_full_node: started
chia_wallet: started
(venv) username@chia:~$ chia show -s
Current Blockchain Status: Full Node syncing to block 329430
Currently synced to block: 303798
Current Blockchain Status: Not Synced. Peak height: 303798
Time: Wed May 19 2021 08:25:52 UTC Height: 303798

Estimated network space: 6.727 EiB
Current difficulty: 454
Current VDF sub_slot_iters: 114819072
Total iterations since the start of the blockchain: 982590618546

Height: | Hash:
303798 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303797 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303796 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303795 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303794 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303793 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303792 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303791 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303790 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
303789 | xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
(venv) username@chia:~$ `

Thus you must run chia as root user, once you installed it as root.
Try to remove it and install it as user, not as root.

I’ll do just that. Im going to start with a fresh install.

But when install chia it asks for sudo password, because it can’t install it without sudo. please see: sh install.sh

apt-get is /usr/bin/apt-get
Installing on Ubuntu 20.04 LTS.
[sudo] password for chia:

While the next command is run without sudo:
chia@biostar:~/chia-blockchain$ . ./activate
(venv) chia@biostar:~/chia-blockchain$ chia keys add
Traceback (most recent call last):
File “/home/chia/chia-blockchain/venv/bin/chia”, line 33, in
sys.exit(load_entry_point(‘chia-blockchain’, ‘console_scripts’, ‘chia’)())
File “/home/chia/chia-blockchain/chia/cmds/chia.py”, line 77, in main
cli() # pylint: disable=no-value-for-parameter
File “/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py”, line 829, in call
return self.main(*args, **kwargs)
File “/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py”, line 782, in main
rv = self.invoke(ctx)
File “/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py”, line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py”, line 1256, in invoke
Command.invoke(self, ctx)
File “/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py”, line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/core.py”, line 610, in invoke
return callback(*args, **kwargs)
File “/home/chia/chia-blockchain/venv/lib/python3.8/site-packages/click/decorators.py”, line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/chia/chia-blockchain/chia/cmds/keys.py”, line 12, in keys_cmd
raise RuntimeError(“Please initialize (or migrate) your config directory with chia init”)
RuntimeError: Please initialize (or migrate) your config directory with chia init

And this is also fresh install :expressionless:

In install.sh sudo used only to install python:

sudo apt-get install -y python3.7-venv python3.7-distutils (line in script)

It’s normal installation case to ask superuser permissions. But if you run sudo install.sh the whole installation would be done for super user.

You have another issue:
RuntimeError: Please initialize (or migrate) your config directory with chia init
There is no /home/chia/.chia folder with corresponding files.
You need to run GUI or copy your old .chia folder here or call chia init

It says:

chia init
Chia directory /home/chia/.chia/mainnet
/home/chia/.chia/mainnet already exists, no migration action taken
(venv) chia@biostar:~/chia-blockchain$

As well i see that all except 1 service are started or isn’t?

chia@biostar:~/chia-blockchain$ chia start all
chia_harvester: Already running, use -r to restart
chia_timelord_launcher: started
chia_timelord: Already running, use -r to restart
chia_farmer: Already running, use -r to restart
chia_full_node: Already running, use -r to restart
chia_wallet: Already running, use -r to restart
(venv) chia@biostar:~/chia-blockchain$ Traceback (most recent call last):
File “/home/chia/chia-blockchain/venv/bin/chia_timelord_launcher”, line 33, in
sys.exit(load_entry_point(‘chia-blockchain’, ‘console_scripts’, ‘chia_timelord_launcher’)())
File “/home/chia/chia-blockchain/chia/timelord/timelord_launcher.py”, line 107, in main
loop.run_until_complete(spawn_all_processes(config, net_config))
File “/usr/lib/python3.8/asyncio/base_events.py”, line 616, in run_until_complete
return future.result()
File “/home/chia/chia-blockchain/chia/timelord/timelord_launcher.py”, line 85, in spawn_all_processes
await asyncio.gather(*awaitables)
File “/home/chia/chia-blockchain/chia/timelord/timelord_launcher.py”, line 45, in spawn_process
path_to_vdf_client = find_vdf_client()
File “/home/chia/chia-blockchain/chia/timelord/timelord_launcher.py”, line 39, in find_vdf_client
raise FileNotFoundError(“can’t find vdf_client binary”)
FileNotFoundError: can’t find vdf_client binary

read this

and this

@gladanimal thank you. I found this “Do not start all. You will want to chia start farmer almost all the time.” And looks like this is what you where pointing me. But then i have a question:

Is there any official guide or step by step tutorial? I mean where from should i know, that “chia start all” is not recommended while “chia farmer start” is the correct one. And what to do next? :slight_smile:

TY

The best official guides is a wiki. It seems to be up-to-date.

and questions on this forum ))