Comments (16)
The problem should be solved. There was a typo in a number in the building of the docker compose file for the 9c-swarm-miner, limiting the workers. This would cause requests to backup, leading to cascading issues.
from ninechronicles.headless.
I've been having the same issue. I only run 1 Miner on an PC running Ubuntu Natively. Attached is the Log for my work day. Zipped it's 20megs. It's 100megs unzipped. Should give you guys a good idea of what might be going on.
miner_log.zip
from ninechronicles.headless.
Hi @Magby123, can you show me the list of headless options you used when running the docker image(except for the private key)?
from ninechronicles.headless.
headless options you used when running the docker image
(but only with 1 miner) . This settings ?
from ninechronicles.headless.
Hi @Magby123, can you show me the list of headless options you used when running the docker image(except for the private key)?
Docker settings:
https://clip2net.com/s/4aMEVgn
https://clip2net.com/s/4aMEVM0
https://clip2net.com/s/4aMEW67
https://clip2net.com/s/4aMEWpp
https://clip2net.com/s/4aMEXgu
https://clip2net.com/s/4aMEXFH
https://clip2net.com/s/4aMEXWA
from ninechronicles.headless.
@Magby123, thanks for the info.
At first glance, it appears that your miner isn't connected to other peers on the network. I took a look at the options for NineChronicles.Headless in 9c-swarm-miner
(https://github.com/CryptoKasm/9c-swarm-miner/blob/97e9874bf67014200ca1b08308c5b40ed6d10b2b/bin/build-compose.sh#L55) and it appears that they're all correct.
While running the 9c-swarm-miner
on your local, can you go to "http://localhost:23061/ui/playground" on your browser and send a query on the left section as below:
query {
peerChainState{
state
}
}
Please send me a screenshot of the result.
from ninechronicles.headless.
@Magby123, thanks for the info.
At first glance, it appears that your miner isn't connected to other peers on the network. I took a look at the options for NineChronicles.Headless in
9c-swarm-miner
(https://github.com/CryptoKasm/9c-swarm-miner/blob/97e9874bf67014200ca1b08308c5b40ed6d10b2b/bin/build-compose.sh#L55) and it appears that they're all correct.While running the
9c-swarm-miner
on your local, can you go to "http://localhost:23061/ui/playground" on your browser and send a query on the left section as below:query { peerChainState{ state } }
Please send me a screenshot of the result.
from ninechronicles.headless.
@Magby123, thanks for the info.
At first glance, it appears that your miner isn't connected to other peers on the network. I took a look at the options for NineChronicles.Headless in9c-swarm-miner
(https://github.com/CryptoKasm/9c-swarm-miner/blob/97e9874bf67014200ca1b08308c5b40ed6d10b2b/bin/build-compose.sh#L55) and it appears that they're all correct.
While running the9c-swarm-miner
on your local, can you go to "http://localhost:23061/ui/playground" on your browser and send a query on the left section as below:query { peerChainState{ state } }
from ninechronicles.headless.
@Magby123, thanks for the info.
At first glance, it appears that your miner isn't connected to other peers on the network. I took a look at the options for NineChronicles.Headless in
9c-swarm-miner
(https://github.com/CryptoKasm/9c-swarm-miner/blob/97e9874bf67014200ca1b08308c5b40ed6d10b2b/bin/build-compose.sh#L55) and it appears that they're all correct.While running the
9c-swarm-miner
on your local, can you go to "http://localhost:23061/ui/playground" on your browser and send a query on the left section as below:query { peerChainState{ state } }
Please send me a screenshot of the result.
... And its stuck in 4 minutes ( no new logs for about 10+ minutes)
from ninechronicles.headless.
@Magby123
From your screenshot, I don't think there's much issue with the network.
Instead of the log modified by 9c-swarm-miner, can you send me the full log when running the miner so that I can look at the entire process(Run the miner and when you think there's something wrong, retrieve the log while the container is still running)? You can save your log with the following command:
docker logs [CONTAINER] > [PATH TO SAVE]
ex) docker logs 9c-swarm-miner_swarm-miner1_1 > ~/Desktop/miner.log
In general, "Mined a block" only means a block is mined on your local and it doesn't guarantee that the block will be taken into the main chain in the network. Regardless, I'll need to take a look at the full log to assess the situation. Thanks!
from ninechronicles.headless.
@Magby123
From your screenshot, I don't think there's much issue with the network.
Instead of the log modified by 9c-swarm-miner, can you send me the full log when running the miner so that I can look at the entire process(Run the miner and when you think there's something wrong, retrieve the log while the container is still running)? You can save your log with the following command:docker logs [CONTAINER] > [PATH TO SAVE] ex) docker logs 9c-swarm-miner_swarm-miner1_1 > ~/Desktop/miner.log
In general, "Mined a block" only means a block is mined on your local and it doesn't guarantee that the block will be taken into the main chain in the network. Regardless, I'll need to take a look at the full log to assess the situation. Thanks!
Command doesent work . if i use "docker logs 9c-swarm-miner_swarm-miner1_1" it will spamm with logs....
https://clip2net.com/s/4aO4DiY
from ninechronicles.headless.
@Magby123
The path in the example(~/Desktop/miner.log
) might not work for Ubuntu. Maybe you can try ./miner.log
at the same pwd in the photo you sent and the log will probably be saved in the ~/9c-swarm-miner/
directory.
Btw, "docker logs 9c-swarm-miner_swarm-miner1_1" basically shows you our full log when running the miner! π
from ninechronicles.headless.
@Magby123
The path in the example(~/Desktop/miner.log
) might not work for Ubuntu. Maybe you can try./miner.log
at the same pwd in the photo you sent and the log will probably be saved in the~/9c-swarm-miner/
directory.Btw, "docker logs 9c-swarm-miner_swarm-miner1_1" basically shows you our full log when running the miner! π
Sorry, im not unbuntu user, and docker have no simple ways to copy it logs to file Under windows 10... But it writes a lot during use ( this miner). So idk how to get them to transfer.
from ninechronicles.headless.
@Magby123
Can you follow these steps below?
- Run
./9c-swarm-miner.sh
(left-side of Screenshot1) - Wait until your issue emerges
- On Windows PowerShell, run
docker logs 9c-swarm-miner_swarm-miner1_1 > ~/Desktop/miner.log
(right-side of Screenshot1) - Locate the
miner.log
file on your Desktop (Screenshot2)
Then you can upload that file on this thread. Thanks!
from ninechronicles.headless.
Hi @KazOps, thanks for sending me the log.
From reviewing your log, it appears that the headless miner is working as expected.
But I do think there are couple points that might cause some confusion:
-
Currently, 9c-swarm-miner looks for a "Mined a block" message in the headless log as the key indicator that you have successfully mined a block and that the block has been accepted in the "main" chain. Although this could be true, keep in mine that "Mined a block" only guarantees that a block has been mined in your local miner and doesn't necessarily ensure that the block is accepted in the "main" chain (e.g. reorg / someone else's block has been taken in the network).
-
Within the log, you can sometime see an append error that goes like:
[16:45:33 ERR] Append failed. The block is invalid.
This is will happen for blocks in multiples of 50 (e.g. #50, #100, #150 and so on) because the network protocol only allows authorized miners to mine those blocks to minimize chain reorg. So this isn't really an error in your miner-- just a rule in the network.
Currently, the only way you can "fully" confirm that your block is in the "main" chain is by referring to libplanet-explorer. If you want to check your specific account, you can do so by going to http://explorer.libplanet.io/9c-main/account/?[YOUR_PUBLIC_KEY].
Let me know if you have other questions and thanks again for your input!
from ninechronicles.headless.
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions.
from ninechronicles.headless.
Related Issues (20)
- Migrate to AllRuneState
- Update OpenTelemetry package to patch security
- Fix updated avatar state ap, daily reward received index
- `NineChronicles.Headless.Executable.Tests` project build fails
- Introduce an option to turn on `RemoteKeyValueService` optionally
- Deprecate `ValidationQuery`
- ν€λλ¦¬μ€ μλ λ λͺ©λ‘ μ΅μ ν
- IssueToken ν€λλ¦¬μ€ μ‘μ 쿼리 μμ± HOT 1
- Add Unlock Combination Slot Action
- change rapid combination action query
- Bump github actions version
- `ActionCommandTest` fails on .net8 HOT 2
- Replace Fixed Private Key in NineChronicles.Executor with CLI Tool `Planet`
- Provide a command to generate GraphQL schema
- headless README μμ±, gfi μ μ
- Fix README format link
- Remove unused ArenaParticipantsWorker related code
- Deprecate outdated ActionMutation
- Support more minterless CurrencyEnumType
- Build sometimes fails in CI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ninechronicles.headless.