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

apt upgrade from 1.0.8 to 1.1.0 : not restarting #1756

Open
jwaes opened this issue Dec 17, 2024 · 2 comments
Open

apt upgrade from 1.0.8 to 1.1.0 : not restarting #1756

jwaes opened this issue Dec 17, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@jwaes
Copy link

jwaes commented Dec 17, 2024

Current Behavior

Dec 17 19:53:24 renterd renterd[2405]: failed to decode config file:yaml: unmarshal errors:
Dec 17 19:53:24 renterd renterd[2405]:   line 34: field accountsRefillInterval not found in type config.Autopilot

lines 31-34:

autopilot:
    enabled: true
    accountsRefillInterval: 10s

Documentation says

Autopilot.AccountsRefillInterval Interval for refilling workers' account balances 24h --autopilot.accountRefillInterval - autopilot.accountsRefillInterval

so .. is it account or accounts ?

I commented out the line from the renterd.yml file and then the rented starts up ...

but it goes all crazy:


Dec 17 20:01:50 renterd renterd[2629]: runtime.gopark(0x4deac5?, 0xc00010f480?, 0x10?, 0x9a?, 0xb?)
Dec 17 20:01:50 renterd renterd[2629]:         runtime/proc.go:424 +0xce fp=0xc000299918 sp=0xc0002998f8 pc=0x472fae
Dec 17 20:01:50 renterd renterd[2629]: runtime.netpollblock(0x4c0578?, 0x406246?, 0x0?)
Dec 17 20:01:50 renterd renterd[2629]:         runtime/netpoll.go:575 +0xf7 fp=0xc000299950 sp=0xc000299918 pc=0x435457
Dec 17 20:01:50 renterd renterd[2629]: internal/poll.runtime_pollWait(0x7effb4067e20, 0x72)
Dec 17 20:01:50 renterd renterd[2629]:         runtime/netpoll.go:351 +0x85 fp=0xc000299970 sp=0xc000299950 pc=0x4722a5
Dec 17 20:01:50 renterd renterd[2629]: internal/poll.(*pollDesc).wait(0xc00010f480?, 0xc0005f5000?, 0x0)
Dec 17 20:01:50 renterd renterd[2629]:         internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc000299998 sp=0xc000299970 pc=0x4dd287
Dec 17 20:01:50 renterd renterd[2629]: internal/poll.(*pollDesc).waitRead(...)
Dec 17 20:01:50 renterd renterd[2629]:         internal/poll/fd_poll_runtime.go:89
Dec 17 20:01:50 renterd renterd[2629]: internal/poll.(*FD).Read(0xc00010f480, {0xc0005f5000, 0x1000, 0x1000})
Dec 17 20:01:50 renterd renterd[2629]:         internal/poll/fd_unix.go:165 +0x27a fp=0xc000299a30 sp=0xc000299998 pc=0x4de19a
Dec 17 20:01:50 renterd renterd[2629]: net.(*netFD).Read(0xc00010f480, {0xc0005f5000?, 0xc000299aa0?, 0x4dd745?})
Dec 17 20:01:50 renterd renterd[2629]:         net/fd_posix.go:55 +0x25 fp=0xc000299a78 sp=0xc000299a30 pc=0x60a265
Dec 17 20:01:50 renterd renterd[2629]: net.(*conn).Read(0xc00018e5f0, {0xc0005f5000?, 0x0?, 0xc00032b418?})
Dec 17 20:01:50 renterd renterd[2629]:         net/net.go:189 +0x45 fp=0xc000299ac0 sp=0xc000299a78 pc=0x613e45
Dec 17 20:01:50 renterd renterd[2629]: net.(*TCPConn).Read(0xc00032b410?, {0xc0005f5000?, 0xc00010f480?, 0xc000299af8?})
Dec 17 20:01:50 renterd renterd[2629]:         <autogenerated>:1 +0x25 fp=0xc000299af0 sp=0xc000299ac0 pc=0x620fe5
Dec 17 20:01:50 renterd renterd[2629]: net/http.(*connReader).Read(0xc00032b410, {0xc0005f5000, 0x1000, 0x1000})
Dec 17 20:01:50 renterd renterd[2629]:         net/http/server.go:798 +0x14b fp=0xc000299b40 sp=0xc000299af0 pc=0x70502b
Dec 17 20:01:50 renterd renterd[2629]: bufio.(*Reader).fill(0xc0005a4e40)
Dec 17 20:01:50 renterd renterd[2629]:         bufio/bufio.go:110 +0x103 fp=0xc000299b78 sp=0xc000299b40 pc=0x586243
Dec 17 20:01:50 renterd renterd[2629]: bufio.(*Reader).Peek(0xc0005a4e40, 0x4)
Dec 17 20:01:50 renterd renterd[2629]:         bufio/bufio.go:148 +0x53 fp=0xc000299b98 sp=0xc000299b78 pc=0x586373
Dec 17 20:01:50 renterd renterd[2629]: net/http.(*conn).serve(0xc000327710, {0x188a958, 0xc0002ec660})
Dec 17 20:01:50 renterd renterd[2629]:         net/http/server.go:2127 +0x738 fp=0xc000299fb8 sp=0xc000299b98 pc=0x70a2b8
Dec 17 20:01:50 renterd renterd[2629]: net/http.(*Server).Serve.gowrap3()
Dec 17 20:01:50 renterd renterd[2629]:         net/http/server.go:3360 +0x28 fp=0xc000299fe0 sp=0xc000299fb8 pc=0x70f0e8
Dec 17 20:01:50 renterd renterd[2629]: runtime.goexit({})
Dec 17 20:01:50 renterd renterd[2629]:         runtime/asm_amd64.s:1700 +0x1 fp=0xc000299fe8 sp=0xc000299fe0 pc=0x47b341
Dec 17 20:01:50 renterd renterd[2629]: created by net/http.(*Server).Serve in goroutine 139
Dec 17 20:01:50 renterd renterd[2629]:         net/http/server.go:3360 +0x485
Dec 17 20:01:50 renterd renterd[2629]: goroutine 759 gp=0xc000531a40 m=nil [IO wait]:
Dec 17 20:01:50 renterd renterd[2629]: runtime.gopark(0x4deac5?, 0xc00010f500?, 0x10?, 0xba?, 0xb?)
Dec 17 20:01:50 renterd renterd[2629]:         runtime/proc.go:424 +0xce fp=0xc00029b918 sp=0xc00029b8f8 pc=0x472fae
Dec 17 20:01:50 renterd renterd[2629]: runtime.netpollblock(0x4c0578?, 0x406246?, 0x0?)
Dec 17 20:01:50 renterd renterd[2629]:         runtime/netpoll.go:575 +0xf7 fp=0xc00029b950 sp=0xc00029b918 pc=0x435457
Dec 17 20:01:50 renterd renterd[2629]: internal/poll.runtime_pollWait(0x7effb4067d08, 0x72)
Dec 17 20:01:50 renterd renterd[2629]:         runtime/netpoll.go:351 +0x85 fp=0xc00029b970 sp=0xc00029b950 pc=0x4722a5
Dec 17 20:01:50 renterd renterd[2629]: internal/poll.(*pollDesc).wait(0xc00010f500?, 0xc0005f9000?, 0x0)
Dec 17 20:01:50 renterd renterd[2629]:         internal/poll/fd_poll_runtime.go:84 +0x27 fp=0xc00029b998 sp=0xc00029b970 pc=0x4dd287
Dec 17 20:01:50 renterd renterd[2629]: internal/poll.(*pollDesc).waitRead(...)
Dec 17 20:01:50 renterd renterd[2629]:         internal/poll/fd_poll_runtime.go:89
Dec 17 20:01:50 renterd renterd[2629]: internal/poll.(*FD).Read(0xc00010f500, {0xc0005f9000, 0x1000, 0x1000})
Dec 17 20:01:50 renterd renterd[2629]:         internal/poll/fd_unix.go:165 +0x27a fp=0xc00029ba30 sp=0xc00029b998 pc=0x4de19a
Dec 17 20:01:50 renterd renterd[2629]: net.(*netFD).Read(0xc00010f500, {0xc0005f9000?, 0xc00029baa0?, 0x4dd745?})
Dec 17 20:01:50 renterd renterd[2629]:         net/fd_posix.go:55 +0x25 fp=0xc00029ba78 sp=0xc00029ba30 pc=0x60a265
Dec 17 20:01:50 renterd renterd[2629]: net.(*conn).Read(0xc00018e5f8, {0xc0005f9000?, 0x0?, 0xc00032b538?})
Dec 17 20:01:50 renterd renterd[2629]:         net/net.go:189 +0x45 fp=0xc00029bac0 sp=0xc00029ba78 pc=0x613e45
Dec 17 20:01:50 renterd renterd[2629]: net.(*TCPConn).Read(0xc00032b530?, {0xc0005f9000?, 0xc00010f500?, 0xc00029baf8?})
Dec 17 20:01:50 renterd renterd[2629]:         <autogenerated>:1 +0x25 fp=0xc00029baf0 sp=0xc00029bac0 pc=0x620fe5
Dec 17 20:01:50 renterd renterd[2629]: net/http.(*connReader).Read(0xc00032b530, {0xc0005f9000, 0x1000, 0x1000})
Dec 17 20:01:50 renterd renterd[2629]:         net/http/server.go:798 +0x14b fp=0xc00029bb40 sp=0xc00029baf0 pc=0x70502b
Dec 17 20:01:50 renterd renterd[2629]: bufio.(*Reader).fill(0xc0005a4f00)
Dec 17 20:01:50 renterd renterd[2629]:         bufio/bufio.go:110 +0x103 fp=0xc00029bb78 sp=0xc00029bb40 pc=0x586243
Dec 17 20:01:50 renterd renterd[2629]: bufio.(*Reader).Peek(0xc0005a4f00, 0x4)
Dec 17 20:01:50 renterd renterd[2629]:         bufio/bufio.go:148 +0x53 fp=0xc00029bb98 sp=0xc00029bb78 pc=0x586373
Dec 17 20:01:50 renterd renterd[2629]: net/http.(*conn).serve(0xc0003277a0, {0x188a958, 0xc0002ec660})
Dec 17 20:01:50 renterd renterd[2629]:         net/http/server.go:2127 +0x738 fp=0xc00029bfb8 sp=0xc00029bb98 pc=0x70a2b8
Dec 17 20:01:50 renterd renterd[2629]: net/http.(*Server).Serve.gowrap3()
Dec 17 20:01:50 renterd renterd[2629]:         net/http/server.go:3360 +0x28 fp=0xc00029bfe0 sp=0xc00029bfb8 pc=0x70f0e8
Dec 17 20:01:50 renterd renterd[2629]: runtime.goexit({})
Dec 17 20:01:50 renterd renterd[2629]:         runtime/asm_amd64.s:1700 +0x1 fp=0xc00029bfe8 sp=0xc00029bfe0 pc=0x47b341
Dec 17 20:01:50 renterd renterd[2629]: created by net/http.(*Server).Serve in goroutine 139
Dec 17 20:01:50 renterd renterd[2629]:         net/http/server.go:3360 +0x485
Dec 17 20:01:50 renterd renterd[2629]: goroutine 760 gp=0xc000531c00 m=nil [IO wait]:
Dec 17 20:01:50 renterd renterd[2629]: runtime.gopark(0x4deac5?, 0xc00010f580?, 0x10?, 0x1a?, 0xb?)
Dec 17 20:01:50 renterd renterd[2629]:         runtime/proc.go:424 +0xce fp=0xc0002f1918 sp=0xc0002f18f8 pc=0x472fae
Dec 17 20:01:50 renterd renterd[2629]: runtime.netpollblock(0x4c0578?, 0x406246?, 0x0?)
Dec 17 20:01:50 renterd renterd[2629]:         runtime/netpoll.go:575 +0xf7 fp=0xc0002f1950 sp=0xc0002f1918 pc=0x435457

Expected Behavior

that an apt upgrade of a renterd served from the sia tech repo works ...

Steps to Reproduce

No response

Version

upgrade from v1.0.8 to v1.1.0

What operating system did the problem occur on (e.g. Ubuntu 22.04, macOS 12.0, Windows 11)?

Debian GNU/Linux 12 (bookworm)

Autopilot Config

not starting ...

Bus Config

not starting

Contract Set Contracts

not starting

Anything else?

No response

@jwaes jwaes added the bug Something isn't working label Dec 17, 2024
@jwaes
Copy link
Author

jwaes commented Dec 17, 2024

renter.log shows:

{"level":"error","ts":"2024-12-17T20:09:49Z","logger":"webhooks","caller":"webhooks/webhooks.go:220","msg":"failed to send Webhook event setting.update to http://[::]:9980/api/worker/events: HTTP error: 404 page not found\n (status: 404)","stacktrace":"go.sia.tech/renterd/webhooks.(*eventQueue).dequeue\n\tgo.sia.tech/renterd/webhooks/webhooks.go:220\ngo.sia.tech/renterd/webhooks.(*Manager).BroadcastAction.func1\n\tgo.sia.tech/renterd/webhooks/webhooks.go:121"}

@ChrisSchinnerl
Copy link
Member

@jwaes the configuration was moved from the autopilot to the worker section. The readme is fixed but not merged into master yet so that's still outdated.

I'd recommend you delete that line from your config file since 10s is the default already.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants