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

Instance crashes to invalid pointer #265

Open
jtagcat opened this issue Jan 31, 2023 · 1 comment
Open

Instance crashes to invalid pointer #265

jtagcat opened this issue Jan 31, 2023 · 1 comment

Comments

@jtagcat
Copy link

jtagcat commented Jan 31, 2023

Please complete the following information

  • Installation Type: Docker:latest
2023/01/30 02:36:01 /api/db/dbfunctions.go:216
[730.942ms] [rows:1883] SELECT * FROM `podcast_items` WHERE download_status="0"
Processing episodes:  1883
{"level":"dpanic","ts":1675046161.1386578,"caller":"[email protected]/sugar.go:191","msg":"Ignored key without a value.","ignored":"parse \"  https://media.d
evchat.tv/adventures-in-devops/Finding_Your_Dream_Job.mp3\": first path segment in URL cannot contain colon","stacktrace":"go.uber.org/zap.(*SugaredLog
ger).Errorw\n\t/go/pkg/mod/go.uber.org/[email protected]/sugar.go:191\ngithub.com/akhilrex/podgrab/service.Download\n\t/api/service/fileService.go:33\ngithub
.com/akhilrex/podgrab/service.DownloadMissingEpisodes.func1\n\t/api/service/podcastService.go:536"}
{"level":"error","ts":1675046161.1377428,"caller":"service/fileService.go:33","msg":"Error creating request:   https://media.devchat.tv/adventures-in-d
evops/Finding_Your_Dream_Job.mp3","stacktrace":"github.com/akhilrex/podgrab/service.Download\n\t/api/service/fileService.go:33\ngithub.com/akhilrex/pod
grab/service.DownloadMissingEpisodes.func1\n\t/api/service/podcastService.go:536"}
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x10 pc=0x6fc8ee]

goroutine 1062 [running]:
net/http.(*Client).do(0xc0004824e0, 0x0, 0x0, 0x0, 0x0)
        /usr/local/go/src/net/http/client.go:595 +0xae
net/http.(*Client).Do(...)
        /usr/local/go/src/net/http/client.go:586
github.com/akhilrex/podgrab/service.Download(0xc002ab7680, 0x4a, 0xc00190ac80, 0x37, 0xc003acde70, 0x5, 0x0, 0x0, 0x0, 0x0, ...)
        /api/service/fileService.go:36 +0xcc
github.com/akhilrex/podgrab/service.DownloadMissingEpisodes.func1(0xc0006aa990, 0xc00061a4e0, 0x24, 0x2da4c1e5, 0xed8d5c101, 0x0, 0x9c2e144, 0xedb3db3c
2, 0x0, 0x0, ...)
        /api/service/podcastService.go:536 +0xd0
created by github.com/akhilrex/podgrab/service.DownloadMissingEpisodes
        /api/service/podcastService.go:534 +0x3d8

About once in a month reproducibility.

@pmcfernandes
Copy link

pmcfernandes commented Jun 17, 2023

I got same issue and because not fixed after more than 6 months I fixed myself and launched a new docker version fixed it pmcfernandes/prodgrab the fix is here pmcfernandes@b94c5b8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants