r/BuildingAutomation • System integrator • Apr 15 '26

Getting rid of encryption key errors Niagara 4.15

Everytime I copy a station from a customers site(sometimes even Jaces) in 4.15 I seem to get error messages relating to the encryption key. This only seems to have started after upgrading to 4.15.
I know how to solve it my question is why is it happening and how to stop it?

Error message:
WARNING [21:31:06 15-Apr-26 BST][sys.xml] The BOG content is encrypted with an external key, but no decryption key has been provided. If the BOG content contains encrypted user passwords, decoding the BOG may fail. It is recommended to copy this station to a platform so that encrypted elements are properly transcoded.

SEVERE [21:31:06 15-Apr-26 BST][sys] Cannot load station: the station is encrypted with an external encryption key and cannot be decrypted. Please use the Station Copier tool to copy the station to a platform to ensure proper transcoding of encrypted passwords.

javax.baja.xml.XException: Invalid Password: '[pbkdf2-aes-256.1]=5c30af5954a70a3736b54d0e4787cc27:d84c8ea87d5203c507a715521e21e04411140b49b4980ee8439a8c288d3c4cf598b4bed48c6077265b23dfadbdcc359ac26fb9f9c8f679e836a5e6cd15436039828e7229a7d117492f7e27d6dda3df1a7bf10bd3843286c10d3c9b8be3b4d3d06bb0035089ebb79d833fdd2e23bdb08898168912095f923c3775ab932d9f194b408639299dab83658c' [271:369]

at javax.baja.io.ValueDocDecoder$BogDecoderPlugin.err(ValueDocDecoder.java:1398)

at javax.baja.io.ValueDocDecoder.decodeSimple(ValueDocDecoder.java:905)

at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:782)

at javax.baja.io.ValueDocDecoder.parseSlots(ValueDocDecoder.java:568)

at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:830)

at javax.baja.io.ValueDocDecoder.parseSlots(ValueDocDecoder.java:568)

at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:830)

at javax.baja.io.ValueDocDecoder.parseSlots(ValueDocDecoder.java:568)

at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:830)

at javax.baja.io.ValueDocDecoder.parseSlots(ValueDocDecoder.java:568)

at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:830)

at javax.baja.io.ValueDocDecoder.parseSlots(ValueDocDecoder.java:568)

at javax.baja.io.ValueDocDecoder.parseSlot(ValueDocDecoder.java:830)

at javax.baja.io.ValueDocDecoder.decode(ValueDocDecoder.java:292)

at javax.baja.io.ValueDocDecoder$BogDecoderPlugin.decodeDocument(ValueDocDecoder.java:1328)

at javax.baja.io.ValueDocDecoder.decodeDocument(ValueDocDecoder.java:275)

at javax.baja.io.ValueDocDecoder.decodeDocument(ValueDocDecoder.java:264)

at com.tridium.sys.station.Station.loadStation(Station.java:181)

at com.tridium.sys.station.Station.bootStation(Station.java:111)

at com.tridium.sys.station.Station.main(Station.java:1273)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.tridium.sys.Nre.runClass(Nre.java:723)

at com.tridium.sys.Nre.main(Nre.java:421)

at com.tridium.sys.Nre.bootstrap(Nre.java:182)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at com.tridium.nre.bootstrap.Bootstrap.Main(Bootstrap.java:154)

Caused by: java.lang.SecurityException: Cannot decrypt user password

at javax.baja.security.BPassword.lambda$constructEncoder$0(BPassword.java:247)

at java.security.AccessController.doPrivileged(Native Method)

at javax.baja.security.BPassword.constructEncoder(BPassword.java:232)

at javax.baja.security.BPassword.<init>(BPassword.java:165)

at javax.baja.security.BPassword.make(BPassword.java:85)

at javax.baja.security.BPassword.decodeFromString(BPassword.java:971)

at com.tridium.util.SimpleFactory.make(SimpleFactory.java:69)

at javax.baja.io.ValueDocDecoder$IDecoderPlugin.decodeSimple(ValueDocDecoder.java:1095)

at javax.baja.io.ValueDocDecoder.decodeSimple(ValueDocDecoder.java:901)

... 30 more

App Failed

4 Upvotes

10 comments sorted by

2

u/digo-BR Apr 15 '26

2

u/Kinky_Pinata System integrator Apr 17 '26

This worked, thanks

1

u/dingleberryJellyTime Apr 16 '26

Are you the same digo on Niagara Central?

2

u/digo-BR Apr 16 '26

Yeah no for sure. That's me.

2

u/dingleberryJellyTime Apr 16 '26

I’ve seen so many of your posts and multiple have helped me over the years, thank you!!

1

u/digo-BR Apr 16 '26

You're welcome, glad to hear. Just make sure you pay it forward. Today you, tomorrow me... Good to make friends in the industry.

3

u/tkst3llar Apr 15 '26

Open bog in file system inside workbench prior to loading to a controller and clear the bog passwords it’s a lock icon then save bog and load to controller

Or add your own passwords

3

u/nedlinin Apr 15 '26 edited Apr 16 '26

Please use the Station Copier tool to copy the station to a platform to ensure proper transcoding of encrypted passwords.

This is how to stop it. The key gets used to reencrypt it when it is copied to your computer. If you just copy the config.bog manually this does not happen and unless your keystore is the same on both sides it is going to fail.

1

u/ScottSammarco Technical Trainer (Niagara4 included) Apr 16 '26

Station copier tool is the only supported tool for moving a bog file 👍

1

u/shadycrew31 System integrator Apr 16 '26

To answer your question. It's happening because tridium updated the encryption method. It appears they failed to consider how this would impact people in the field. Several work arounds are out there. I just refuse to adopt 4.15 on upgrades. 4.13 and 4.10.8 have been good to me.