near / near-indexer-for-explorer

Watch NEAR network and store all the data from NEAR blockchain to PostgreSQL database
https://near-indexers.io/docs/projects/near-indexer-for-explorer
GNU General Public License v3.0
123 stars 56 forks source link

IO error: while open a file for lock: ../near/mainnet/data/LOCK: Permission denied #182

Closed WuTao18 closed 2 years ago

WuTao18 commented 2 years ago

I tried to run near indexer for explorer as archival node. I downloaded the backup and put it in data folder. I received the error when I ran the node: image

rayn316 commented 2 years ago

If you are sure that no other programs are using the database, you can delete this file and run it again.

WuTao18 commented 2 years ago

If you are sure that no other programs are using the database, you can delete this file and run it again.

I deleted this file and ran the node again, then I encountered the following problems: image

rayn316 commented 2 years ago

Explain that you have already run the same program, you need to find the program and close it. ** * @WuTao18 You may have run the archive node program, but did not close it This program and the archive node program cannot run at the same time

WuTao18 commented 2 years ago

Explain that you have already run the same program, you need to find the program and close it. ** * @WuTao18 You may have run the archive node program, but did not close it This program and the archive node program cannot run at the same time

I have not run the same program. I tried to restart the machine and then run the node again, there is still the same problem.

frol commented 2 years ago

You have your data folder corrupted. Please, download a fresh data folder backup: https://docs.near.org/docs/develop/node/validator/running-a-node#starting-a-node-from-backup