Forum archive
Debian "in place" upgrade did not go well.
Note: this discussion was started by gonza as a comment in an older although quite relevant thread. The only difference was the versions in the attempted "Debian in-place upgrade" - from v17.x (Debian 11/Bullseye) to v18.x (Debian 12/Bookworm). The new issues reported by gonza are version specific so better in a new thread.
Well, the upgrade did not go well.
What I did:
- Updated the turnkey keys - OK
- Updated the repos replacing bullseye with bookworm - OK
- Did minimal upgrade first. apt update && apt upgrade - OK
- Answered to keep old conf files (smb.conf, etc.. ) - OK
- Did apt full-upgrade - OK
- Reboot - OK
Lost access to the samba share in windows and access to webmin after reboot :(
I'm pretty sure I know what the Webmin issue is. Unfortunately I'm not sure about the samba share issue, but I'll share what I can think of below.
FWIW technically we don't officially support "Debian in-place upgrades". But I always try to give "best effort" TurnKey support regardless. Plus even though others haven't reported them, there may also be (likely different) issues doing a TKLBAM data migration too.
First to webmin. Sorry I didn't think of it previously, but we made some significant changes to webmin and webshell in v18.x. I'm certain that the Webmin issue is related to those changes. As noted in the changelog, we removed the stunnel reverse proxy, as well as removing webshell altogether. By default v18.x, Webmin now listens directly on port 12321 and Webmin includes a shell - so no need for a separate web based shell.
Unfortunately I forget exactly what is needed to get it going again when doing an "in place" upgrade. I thought that I had documented it somewhere but I can't find it ATM :( Anyway, here's a rundown of (what I think) should update it to match our current config and get Webmin going again - or at least close...:
Hopefully that should get webmin going again... Please post back if it doesn't, and include some info. The contents of /etc/webmin/miniserv.conf and some status & log info. This should probably be enough:
Here's the content of a v18.x webmin mini server config I have handy. The file is /etc/webmin/miniserv.conf - FWIW I'm a CLI guy and don't use Webmin myself, but hopefully that should be enough for your purposes:
I notice that the certfile isn't noted there, but if that causes issues, the default TurnKey one (/etc/ssl/private/cert.pem) should work fine.
Re the samba share stuff, TBH I'm not really sure.
It sounds like you kept your default config when doing the initial upgrade so I'm assuming that you did that too when you did the full upgrade.
I don't recall what - if any - config changes we did for v18.x, but you can check by cross referencing the default v18.x samba conf.
Beyond that, double check that the samba service/s are running - main service is 'smb' and if anything accesses shares via NETBIOS name (only old Windows or other samba servers) also check the 'nmb' service. Perhaps try restarting them too? Definitely if/when you change config.
If it's still not working after that, then check the journal and samba logs for errors or anything else that looks relevant..
Please post back with any/all progress you have. If you can get either/both going again, please share with what you did. If you continue to have issues with either/both then share some more info as noted above.
Good luck.