Skip to content
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

[ERR] failed to load provider keys got yaml: unmarshal errors: #3749

Closed
timeisflowing opened this issue May 28, 2023 · 15 comments · Fixed by projectdiscovery/uncover#230 or #3773
Closed
Assignees
Labels
Priority: High After critical issues are fixed, these should be dealt with before any further issues. Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone

Comments

@timeisflowing
Copy link

./nuclei
[ERR] failed to load provider keys got yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `/home/z...` into sources.Provider

                    __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v2.9.5

		projectdiscovery.io

[INF] Current nuclei version: v2.9.5 (latest)
[INF] Current nuclei-templates version: v9.5.0 (latest)
[INF] New templates added in latest release: 62
[INF] Templates loaded for current scan: 5958
[INF] No results found. Better luck next time!`

If anyone has such a problem, this is because uncover could not find the configuration file

the file that should be: /home/user/.config/uncover/provider-config.yaml

Solution: go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest then run it 1 time uncover application the configuration file is generated automatically:

That's it, regards, have a nice day.

@timeisflowing timeisflowing added the Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors. label May 28, 2023
@mastercho
Copy link

Any solution for Windows?

@reewardius
Copy link

and again the error that was in the previous version...

nuclei -t *.yaml -validate

Could not find template '*.yaml': no templates found for path
All templates validated successfully

@timeisflowing
Copy link
Author

Any solution for Windows?

Just install uncover and the problem will be solved enough.

@timeisflowing
Copy link
Author

and again the error that was in the previous version...

nuclei -t *.yaml -validate

Could not find template '*.yaml': no templates found for path All templates validated successfully

This is not a template problem, it's looking for a configuration file because uncover is not installed.

@mastercho
Copy link

Any solution for Windows?

Just install uncover and the problem will be solved enough.

just want to say that i did install in windows uncover with following command

go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest

but still getting the same error...

@leorac
Copy link

leorac commented May 29, 2023

So do we have to install uncover to fix this error? Doesn't seem to be the best solution to me...

@ehsandeep
Copy link
Member

@leorac, that's a temporary solution before we fix the issue in the nuclei.

@timeisflowing, thanks for opening this issue and sharing a temporary solution for others.

@ehsandeep ehsandeep added the Priority: High After critical issues are fixed, these should be dealt with before any further issues. label May 29, 2023
@u1tr0nex
Copy link

./nuclei
[ERR] failed to load provider keys got yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `/home/z...` into sources.Provider

                    __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v2.9.5

		projectdiscovery.io

[INF] Current nuclei version: v2.9.5 (latest)
[INF] Current nuclei-templates version: v9.5.0 (latest)
[INF] New templates added in latest release: 62
[INF] Templates loaded for current scan: 5958
[INF] No results found. Better luck next time!`

If anyone has such a problem, this is because uncover could not find the configuration file

the file that should be: /home/user/.config/uncover/provider-config.yaml

Solution: go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest then run it 1 time uncover application the configuration file is generated automatically:

That's it, regards, have a nice day.

worked for me thanks, ran uncover once.

@reewardius
Copy link

and again the error that was in the previous version...

nuclei -t *.yaml -validate

Could not find template '*.yaml': no templates found for path All templates validated successfully

This is not a template problem, it's looking for a configuration file because uncover is not installed.

uncover is installed

@timeisflowing
Copy link
Author

and again the error that was in the previous version...

nuclei -t *.yaml -validate

Could not find template '*.yaml': no templates found for path All templates validated successfully

This is not a template problem, it's looking for a configuration file because uncover is not installed.

uncover is installed

run it 1 time uncover, after check if there is a file: cat ~/.config/uncover/provider-config.yaml

If everything is correct so far, then there is no problem.

@mastercho
Copy link

Any solution for Windows?

Just install uncover and the problem will be solved enough.

just want to say that i did install in windows uncover with following command

go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest

but still getting the same error...

For Windows is not working with go install but if you download binary and run it once then should be fine

@ehsandeep
Copy link
Member

Reopening as this needs to be fixed in nuclei.

@tarunKoyalwar
Copy link
Member

@ehsandeep should be resolved with projectdiscovery/uncover#230

@Mr-7r0j4n
Copy link

./nuclei
[ERR] failed to load provider keys got yaml: unmarshal errors:
  line 1: cannot unmarshal !!str `/home/z...` into sources.Provider

                    __     _
   ____  __  _______/ /__  (_)
  / __ \/ / / / ___/ / _ \/ /
 / / / / /_/ / /__/ /  __/ /
/_/ /_/\__,_/\___/_/\___/_/   v2.9.5

		projectdiscovery.io

[INF] Current nuclei version: v2.9.5 (latest)
[INF] Current nuclei-templates version: v9.5.0 (latest)
[INF] New templates added in latest release: 62
[INF] Templates loaded for current scan: 5958
[INF] No results found. Better luck next time!`

If anyone has such a problem, this is because uncover could not find the configuration file

the file that should be: /home/user/.config/uncover/provider-config.yaml

Solution: go install -v github.com/projectdiscovery/uncover/cmd/uncover@latest then run it 1 time uncover application the configuration file is generated automatically:

That's it, regards, have a nice day.

That's worked for me, Thanks for the solution...

@ehsandeep ehsandeep linked a pull request Jun 1, 2023 that will close this issue
4 tasks
@ehsandeep ehsandeep added the Status: Completed Nothing further to be done with this issue. Awaiting to be closed. label Jun 1, 2023
@ehsandeep
Copy link
Member

@timeisflowing @mastercho @leorac @u1tr0nex @Mr-7r0j4n @reewardius this is now fixed in latest release - https://github.com/projectdiscovery/nuclei/releases/tag/v2.9.6

@ehsandeep ehsandeep added this to the nuclei v2.9.6 milestone Jun 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: High After critical issues are fixed, these should be dealt with before any further issues. Status: Completed Nothing further to be done with this issue. Awaiting to be closed. Type: Bug Inconsistencies or issues which will cause an issue or problem for users or implementors.
Projects
None yet
8 participants