Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Proxy errors and crashes while checking uploads #9

@xXTheBigBearXx

Description

@xXTheBigBearXx
2021/05/06 23:36:00 [PROXY] Checking all uploads
2021/05/06 23:37:00 [PROXY] Checking all uploads
2021/05/06 23:37:00 stat /root/proxy/cache: no such file or directory
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x6e14aa]

goroutine 8 [running]:
github.com/filecoffee/proxy/modules.checkFile(0xc000026180, 0x11)
        /root/proxy/src/modules/remover.go:36 +0xaa
github.com/filecoffee/proxy/modules.checkFiles()
        /root/proxy/src/modules/remover.go:25 +0xb0
github.com/filecoffee/proxy/modules.Setup.func1()
        /root/proxy/src/modules/remover.go:17 +0x25
github.com/robfig/cron/v3.FuncJob.Run(0x949e10)
        /root/go/pkg/mod/github.com/robfig/cron/v3@v3.0.0/cron.go:131 +0x25
github.com/robfig/cron/v3.(*Cron).startJob.func1(0xc000526460, 0x9bc7c0, 0x949e10)
        /root/go/pkg/mod/github.com/robfig/cron/v3@v3.0.0/cron.go:307 +0x65
created by github.com/robfig/cron/v3.(*Cron).startJob
        /root/go/pkg/mod/github.com/robfig/cron/v3@v3.0.0/cron.go:305 +0x73
exit status 2

Manually creating a cache folder doesn't help, and the folder is no longer present after the crash

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions