[ Caddy ] The ultimate web server

Discussion on apps, protocols, APIs, specifications, and more. You are welcome to join us as a TOS app developer!
User avatar
AES
Posts: 170
Joined: 22 Nov 2024, 04:52
United States of America

Re: [ Caddy ] The ultimate web server

Post by AES »

{"level":"info","ts":1758389613.2963948,"msg":"using config from file","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile"}
{"level":"info","ts":1758389613.2973094,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"warn","ts":1758389613.2973304,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile","line":3}
{"level":"info","ts":1758389613.3265595,"msg":"maxprocs: No GOMAXPROCS change to reset"}
Error: loading initial config: loading new config: starting caddy administration endpoint: listen tcp: lookup localhost on 8.8.8.8:53: no such host
Error: caddy process exited with error: exit status 1
21/09/25 22:42:36 Will use /Volume1 to store config files
21/09/25 22:42:36 The main volume is /Volume1
21/09/25 22:42:36 Config folder exist at /usr/local/@APP_CONFIG/Caddy
{"level":"info","ts":1758483756.9428058,"msg":"maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined"}
{"level":"info","ts":1758483756.9430315,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":7269005721,"previous":9223372036854775807}
{"level":"info","ts":1758483756.9431164,"msg":"using config from file","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile"}
{"level":"info","ts":1758483756.9439974,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"warn","ts":1758483756.9440258,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile","line":3}
{"level":"info","ts":1758483756.992013,"msg":"maxprocs: No GOMAXPROCS change to reset"}
Error: loading initial config: loading new config: starting caddy administration endpoint: listen tcp: lookup localhost on 8.8.8.8:53: no such host
Error: caddy process exited with error: exit status 1
21/09/25 22:54:21 Will use /Volume1 to store config files
21/09/25 22:54:21 The main volume is /Volume1
21/09/25 22:54:22 Config folder exist at /usr/local/@APP_CONFIG/Caddy
MODCONFIGPATHHOME=/home/Anton/MOD_CONFIG/Caddy
MODCONFIGPATH=/usr/local/@APP_CONFIG/Caddy
MAIN_VOLUME=/Volume1
HOME_VOLUME=/Volume1
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Caddy service is not running, will start it now
SUCCESS!
{"level":"info","ts":1758484462.5183115,"msg":"maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined"}
{"level":"info","ts":1758484462.518497,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":7269005721,"previous":9223372036854775807}
{"level":"info","ts":1758484462.5185513,"msg":"using config from file","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile"}
{"level":"info","ts":1758484462.5193877,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"warn","ts":1758484462.5194108,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile","line":3}
{"level":"info","ts":1758484462.5485606,"msg":"maxprocs: No GOMAXPROCS change to reset"}
Error: loading initial config: loading new config: starting caddy administration endpoint: listen tcp: lookup localhost on 8.8.8.8:53: no such host
Error: caddy process exited with error: exit status 1
22/09/25 00:56:11 Will use /Volume1 to store config files
22/09/25 00:56:11 The main volume is /Volume1
22/09/25 00:56:11 Config folder exist at /usr/local/@APP_CONFIG/Caddy
MODCONFIGPATHHOME=/home/Anton/MOD_CONFIG/Caddy
MODCONFIGPATH=/usr/local/@APP_CONFIG/Caddy
MAIN_VOLUME=/Volume1
HOME_VOLUME=/Volume1
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Caddy service is not running, will start it now
SUCCESS!
{"level":"info","ts":1758491772.0699403,"msg":"maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined"}
{"level":"info","ts":1758491772.0701435,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":7269005721,"previous":9223372036854775807}
{"level":"info","ts":1758491772.0702384,"msg":"using config from file","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile"}
{"level":"info","ts":1758491772.0711915,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"warn","ts":1758491772.071217,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile","line":3}
{"level":"info","ts":1758491772.1006215,"msg":"maxprocs: No GOMAXPROCS change to reset"}
Error: loading initial config: loading new config: starting caddy administration endpoint: listen tcp: lookup localhost on 8.8.8.8:53: no such host
Error: caddy process exited with error: exit status 1
22/09/25 00:57:09 Will use /Volume1 to store config files
22/09/25 00:57:09 The main volume is /Volume1
22/09/25 00:57:10 Config folder exist at /usr/local/@APP_CONFIG/Caddy
MODCONFIGPATHHOME=/home/Anton/MOD_CONFIG/Caddy
MODCONFIGPATH=/usr/local/@APP_CONFIG/Caddy
MAIN_VOLUME=/Volume1
HOME_VOLUME=/Volume1
Usage: grep [OPTION]... PATTERNS [FILE]...
Try 'grep --help' for more information.
Caddy service is not running, will start it now
SUCCESS!
{"level":"info","ts":1758491830.561435,"msg":"maxprocs: Leaving GOMAXPROCS=4: CPU quota undefined"}
{"level":"info","ts":1758491830.5616617,"msg":"GOMEMLIMIT is updated","package":"github.com/KimMachineGun/automemlimit/memlimit","GOMEMLIMIT":7269005721,"previous":9223372036854775807}
{"level":"info","ts":1758491830.5617223,"msg":"using config from file","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile"}
{"level":"info","ts":1758491830.5625985,"msg":"adapted config to JSON","adapter":"caddyfile"}
{"level":"warn","ts":1758491830.5626252,"msg":"Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies","adapter":"caddyfile","file":"/usr/local/@APP_CONFIG/Caddy/Caddyfile","line":3}
{"level":"info","ts":1758491830.5919132,"msg":"maxprocs: No GOMAXPROCS change to reset"}
Error: loading initial config: loading new config: starting caddy administration endpoint: listen tcp: lookup localhost on 8.8.8.8:53: no such host
Error: caddy process exited with error: exit status 1
TerraMaster F8, TerraMaster F2-425, Syno 218+
User avatar
AES
Posts: 170
Joined: 22 Nov 2024, 04:52
United States of America

Re: [ Caddy ] The ultimate web server

Post by AES »

Application settings are installed on disk 2.
Why is it looking for the configuration on disk 1? And what's stopping it from creating it there?
Image
TerraMaster F8, TerraMaster F2-425, Syno 218+
User avatar
AES
Posts: 170
Joined: 22 Nov 2024, 04:52
United States of America

Re: [ Caddy ] The ultimate web server

Post by AES »

Image
TerraMaster F8, TerraMaster F2-425, Syno 218+
User avatar
AES
Posts: 170
Joined: 22 Nov 2024, 04:52
United States of America

Re: [ Caddy ] The ultimate web server

Post by AES »

TOS 7, I reinstalled it, but it doesn't start.
TerraMaster F8, TerraMaster F2-425, Syno 218+
User avatar
AES
Posts: 170
Joined: 22 Nov 2024, 04:52
United States of America

Re: [ Caddy ] The ultimate web server

Post by AES »

Why is everything so stupid and limited? Why are there constant port conflicts? Why should I free up a port for Caddy, even though my superuser has no rights to anything?

Who installed nginx on port 80 if Caddy needs it?!
What should I do with nginx? Stop it and be left without a web interface TOS?!
Why don't I have any rights to add Caddy to autostart, even via cron.


[ Error writing /etc/caddy/Caddyfile: Permission denied ]
~# sudo chown Anton /etc/caddy/Caddyfile
chown: changing ownership of '/etc/caddy/Caddyfile': Operation not permitted
TerraMaster F8, TerraMaster F2-425, Syno 218+
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: [ Caddy ] The ultimate web server

Post by outkastm »

All the apps require some updates to run on the new TOS 7. Caddy is not available yet for TOS 7.
User avatar
eulero
Posts: 46
Joined: 29 Nov 2020, 03:10
Italy

Re: [ Caddy ] The ultimate web server

Post by eulero »

Bro can help us in updating Caddy for TOS7?
Thanks a lot for your help man!!!!
E.
Current System:
F2-422 - 4TB storage
TOS- 7.0.0333
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: [ Caddy ] The ultimate web server

Post by outkastm »

I will add it on the list
User avatar
outkastm
Gold Member
Posts: 1457
Joined: 29 Dec 2020, 23:52

Re: [ Caddy ] The ultimate web server

Post by outkastm »

Is available now for TOS7
User avatar
AES
Posts: 170
Joined: 22 Nov 2024, 04:52
United States of America

Re: [ Caddy ] The ultimate web server

Post by AES »

https://tmnascommunity.eu/download/caddy/ - On this page the link to the forum leads to the error page

Installation Support and Update requests
/forums/topic/Caddy

By the way, the new version of Caddy works well on TOS 7, thanks! I was able to get Vaultwarden running.
TerraMaster F8, TerraMaster F2-425, Syno 218+
Post Reply

Return to “Developer Discussion Room”