Problem Upgrading from Openhabian 3.4.2 to 4.x

Why don’t you just reinstall from scratch and import your old config as recommended ?