NixOS Containers: Difference between revisions

From NixOS Wiki
imported>Samueldr
Created with troubleshooting section, for an issue I just had.
 
imported>Samueldr
m typo :(
Line 3: Line 3:
== Troubleshooting ==
== Troubleshooting ==


=== I have changed the host' channel and some services are acting weird ===
=== I have changed the host's channel and some services are acting weird ===


Acting weird could be any of those, non exhaustive symptoms:
Acting weird could be any of those, non exhaustive symptoms:

Revision as of 00:54, 4 November 2017

There's not much to read here. Look at NixOS Manual, the upstream documentation on containers meanwhile.

Troubleshooting

I have changed the host's channel and some services are acting weird

Acting weird could be any of those, non exhaustive symptoms:

  • Lost data in PostgreSQL database

Solution

If you did not have a system.stateVersion option set inside your declarative container configuration, it will use the default one for the channel. Your data might be safe, if you did nothing meanwhile. Add the missing system.stateVersion to your container, rebuild, and possibly stop/start the container.

See also

NixOS Manual, Chapter 28. Container Management