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

Removing and re-adding the same folder panics #2262

Closed
AudriusButkevicius opened this issue Sep 10, 2015 · 5 comments
Closed

Removing and re-adding the same folder panics #2262

AudriusButkevicius opened this issue Sep 10, 2015 · 5 comments
Labels
bug A problem with current functionality, as opposed to missing functionality (enhancement) frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion

Comments

@AudriusButkevicius
Copy link
Member

No description provided.

@AudriusButkevicius AudriusButkevicius added the bug A problem with current functionality, as opposed to missing functionality (enhancement) label Sep 10, 2015
@calmh
Copy link
Member

calmh commented Sep 11, 2015

For the record:

2015/09/11 14:13:17 http: panic serving 127.0.0.1:60104: cannot start already running folder s12
goroutine 117 [running]:
net/http.(*conn).serve.func1(0xc8205604d0, 0x19abb20, 0xc8204cc760)
    /usr/local/go/src/net/http/server.go:1287 +0xb5
github.com/syncthing/syncthing/lib/model.(*Model).StartFolderRW(0xc820082120, 0xc8204f7e50, 0x3)
    /Users/jb/src/github.com/syncthing/syncthing/lib/model/model.go:170 +0x271
github.com/syncthing/syncthing/lib/model.(*Model).CommitConfiguration(0xc820082120, 0xc, 0xc820188580, 0x2, 0x4, 0xc8201801a0, 0x3, 0x4, 0x1, 0xc820679420, ...)
    /Users/jb/src/github.com/syncthing/syncthing/lib/model/model.go:1809 +0x1f05
github.com/syncthing/syncthing/lib/config.(*Wrapper).replaceLocked(0xc82021e000, 0xc, 0xc82054a2c0, 0x3, 0x4, 0xc820ea0340, 0x3, 0x4, 0x1, 0xc8204eca70, ...)
    /Users/jb/src/github.com/syncthing/syncthing/lib/config/wrapper.go:166 +0x797
github.com/syncthing/syncthing/lib/config.(*Wrapper).Replace(0xc82021e000, 0xc, 0xc82054a2c0, 0x3, 0x4, 0xc820ea0340, 0x3, 0x4, 0x1, 0xc8204eca70, ...)
    /Users/jb/src/github.com/syncthing/syncthing/lib/config/wrapper.go:141 +0xf1
main.(*apiSvc).postSystemConfig(0xc820154180, 0x19abc78, 0xc82054d130, 0xc8204d4a80)
    /Users/jb/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:565 +0x535
main.(*apiSvc).(main.postSystemConfig)-fm(0x19abc78, 0xc82054d130, 0xc8204d4a80)
    /Users/jb/src/github.com/syncthing/syncthing/cmd/syncthing/gui.go:164 +0x3e
net/http.HandlerFunc.ServeHTTP(0xc8200117d0, 0x19abc78, 0xc82054d130, 0xc8204d4a80)
    /usr/local/go/src/net/http/server.go:1422 +0x3a

@marrie
Copy link

marrie commented Sep 15, 2015

Kind of looks like this issue I submitted here but not sure. If not please disregard.

@calmh
Copy link
Member

calmh commented Sep 29, 2015

(This is at least partly user error, as removing a folder currently requires restart.)

@jpjp
Copy link
Contributor

jpjp commented Sep 30, 2015

A crash can never be a user error...

@calmh
Copy link
Member

calmh commented Sep 30, 2015

It doesn't actually crash, it just prints a panic on the console. But yes, you're right. The change requires a restart, and it works after the restart.

@calmh calmh closed this as completed in 73285ca Nov 13, 2015
AudriusButkevicius added a commit that referenced this issue Nov 13, 2015
Remove folder without restart (fixes #2262)
@st-review st-review added the frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion label Jun 16, 2017
@syncthing syncthing locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug A problem with current functionality, as opposed to missing functionality (enhancement) frozen-due-to-age Issues closed and untouched for a long time, together with being locked for discussion
Projects
None yet
Development

No branches or pull requests

5 participants