NebulousLabs / Sia

Blockchain-based marketplace for file storage. Project has moved to GitLab: https://gitlab.com/NebulousLabs/Sia
https://sia.tech
MIT License
2.71k stars 441 forks source link

Renaming contractmanager.wal fails with "Access is denied" #2374

Open GroovyGrovesy opened 6 years ago

GroovyGrovesy commented 6 years ago

Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied.

GroovyGrovesy commented 6 years ago

I should probably add that if you close the Sia app then load it again it works fine, for a little while anyway before it does it again.

GroovyGrovesy commented 6 years ago

Here's the full log

Loading... (0/6) Loading siad... (1/6) Loading gateway... (2/6) Loading consensus... (3/6) Loading transaction pool... (4/6) Loading wallet... (5/6) Loading host... (6/6) Loading renter... Finished loading in 0.995061 seconds goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc0421b9a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc0421b9a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc0421b9a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc0421b9a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc0421b9a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc0421b9bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc047eb5a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc047eb5bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc047eb5bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04af67a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04af67a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 7537130 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04a4e5dc8) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04a4e5f20, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04a4e5f20, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources.func1(0xc047868780, 0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:50 +0x4f1 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:52 +0x9a Severe error: ERROR: unable to atomically copy the contract manager settings: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04af67a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04af67a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04af67a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 8726124 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc0472cfdc8) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc0472cff20, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc0472cff20, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources.func1(0xc043afefa0, 0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:50 +0x4f1 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:52 +0x9a Severe error: ERROR: unable to atomically copy the contract manager settings: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json: Access is denied. goroutine 9600643 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04593bdc8) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04593bf20, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04593bf20, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources.func1(0xc0481b0c00, 0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:50 +0x4f1 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:52 +0x9a Severe error: ERROR: unable to atomically copy the contract manager settings: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json: Access is denied. goroutine 9782016 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc043c7bdc8) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc043c7bf20, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc043c7bf20, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources.func1(0xc042535420, 0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:50 +0x4f1 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:52 +0x9a Severe error: ERROR: unable to atomically copy the contract manager settings: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04af67a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. goroutine 36 [running]: runtime/debug.Stack(0x44439e, 0x0, 0xc04af67a78) /usr/local/go/src/runtime/debug/stack.go:24 +0x80 runtime/debug.PrintStack() /usr/local/go/src/runtime/debug/stack.go:16 +0x29 github.com/NebulousLabs/Sia/build.Severe(0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99 github.com/NebulousLabs/Sia/persist.(Logger).Severe(0xc0423dadc0, 0xc04af67bf0, 0x2, 0x2) /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).syncResources(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).commit(0xc0423e2428) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47 github.com/NebulousLabs/Sia/modules/host/contractmanager.(writeAheadLog).threadedSyncLoop(0xc0423e2428, 0xc042032360, 0xc0420323c0) /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149 created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).spawnSyncLoop /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103 Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\groov\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied. panic: runtime error: invalid memory address or nil pointer dereference [signal 0xc0000005 code=0x0 addr=0x20 pc=0x611ca9]

goroutine 11528999 [running]: bufio.(Writer).Write(0xc051a38080, 0xc04f2fa000, 0x850, 0x48ab1, 0x0, 0xb0aed8, 0xc0430ddc10) /usr/local/go/src/bufio/bufio.go:598 +0x149 net/http.(response).write(0xc046e53500, 0x850, 0xc04f2fa000, 0x850, 0x48ab1, 0x0, 0x0, 0xc047fe8420, 0x1, 0x84f) /usr/local/go/src/net/http/server.go:1525 +0x157 net/http.(response).Write(0xc046e53500, 0xc04f2fa000, 0x850, 0x48ab1, 0x0, 0x0, 0xc04559aa28) /usr/local/go/src/net/http/server.go:1495 +0x6b encoding/json.(Encoder).Encode(0xc0430ddd40, 0xa4c420, 0xc043d690e0, 0xddad20, 0xc046e53500) /usr/local/go/src/encoding/json/stream.go:218 +0x1f6 github.com/NebulousLabs/Sia/api.WriteJSON(0xde0b20, 0xc046e53500, 0xa4c420, 0xc043d690e0) /home/luke/go/src/github.com/NebulousLabs/Sia/api/api.go:326 +0x115 github.com/NebulousLabs/Sia/api.(API).gatewayHandler(0xc04214a5a0, 0xde0b20, 0xc046e53500, 0xc045f74200, 0x0, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/api/gateway.go:26 +0x12e github.com/NebulousLabs/Sia/api.(API).(github.com/NebulousLabs/Sia/api.gatewayHandler)-fm(0xde0b20, 0xc046e53500, 0xc045f74200, 0x0, 0x0, 0x0) /home/luke/go/src/github.com/NebulousLabs/Sia/api/api.go:207 +0x6d github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc043ed7fc0, 0xde0b20, 0xc046e53500, 0xc045f74200) /home/luke/go/src/github.com/julienschmidt/httprouter/router.go:344 +0x81a github.com/NebulousLabs/Sia/api.RequireUserAgent.func1(0xde0b20, 0xc046e53500, 0xc045f74200) /home/luke/go/src/github.com/NebulousLabs/Sia/api/api.go:99 +0xc1 net/http.HandlerFunc.ServeHTTP(0xc042540ab0, 0xde0b20, 0xc046e53500, 0xc045f74200) /usr/local/go/src/net/http/server.go:1942 +0x4b github.com/NebulousLabs/Sia/api.cleanCloseHandler.func1.1(0xc04a21daa0, 0xddbfe0, 0xc042540ab0, 0xde0b20, 0xc046e53500, 0xc045f74200) /home/luke/go/src/github.com/NebulousLabs/Sia/api/api.go:132 +0x80 created by github.com/NebulousLabs/Sia/api.cleanCloseHandler.func1 /home/luke/go/src/github.com/NebulousLabs/Sia/api/api.go:133 +0xc3

lukechampine commented 6 years ago

This looks like a duplicate of https://github.com/NebulousLabs/Sia-UI/issues/721. We're working on a fix.

GroovyGrovesy commented 6 years ago

Ok thanks, glad to hear you are working on it.

On 28 September 2017 at 23:58, Luke Champine notifications@github.com wrote:

This looks like a duplicate of NebulousLabs/Sia-UI#721 https://github.com/NebulousLabs/Sia-UI/issues/721. We're working on a fix.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/NebulousLabs/Sia/issues/2374#issuecomment-332986409, or mute the thread https://github.com/notifications/unsubscribe-auth/AHe9rJVPL0Gfz3tsvxWIViTiIXZJwh8kks5snCSxgaJpZM4Pn8nO .

DavidVorick commented 6 years ago

Yeah I think it's the AV thing happening again.

tbenz9 commented 6 years ago

Recommendation to devs: "Bug" and update title to be more descriptive.

jkawamoto commented 6 years ago

I also got a similar error with siad v1.3.0 on Windows 10. contractor.log is as follows:

2017/12/11 20:43:39.256762 contractor.go:178: STARTUP: Logging has started.
2017/12/11 20:43:41.805883 update.go:57: Unable to save while processing a consensus change: rename renter\contractor.journal_tmp renter\contractor.journal: Access is denied.
2017/12/11 20:43:41.818927 update.go:57: Unable to save while processing a consensus change: invalid argument
2017/12/11 20:43:41.825936 update.go:57: Unable to save while processing a consensus change: invalid argument
2017/12/11 20:43:41.832955 update.go:57: Unable to save while processing a consensus change: invalid argument
... (repeated) ...
tbenz9 commented 6 years ago

@jkawamoto please try following the steps here: https://blog.sia.tech/troubleshooting-the-recent-hardfork-ca77e0b17f0f

jkawamoto commented 6 years ago

@tbenz9, thanks for your information. After deleting files in Users\<user>\appdata\roaming\Sia-UI\sia\, I still got the same error. However, with siad v1.3.1 RC2, the error hasn't occurred.

mikechabot commented 6 years ago

I'm new to Sia, and am having a rather difficult time with it, which is unfortunate since it seems promising. I'm very excited to start using it, but currently the barriers to entry seem too great. Perhaps Linux is better supported than Windows?

  1. Download Sia from https://sia.tech
  2. Unzip and start Sia-UI.exe as Administrator.
  3. Google "Not Synchronizing" to understand why connectivity isn't immediate.
  4. Find https://siawiki.tech/daemon/bootstrapping_the_blockchain
  5. Download updated consensus.db.
  6. Verify checksum (Passes).
  7. Give full permissions to.
    • D:\_mining\Sia-UI-v1.3.0-win32-x64
    • C:\Users\mikec\AppData\Roaming\Sia-UI
    • Note: Both drives are solid-state
  8. Start Sia-UI.exe as Administrator
  9. Note the application presents a loading screen: "Loading can take a while after upgrading to a new version"
  10. I understand this to mean Sia is processing the consensus.db file in an attempt to synchronize itself with the public ledger.
  11. After ~40 minutes, the application fails with the following message
    Loading...
    (0/6) Loading siad...
    (1/6) Loading gateway...
    (2/6) Loading consensus...
    (3/6) Loading transaction pool...
    (4/6) Loading wallet...
    (5/6) Loading host...
    (6/6) Loading renter...
    goroutine 68 [running]:
    runtime/debug.Stack(0x44439e, 0x0, 0xc044983a78)
    /usr/local/go/src/runtime/debug/stack.go:24 +0x80
    runtime/debug.PrintStack()
    /usr/local/go/src/runtime/debug/stack.go:16 +0x29
    github.com/NebulousLabs/Sia/build.Severe(0xc044983bf0, 0x2, 0x2)
    /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x99
    github.com/NebulousLabs/Sia/persist.(*Logger).Severe(0xc0420a7b20, 0xc044983bf0, 0x2, 0x2)
    /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xe7
    github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).syncResources(0xc042068788)
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6b0
    github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).commit(0xc042068788)
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47
    github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).threadedSyncLoop(0xc042068788, 0xc04219e300, 0xc04219e360)
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0x149
    created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).spawnSyncLoop
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0x103
    Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\mikec\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\mikec\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied.
    Closing host...
    Closing wallet...
    Closing transaction pool...
    Closing consensus...
    Closing gateway...
    invalid argument

    I've deleted these directories and run through the above steps multiple times (except the download step as the checksum passed). I've also read every reddit, blogpost, and github issue I can. And nothing has unfortunately worked:

At this point, I'm at a loss. Any assistance would be appreciated.

Logs attached

@tbenz9 Let me know if this should go in a new issue.

sia-logs.zip

tbenz9 commented 6 years ago

@lukechampine Think this is solved with 1.3.1 release?

betaboot commented 6 years ago

Not solved yet i think:

Sia Daemon v1.3.1
...
goroutine 65 [running]:
runtime/debug.Stack(0x446d5e, 0xc0429ebab0, 0xc0429eba78)
    /usr/local/go/src/runtime/debug/stack.go:24 +0xae
runtime/debug.PrintStack()
    /usr/local/go/src/runtime/debug/stack.go:16 +0x29
github.com/NebulousLabs/Sia/build.Severe(0xc0429ebbf0, 0x2, 0x2)
    /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x8c
github.com/NebulousLabs/Sia/persist.(*Logger).Severe(0xc042186880, 0xc0429ebbf0, 0x2, 0x2)
    /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xd3
github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).syncResources(0xc0420ae9c8)
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:110 +0x6a5
github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).commit(0xc0420ae9c8)
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:147 +0x47
github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).threadedSyncLoop(0xc0420ae9c8, 0xc0420aa720, 0xc0420aa780)
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:276 +0xa3
created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).spawnSyncLoop
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:223 +0xf4
Severe error: ERROR: could not rename temporary write-ahead-log in contract manager: rename C:\Users\Cube\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal_temp C:\Users\Cube\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.wal: Access is denied.

There's another error message as well:

goroutine 298224 [running]:
runtime/debug.Stack(0x446d5e, 0xc044499e20, 0xc044499de8)
    /usr/local/go/src/runtime/debug/stack.go:24 +0xae
runtime/debug.PrintStack()
    /usr/local/go/src/runtime/debug/stack.go:16 +0x29
github.com/NebulousLabs/Sia/build.Severe(0xc044499fa0, 0x2, 0x2)
    /home/luke/go/src/github.com/NebulousLabs/Sia/build/critical.go:32 +0x8c
github.com/NebulousLabs/Sia/persist.(*Logger).Severe(0xc042186880, 0xc044499fa0, 0x2, 0x2)
    /home/luke/go/src/github.com/NebulousLabs/Sia/persist/log.go:71 +0xd3
github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).syncResources.func1(0xc04225f3b0, 0xc0420ae9c8)
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:50 +0x402
created by github.com/NebulousLabs/Sia/modules/host/contractmanager.(*writeAheadLog).syncResources
    /home/luke/go/src/github.com/NebulousLabs/Sia/modules/host/contractmanager/writeaheadlogsync.go:25 +0x9a
Severe error: ERROR: unable to atomically copy the contract manager settings: rename C:\Users\Cube\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json_temp C:\Users\Cube\AppData\Roaming\Sia-UI\sia\host\contractmanager\contractmanager.json: Access is denied.