-
Notifications
You must be signed in to change notification settings - Fork 205
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
service: print more error message #1388
service: print more error message #1388
Conversation
@WeiZhang555 , a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/88725 |
a8c1fc1
to
9c9c5d3
Compare
@WeiZhang555 , The CI test is completed, please check result:
Sorry, your test job failed. Please get the details in the link. |
Codecov Report
@@ Coverage Diff @@
## master #1388 +/- ##
==========================================
- Coverage 46.31% 46.05% -0.26%
==========================================
Files 122 122
Lines 38071 38077 +6
Branches 38071 38077 +6
==========================================
- Hits 17632 17536 -96
- Misses 19513 19621 +108
+ Partials 926 920 -6
|
More details: Following tutorial: https://github.com/dragonflyoss/image-service/blob/master/docs/tutorial.md#build-nydus-image-from-directory-source When I tried to start a
The nydusd errors out with this message: It saids "Invalid arguments" which confused me a lot, after some debugging, I found that RAFSv6 needs to set blob cache config, e.g.
A better error message should tell us the configuration is error, so I just add a little bit new code to reveal the inner error. Final result: The docs should be updated too, I'll append another commit. |
9c9c5d3
to
880adbb
Compare
@WeiZhang555 , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/88755 |
@WeiZhang555 , The CI test is completed, please check result:
Congratulations, your test job passed! |
Some error messages were swallowed which makes user confused, for example, for RAFSv6, we need to set blobcache config in `localfs.json` (following docs tutorial), before modification, the error message indicates nothing: ``` ERROR [src/bin/nydusd/main.rs:525] Failed in starting daemon: Invalid argument (os error 22) ``` After this modification, we get clearer error message: ``` ERROR [/src/fusedev.rs:595] service mount error: RAFS failed to handle request, Configure("Rafs v6 must have local blobcache configured") ``` Signed-off-by: Wei Zhang <[email protected]>
880adbb
to
b09acfa
Compare
@WeiZhang555 , the code has been updated, so a new test job has been submitted. Please wait in patience. The test job url: https://tone.openanolis.cn/ws/nrh4nnio/test_result/89086 |
@WeiZhang555 , The CI test is completed, please check result:
Congratulations, your test job passed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very detailed analysis, thanks for your work!
Some error messages were swallowed which makes user confused, for example, for RAFSv6, we need to set blobcache config in
localfs.json
(following docs tutorial), before modification, the error message indicates nothing:After this modification, we get clearer error message:
Relevant Issue (if applicable)
Details
Please describe the details of PullRequest.
Types of changes
Checklist