I tried setup and it seemed to have worked, but when I check the logs I see errors (any idea what could be wrong?):
hived-1 | 2025-01-08T02:03:46.569591 application.cpp:110 startup ] Startup...
hived-1 | 2025-01-08T02:03:46.571181 chain_plugin.cpp:1776 plugin_startup ] Chain plugin initialization...
hived-1 | 2025-01-08T02:03:46.571200 chain_plugin.cpp:800 initial_settings ] Starting chain with shared_file_size: 25769803776 bytes
hived-1 | 2025-01-08T02:03:46.571217 chain_plugin.cpp:1780 plugin_startup ] Database opening...
hived-1 | 2025-01-08T02:03:46.571231 chain_plugin.cpp:905 open ] Opening shared memory from /home/hived/datadir/blockchain
hived-1 | 2025-01-08T02:03:46.571272 chainbase.cpp:223 operator() ] Free space available: 1061724352512. Shared file size: 25769803776
hived-1 | 2025-01-08T02:03:46.571477 database.cpp:179 pre_open ] 13 N5boost12interprocess22interprocess_exceptionE: Permission denied
hived-1 | rethrow Permission denied: (unformatted args: ("args.data_dir",/home/hived/datadir/blockchain),("args.shared_mem_dir",/home/hived/datadir/blockchain),("args.shared_file_size",25769803776))
hived-1 | {"args.data_dir":"/home/hived/datadir/blockchain","args.shared_mem_dir":"/home/hived/datadir/blockchain","args.shared_file_size":25769803776,"what":"Permission denied"}
hived-1 | database.cpp:179 pre_open
hived-1 | 2025-01-08T02:03:46.571493 database.cpp:179 pre_open ] args.data_dir: /home/hived/datadir/blockchain args.shared_mem_dir: /home/hived/datadir/blockchain args.shared_file_size: 25769803776
hived-1 | 2025-01-08T02:03:46.571537 chain_plugin.cpp:919 open ] 13 N5boost12interprocess22interprocess_exceptionE: Permission denied
hived-1 | rethrow Permission denied: (unformatted args: ("args.data_dir",/home/hived/datadir/blockchain),("args.shared_mem_dir",/home/hived/datadir/blockchain),("args.shared_file_size",25769803776))
hived-1 | {"args.data_dir":"/home/hived/datadir/blockchain","args.shared_mem_dir":"/home/hived/datadir/blockchain","args.shared_file_size":25769803776,"what":"Permission denied"}
hived-1 | database.cpp:179 pre_open
hived-1 | 2025-01-08T02:03:46.571606 blockchain_worker_thread_pool.cpp:511 shutdown ] shutting down worker threads
hived-1 | 2025-01-08T02:03:46.571809 blockchain_worker_thread_pool.cpp:516 shutdown ] worker threads successfully shut down
hived-1 | 2025-01-08T02:03:46.571823 chain_plugin.cpp:898 boost_se_body ] Error opening database or block log. If the binary or configuration has changed, replay the blockchain explicitly using --force-replay
.
hived-1 | 2025-01-08T02:03:46.772068 application.cpp:427 wait ] Attempting to request for application shutdown...
hived-1 | 2025-01-08T02:03:46.772123 application.cpp:429 wait ] Request for application shutdown processed.
hived-1 | 2025-01-08T02:03:46.772140 webserver_plugin.cpp:811 plugin_pre_shutdown ] Shutting down webserver_plugin...
hived-1 | 2025-01-08T02:03:46.772937 p2p_plugin.cpp:82 ~p2p_plugin_impl ] P2P plugin is closing...
hived-1 | 2025-01-08T02:03:46.772962 shutdown_mgr.hpp:100 wait ] Processing of 'P2P_BLOCK' in progress...
hived-1 | 2025-01-08T02:03:46.772973 shutdown_mgr.hpp:117 wait ] A value from a different thread is read...
hived-1 | 2025-01-08T02:03:46.772987 shutdown_mgr.hpp:122 wait ] Processing of 'P2P_BLOCK' was finished...
hived-1 | 2025-01-08T02:03:46.773001 shutdown_mgr.hpp:100 wait ] Processing of 'P2P_TRANSACTION' in progress...
hived-1 | 2025-01-08T02:03:46.773034 shutdown_mgr.hpp:117 wait ] A value from a different thread is read...
hived-1 | 2025-01-08T02:03:46.773088 shutdown_mgr.hpp:122 wait ] Processing of 'P2P_TRANSACTION' was finished...
hived-1 | 2025-01-08T02:03:46.773123 p2p_plugin.cpp:95 ~p2p_plugin_impl ] P2P plugin was closed...
hived-1 | 2025-01-08T02:03:46.773298 blockchain_worker_thread_pool.cpp:511 shutdown ] shutting down worker threads
hived-1 | 2025-01-08T02:03:46.773313 blockchain_worker_thread_pool.cpp:516 shutdown ] worker threads successfully shut down
hived-1 | 2025-01-08T02:03:46.773551 main.cpp:94 boost_se_body ] exited cleanly
hived-1 | 2025-01-08T02:03:46.773775 main.cpp:180 main ] 13 N5boost12interprocess22interprocess_exceptionE: Permission denied
hived-1 | rethrow Permission denied: (unformatted args: ("args.data_dir",/home/hived/datadir/blockchain),("args.shared_mem_dir",/home/hived/datadir/blockchain),("args.shared_file_size",25769803776))
hived-1 | {"args.data_dir":"/home/hived/datadir/blockchain","args.shared_mem_dir":"/home/hived/datadir/blockchain","args.shared_file_size":25769803776,"what":"Permission denied"}
hived-1 | database.cpp:179 pre_open
hived-1 | rethrow
hived-1 | {}
hived-1 | chain_plugin.cpp:919 open
hived-1 | Hived process finished execution: return status: 1.
hived-1 | Performing cleanup....
hived-1 | Hived pid:
hived-1 | Waiting for hived finish...
hived-1 | Hived finish done.
hived-1 | Cleanup actions done.
You are viewing a single comment's thread from:
You can see there are "permission denied" errors. Perhaps you cloned the repo under root and that caused the error? You could try giving those folders chmod 777 and try again.
datadir and blockchain folders
Thank you! I did try chmod 777 it gave me some errors so I deleted everything and started over creating a folder under root and then cloning the repo then I chmod it again and docker compose up and it seems to be running!