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

[BUG] Docker Log File Large with Errors #75

Closed
1 task done
myxxmikeyxx opened this issue Mar 21, 2024 · 7 comments
Closed
1 task done

[BUG] Docker Log File Large with Errors #75

myxxmikeyxx opened this issue Mar 21, 2024 · 7 comments
Assignees

Comments

@myxxmikeyxx
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The log file keeps growing rapidly with this:

[IMYVG] 2024/03/21 10:32:37 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting [IMYVG] 2024/03/21 10:32:47 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down [IMYVG] 2024/03/21 10:32:47 INFO: listenerSupervisor@dynamic+https://relays.syncthing.net/endpoint: service dynamic+https://relays.syncthing.net/endpoint failed: Get "https://relays.syncthing.net/endpoint": dial tcp: lookup relays.syncthing.net on 192.168.0.254:53: read udp 172.17.0.8:38656->192.168.0.254:53: i/o timeout

Expected Behavior

Should be a small log file or some way to limit the log file size.

Steps To Reproduce

I am not sure what steps I did. I had this setup on my old network but have changed my network and have not had a chance to check the error but I am using 10.0.X.X not 192.168.X.X
I am not sure if I can create and environment variable to do this command that docker supports
--log-opt max-size=50m

Environment

- OS: unriad
- How docker service was installed:
Community Apps on unraid

CPU architecture

x86-64

Docker creation

Not sure what unraid runs to start the container.

Container logs

{"log":"\n","stream":"stdout","time":"2024-03-16T03:06:30.1852549Z"}
{"log":"[custom-init] No custom files found, skipping...\n","stream":"stdout","time":"2024-03-16T03:06:30.229866133Z"}
{"log":"[start] 2024/03/15 20:06:30 INFO: syncthing v1.27.4 \"Gold Grasshopper\" (go1.21.8 linux-amd64) root@buildkitsandbox 2024-03-16 01:34:05 UTC [noupgrade]\n","stream":"stdout","time":"2024-03-16T03:06:30.3168153Z"}
{"log":"[IMYVG] 2024/03/15 20:06:30 INFO: My ID: IMYVGD3-FCWJFHD-ZM3NHHL-H3PPHPH-Z5GG3Q5-MADXYJS-HPQJJ7U-KTNOVQT\n","stream":"stdout","time":"2024-03-16T03:06:30.348214756Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Single thread SHA256 performance is 354 MB/s using minio/sha256-simd (342 MB/s using crypto/sha256).\n","stream":"stdout","time":"2024-03-16T03:06:31.280581304Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Hashing performance is 225.00 MB/s\n","stream":"stdout","time":"2024-03-16T03:06:31.747984995Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Overall send rate is unlimited, receive rate is unlimited\n","stream":"stdout","time":"2024-03-16T03:06:31.753969014Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Using discovery mechanism: global discovery server https://discovery.syncthing.net/v2/?noannounce\u0026id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW\n","stream":"stdout","time":"2024-03-16T03:06:31.760823286Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Using discovery mechanism: global discovery server https://discovery-v4.syncthing.net/v2/?nolookup\u0026id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW\n","stream":"stdout","time":"2024-03-16T03:06:31.760855434Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Using discovery mechanism: global discovery server https://discovery-v6.syncthing.net/v2/?nolookup\u0026id=LYXKCHX-VI3NYZR-ALCJBHF-WMZYSPK-QG6QJA3-MPFYMSO-U56GTUK-NA2MIAW\n","stream":"stdout","time":"2024-03-16T03:06:31.760867208Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Using discovery mechanism: IPv4 local broadcast discovery on port 21027\n","stream":"stdout","time":"2024-03-16T03:06:31.760873176Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Using discovery mechanism: IPv6 local multicast discovery on address [ff12::8384]:21027\n","stream":"stdout","time":"2024-03-16T03:06:31.76087865Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: TCP listener ([::]:22000) starting\n","stream":"stdout","time":"2024-03-16T03:06:31.761116417Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: QUIC listener ([::]:22000) starting\n","stream":"stdout","time":"2024-03-16T03:06:31.761170967Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting\n","stream":"stdout","time":"2024-03-16T03:06:31.761221989Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Ready to synchronize \"Default Folder\" (default) (sendreceive)\n","stream":"stdout","time":"2024-03-16T03:06:31.77235689Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: GUI and API listening on [::]:8384\n","stream":"stdout","time":"2024-03-16T03:06:31.775418217Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Access the GUI via the following URL: http://127.0.0.1:8384/\n","stream":"stdout","time":"2024-03-16T03:06:31.775484937Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: My name is \"7e3c0492bcd2\"\n","stream":"stdout","time":"2024-03-16T03:06:31.77553487Z"}
{"log":"[IMYVG] 2024/03/15 20:06:31 INFO: Completed initial scan of sendreceive folder \"Default Folder\" (default)\n","stream":"stdout","time":"2024-03-16T03:06:31.777039654Z"}
{"log":"Connection to localhost (127.0.0.1) 8384 port [tcp/*] succeeded!\n","stream":"stderr","time":"2024-03-16T03:06:32.313960384Z"}
{"log":"[ls.io-init] done.\n","stream":"stdout","time":"2024-03-16T03:06:32.360624266Z"}
{"log":"[IMYVG] 2024/03/15 20:06:41 INFO: quic://0.0.0.0:22000 detected NAT type: Symmetric NAT\n","stream":"stdout","time":"2024-03-16T03:06:41.815801322Z"}
{"log":"[IMYVG] 2024/03/15 20:06:55 INFO: Detected 1 NAT service\n","stream":"stdout","time":"2024-03-16T03:06:55.808768709Z"}
{"log":"[IMYVG] 2024/03/15 20:07:35 INFO: Joined relay relay://162.221.89.143:22067\n","stream":"stdout","time":"2024-03-16T03:07:35.267746543Z"}
{"log":"[monitor] 2024/03/15 20:29:12 INFO: Signal 15 received; exiting\n","stream":"stdout","time":"2024-03-16T03:29:12.003825087Z"}
{"log":"[IMYVG] 2024/03/15 20:29:12 INFO: QUIC listener ([::]:22000) shutting down\n","stream":"stdout","time":"2024-03-16T03:29:12.005090221Z"}
{"log":"[IMYVG] 2024/03/15 20:29:12 INFO: Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down\n","stream":"stdout","time":"2024-03-16T03:29:12.005594715Z"}
{"log":"[IMYVG] 2024/03/15 20:29:12 INFO: TCP listener ([::]:22000) shutting down\n","stream":"stdout","time":"2024-03-16T03:29:12.494020035Z"}
{"log":"[IMYVG] 2024/03/15 20:29:12 INFO: Exiting\n","stream":"stdout","time":"2024-03-16T03:29:12.494588864Z"}
{"log":"[migrations] started\n","stream":"stdout","time":"2024-03-16T03:39:40.978174287Z"}
{"log":"[migrations] no migrations found\n","stream":"stdout","time":"2024-03-16T03:39:40.98045071Z"}
{"log":"usermod: no changes\n","stream":"stdout","time":"2024-03-16T03:39:41.169535708Z"}
{"log":"───────────────────────────────────────\n","stream":"stdout","time":"2024-03-16T03:39:41.169555614Z"}
Copy link

Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.

@homerr
Copy link
Member

homerr commented Mar 23, 2024

Not sure about unraid but it looks like there may be a DNS problem here, can you exec into the container to see if you can do DNS lookups?

@myxxmikeyxx
Copy link
Author

@homerr I can exec into the container but I am not sure what you mean when you say DNS lookup

@homerr
Copy link
Member

homerr commented Mar 31, 2024

Do this;

docker exec -ti <containername> bash
nslookup relays.syncthing.net
nslookup google.com

See what comes back. Do you have any other containers you're running?

@homerr homerr self-assigned this Mar 31, 2024
@myxxmikeyxx
Copy link
Author

@homerr I just opened the container console and typed the commands from the unriad UI. Response is appended.
`root@cf69f14d264d:/# nslookup relays.syncthing.net
Server: 10.0.0.1
Address: 10.0.0.1:53

Non-authoritative answer:
relays.syncthing.net canonical name = ams3-k8s.syncthing.net
Name: ams3-k8s.syncthing.net
Address: 143.244.196.6

Non-authoritative answer:
relays.syncthing.net canonical name = ams3-k8s.syncthing.net

root@cf69f14d264d:/# nslookup google.com
Server: 10.0.0.1
Address: 10.0.0.1:53

Non-authoritative answer:
Name: google.com
Address: 142.250.190.110

Non-authoritative answer:
Name: google.com
Address: 2607:f8b0:4009:802::200e`

@myxxmikeyxx
Copy link
Author

I might have figured out what it was. It was starting up before my VM with my my router. It was not getting a valid IP so it was throwing all sorts of problems. I just need to make sure to restart it after X amount of time. Not sure if unraid supports delayed start on docker containers.

Correct me if this sounds wrong.

@homerr
Copy link
Member

homerr commented Apr 5, 2024

That does sound quite plausible to be fair, not sure how you can do that you could ask in our discord there's a few unraid users around who may be able to help. Glad you sorted it!

@homerr homerr closed this as completed Apr 5, 2024
@LinuxServer-CI LinuxServer-CI moved this from Issues to Done in Issue & PR Tracker Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

No branches or pull requests

2 participants