D
Dokploy13mo ago
matzie

NET::ERR_CERT_AUTHORITY_INVALID

When trying to connect a domain to a nextjs site, i usually get a https error when visiting it. It says NET::ERR_CERT_AUTHORITY_INVALID How can i solve it? I've tried removing and readding the domain multiple times. It's only nextjs sites that fails like this
23 Replies
Siumauricio
Siumauricio13mo ago
can you please go to settings -> traefik and click on view logs and pass me the logs
matzie
matzieOP13mo ago
Cant post all but the latest log say this a lot
time="2024-05-05T18:15:04Z" level=error msg="Error occurred during watcher callback: /etc/dokploy/traefik/dynamic/app-input-virtual-alarm-so15hv.yml: routers cannot be a standalone element (type map[string]*dynamic.Router)"
time="2024-05-05T18:15:04Z" level=error msg="Error occurred during watcher callback: /etc/dokploy/traefik/dynamic/app-input-virtual-alarm-so15hv.yml: routers cannot be a standalone element (type map[string]*dynamic.Router)"
Also see this
error: one or more domains had a problem:\n[doyouseemyscreen.com] acme: error: 403 :: urn:ietf:params:acme:error:unauthorized :: 2a00:1968:0:1:109:235:174:18: Invalid response from http://doyouseemyscreen.com/.well-known/acme-challenge/pSDFYdJFwfpciansfnmuLs65SR-Ds09wOE-MraBgTng: 404\n" providerName=letsencrypt.acme routerName=websecure-app-calculate-online-application-shigk4-router-14@file rule="Host(`doyouseemyscreen.com`) && P
error: one or more domains had a problem:\n[doyouseemyscreen.com] acme: error: 403 :: urn:ietf:params:acme:error:unauthorized :: 2a00:1968:0:1:109:235:174:18: Invalid response from http://doyouseemyscreen.com/.well-known/acme-challenge/pSDFYdJFwfpciansfnmuLs65SR-Ds09wOE-MraBgTng: 404\n" providerName=letsencrypt.acme routerName=websecure-app-calculate-online-application-shigk4-router-14@file rule="Host(`doyouseemyscreen.com`) && P
Siumauricio
Siumauricio13mo ago
Ok this was known issue https://github.com/Dokploy/dokploy/issues/38, i guess there are some application that doesnt have any domains? if so please go to the application -> advanced scroll down and modify the traefik config and just simply edit and delete all, and then reload the traefik
GitHub
Issues · Dokploy/dokploy
Open Source Alternative to Vercel, Netlify and Heroku. - Issues · Dokploy/dokploy
Siumauricio
Siumauricio13mo ago
this bug is already fixed in the newest version so if you still have the errors you need to fix manually by removing the cleaning the traefik config
matzie
matzieOP13mo ago
I'll try the latest version and see if it fixes it but all my applications in all my projects have at least 1 domain I run multiple bun elysia backends that all work fine, i have one nextjs site at a subdomain that works but my nextjs sites that use a domain without subdomain both have the same problem
Siumauricio
Siumauricio13mo ago
Hmm really weird, can you go to Traefik file system and check all the app-files and check if there are some file that doesn’t have any domain?
matzie
matzieOP13mo ago
how do i do that?
Siumauricio
Siumauricio13mo ago
Go to the main screen and you will see 4 tabs Projects, monitoring, traefik file system and settings Click on traefik file system and there will be a file system
matzie
matzieOP13mo ago
Ah ok, yeah all the app-* files have a rule: Host(example.domain.com) && PathPrefix(/) row
Siumauricio
Siumauricio13mo ago
did you point the A record to the ip of vps?
matzie
matzieOP13mo ago
yess
Siumauricio
Siumauricio13mo ago
also what vps provider are you using?
matzie
matzieOP13mo ago
just realized that both my apps in the same project use localhost:3000 and the backend works there, should i point one to another port or doesnt it matter? Digitalocean
Siumauricio
Siumauricio13mo ago
Ok did you touched/added something to the advanced tab -> ports?
matzie
matzieOP13mo ago
Nah no ports configured in the advanced tab
Siumauricio
Siumauricio13mo ago
could you try to reload traefik? or is the same result?
matzie
matzieOP13mo ago
oh i get error to reload traefik
Siumauricio
Siumauricio13mo ago
Ok, can you check the Server button and see the logs?
matzie
matzieOP13mo ago
Default middlewares already exists
Swarm is already initilized
Network is already initilized
Main config already exists
Default traefik config already exists
Postgres Started ✅
Traefik Started ✅
Redis Started ✅
Setting up cron jobs....


Dokploy server is up and running!
Please wait for 15 seconds before opening the browser.
http://152.42.136.147:3000


{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42P06',
message: 'schema "drizzle" already exists, skipping',
file: 'schemacmds.c',
line: '132',
routine: 'CreateSchemaCommand'
}
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42P07',
message: 'relation "__drizzle_migrations" already exists, skipping',
file: 'parse_utilcmd.c',
line: '207',
routine: 'transformCreateStmt'
}
Migration complete
Server Started: 3000
Service stopped ✅
Service stopped ✅
Service stopped ✅
Service stopped ✅
Default middlewares already exists
Swarm is already initilized
Network is already initilized
Main config already exists
Default traefik config already exists
Postgres Started ✅
Traefik Started ✅
Redis Started ✅
Setting up cron jobs....


Dokploy server is up and running!
Please wait for 15 seconds before opening the browser.
http://152.42.136.147:3000


{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42P06',
message: 'schema "drizzle" already exists, skipping',
file: 'schemacmds.c',
line: '132',
routine: 'CreateSchemaCommand'
}
{
severity_local: 'NOTICE',
severity: 'NOTICE',
code: '42P07',
message: 'relation "__drizzle_migrations" already exists, skipping',
file: 'parse_utilcmd.c',
line: '207',
routine: 'transformCreateStmt'
}
Migration complete
Server Started: 3000
Service stopped ✅
Service stopped ✅
Service stopped ✅
Service stopped ✅
Siumauricio
Siumauricio13mo ago
Ok everything looks good, can you please give me access to the server to see what's wrong? can you try to run this comand docker service logs dokploy-traefik
matzie
matzieOP13mo ago
Haha sure, how do i do it the best way possible? Should i invite you as a new user?
Siumauricio
Siumauricio13mo ago
I guess only with my public key is enough to add to DO let's chat via dm
matzie
matzieOP13mo ago
👍

Did you find this page helpful?