question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] AttributeError: 'FullNode' object has no attribute 'blockchain'

See original GitHub issue

To Reproduce OS Version: Freebsd 12.2 Release P9 Built From source following wiki guide, using python3.8 instead of 3.7 and clvm_rs 0.1.8 Chia version: Latest - 1.2.3.dev0

Expected behavior Probably shouldn’t have a traceback why trying to stop the full node

Screenshots

(venv) [root@chia ~/chia-1.2.2/chia-blockchain]# chia start farmer -r
chia_harvester: stopped
chia_harvester: started
chia_farmer: stopped
chia_farmer: started
chia_full_node: Traceback (most recent call last):
  File "/root/chia-1.2.2/chia-blockchain/venv/bin/chia_full_node", line 33, in <module>
    sys.exit(load_entry_point('chia-blockchain', 'console_scripts', 'chia_full_node')())
  File "/root/chia-1.2.2/chia-blockchain/chia/server/start_full_node.py", line 60, in main
    return run_service(**kwargs)
  File "/root/chia-1.2.2/chia-blockchain/chia/server/start_service.py", line 255, in run_service
    return asyncio.run(async_run_service(*args, **kwargs))
  File "/usr/local/lib/python3.8/asyncio/runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 603, in run_until_complete
    self.run_forever()
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 570, in run_forever
    self._run_once()
  File "/usr/local/lib/python3.8/asyncio/base_events.py", line 1823, in _run_once
    event_list = self._selector.select(timeout)
  File "/usr/local/lib/python3.8/selectors.py", line 558, in select
    kev_list = self._selector.control(None, max_ev, timeout)
  File "/root/chia-1.2.2/chia-blockchain/chia/server/start_service.py", line 193, in _accept_signal
    self.stop()
  File "/root/chia-1.2.2/chia-blockchain/chia/server/start_service.py", line 210, in stop
    self._node._close()
  File "/root/chia-1.2.2/chia-blockchain/chia/full_node/full_node.py", line 561, in _close
    if self.blockchain is not None:
AttributeError: 'FullNode' object has no attribute 'blockchain'
stopped
chia_full_node: started
chia_wallet: stopped
chia_wallet: started

Rebuilt after updating my jails and had to make some changes to dependencies. When I did a restart of the farmer services I got this traceback but it seemed to stopped even with the failure and restart correctly. After the restart farming has continued and node is synced. Just the traceback when stopping is the problem it seems.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
maxpierpontcommented, Jul 16, 2021

it happens to me too since 1.2+ update . i just run a script with ‘chia start farmer’ on each system reboot, and most times full node won’t start normally, so i have to restart it manually and see “AttributeError: ‘FullNode’ object has no attribute ‘blockchain’” message upon restarting… tried to redownload and rebuild, same behavouir. system is clean ubuntu 20.04 under esxi 6.7

0reactions
emlowecommented, Aug 17, 2021

I don’t believe this has any serious impact as the node will still shutdown - but it is a little messy

Read more comments on GitHub >

github_iconTop Results From Across the Web

Syncing issue : r/chia - Reddit
This morning I woke up and I see this error in the log ... AttributeError: 'NoneType' object has no attribute 'host'.
Read more >
Chia Error : Not farming any plots on this harvester / Cannot ...
Chia Error : Not farming any plots on this harvester / Cannot operate ... AttributeError: 'WalletPeers' object has no attribute 'connection'
Read more >
how to solve this error - AttributeError: 'Node' object has no ...
I am getting this error while running this code and even i have faced some issues while loading weights. kindly provide some reference...
Read more >
web3.py - AttributeError: 'Eth' object has no attribute 'get_block'
Python: 3.9.1; OS: osx. from web3 import Web3 w3 = Web3(Web3.HTTPProvider('http://fullnode.dappnode:8545')).
Read more >
https://s.playwo.de/upload/data/find/2bBiK
... AttributeError: 'WalletPeers' object has no attribute 'connection' 2021-12-28T13:55:47.931 wallet chia.rpc.wallet_rpc_api : ERROR error No backup on ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found