warning: No sites available. Did you add them? #21
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello, i am getting a message:
warning: No sites available. Did you add them?
npx greenlock add --subject example.com --altnames example.com
invalid maintainer contact info: 'jon@example.com'
I am on windows localhost , using same steps as described in docs:
1.npx greenlock init --maintainer-email 'jon@example.com' --manager-config-file ./greenlock.json
/** creates 3 files **/
2.npx greenlock defaults --subscriber-email 'jon@example.com' --agree-to-terms
3.npx greenlock add --subject example.com --altnames example.com
then i start my node app and i get the error, how can i make it work? Thanks!
Update:
I also tried on my dedicated serve and i followed same steps but i changed the email to my domain email:
1.npx greenlock init --maintainer-email 'info@mydomain.com' --manager-config-file
2.npx greenlock defaults --subscriber-email 'info@mydomain.com' --agree-to-terms
3.npx greenlock add --subject mydomain.com --altnames mydomain.com
than i run: node app.js
and same error:
warning: No sites available. Did you add them?
npx greenlock add --subject example.com --altnames example.com
invalid maintainer contact info: 'info@mydomain.com'
I found this discussion #9 and i tried to add a webiste in greenlock.json as you mentioned it there:
{
"defaults": {},
"sites": [{
"subject": "mydoamin.com",
"altnames": [ "mydoamin.com", "www.mydoamin.com"]
}]
}
and got a message:
Ready to Serve:
mydoamin.com www.mydoamin.com
invalid maintainer contact info: 'info@mydoamin.com'
So i guess it's working but how do i fix invalid maintainer contact info?
Thanks
Unfortunately after 5 hours i can't figure out how to fix invalid maintainer issue, i have tried everything from the scratch and same thing over and over!
here are my steps:
does nothing only open my editor with the file greenlock.js
does nothing only open my editor with the file greenlock.js
4.delete greenlock.js and run again:
(create greenlock.json)
5.run again npx greenlock add --subject mydoamin.com --altnames mydoamin.com,www.mydoamin.com
results:
6.run my app: node app.js
results:
Listening on { address: '123.123.123.123', family: 'IPv4', port: 443 }
Ready to Serve:
mydoamin.com www.mydoamin.com
invalid maintainer contact info: info@mydoamin.com
(by the way, i find https://git.rootprojects.org/ one of the worst gits i ever used!!! It's down every few hours and editor is a nightmare!)
its because of the duplicate quotes: " ' someemail@someurl ' "
at least thets what the command generated for me.
on windows second and third command did nothing (at least for me) but i ran it on a raspberrypi and copied the greenlock.json file
EDIT: the issue has been raised before and a quick fix has been described here: #17
the config options also confuse me as well tho
You just have to use a valid email address. Fake email addresses (domains that don't have valid MX records) won't work.
Windows has a longstanding bug with node where you can't have a file in a directory with the same name as an npm command.
I published v4, which uses a config directory rather than a a
greenlock.js
orgreenlock.json
file, which causes the problem with windows.My guess is that some of the issues you were having were windows specific, which I hadn't tested as well initially
This requires using Markdown, which is also supported by Github, Gitlab, and the others. I'd suggest learning markdown basics, like code blocks: