k3s won't start due to missing ca

tediorelee

Cadet
Joined
Jul 2, 2022
Messages
5
Hi I'm using truenas scale and recently I bought some new hard drives, when I put on the new hard drive, k3s service won't start, I checked the logs and it says
1656762146853.png


seems like k3s are using some crt file on my old hard drive, is there any way i can let k3s using new crt or how to fix this problem?
 

tediorelee

Cadet
Joined
Jul 2, 2022
Messages
5
Hi I'm using truenas scale and recently I bought some new hard drives, when I put on the new hard drive, k3s service won't start, I checked the logs and it says
View attachment 56539

seems like k3s are using some crt file on my old hard drive, is there any way i can let k3s using new crt or how to fix this problem?

/mnt/MyPool/ix-applications is the directory on my old hard drive and I no longer have it...
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
So did you replace the old drives with the new drives without doing a replace in the GUI or are these additional drives you added to your pool (or did you create a separate pool for these)? There's no reason why the new drives should be missing files from the old drives if you replaced them and waited for them to resilver. If you just yanked out the old drives that had your data on them and replaced them all with new drives that's definitely going to cause issues. We need a bit more info.

The easiest fix is just just nuke your K3S configuration (delete the ix-applications dataset) and start over so it can recreate all the files it needs. This is the reason why I keep all my important data stored in a dataset outside of the containers instead of in volumes, that way when something is FUBAR I can just nuke the setup, redo the container configs and have all my apps already setup the way I want.
 

tediorelee

Cadet
Joined
Jul 2, 2022
Messages
5
So did you replace the old drives with the new drives without doing a replace in the GUI or are these additional drives you added to your pool (or did you create a separate pool for these)? There's no reason why the new drives should be missing files from the old drives if you replaced them and waited for them to resilver. If you just yanked out the old drives that had your data on them and replaced them all with new drives that's definitely going to cause issues. We need a bit more info.

The easiest fix is just just nuke your K3S configuration (delete the ix-applications dataset) and start over so it can recreate all the files it needs. This is the reason why I keep all my important data stored in a dataset outside of the containers instead of in volumes, that way when something is FUBAR I can just nuke the setup, redo the container configs and have all my apps already setup the way I want.
thank you for your reply!

since I don't have any import data on my system, so I reinstall the truenas system, but now I'm facing another problem, I can not get the docker app running, the log says "PodInitializing","reason":"BadRequest","code":400"

my internet works fine and after some rebooting and I still can not fix this problem
 

tediorelee

Cadet
Joined
Jul 2, 2022
Messages
5
thank you for your reply!

since I don't have any import data on my system, so I reinstall the truenas system, but now I'm facing another problem, I can not get the docker app running, the log says "PodInitializing","reason":"BadRequest","code":400"

my internet works fine and after some rebooting and I still can not fix this problem

here is the screenshot
1656784960629.png
 

brando56894

Wizard
Joined
Feb 15, 2014
Messages
1,537
Did you delete the dataset/wipe the drives that had the old kubernetes data on it? I'd suggest hitting up the TrueCharts discord if you're still having issues.
 
Top