cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Backoffice - backup and restore

nicolabeghin
Product and Topic Expert
Product and Topic Expert
0 Likes
2,143

Hi everyone maybe a silly question which has been bugging us from quite some time.

When cloning a system for debugging purposes we avoid copying over the /data folder since it takes ages to copy (being populated with thousands of small files). This is not a problem for running the cloned instance, you just need to be aware of missing images. Problem is, Backoffice can not run anymore, since it misses its temporary XML files like

Do you think there's a way around that in order to force Backoffice to create its own temporarily files again?

 Caused by: java.io.FileNotFoundException: /hybris/xyz/hybris/data/media/sys_master/h1d/h54/8806366019614.xml (File o directory non esistente)
         at java.io.FileInputStream.open0(Native Method) ~[?:1.8.0_181]
         at java.io.FileInputStream.open(FileInputStream.java:195) ~[?:1.8.0_181]
         at java.io.FileInputStream.<init>(FileInputStream.java:138) ~[?:1.8.0_181]
         at de.hybris.platform.media.storage.impl.LocalFileMediaStorageStrategy.getAsStream(LocalFileMediaStorageStrategy.java:220) ~[coreserver.jar:?]
         at de.hybris.platform.jalo.media.MediaManager$1.getStream(MediaManager.java:154) ~[coreserver.jar:?]
         at de.hybris.platform.jalo.media.MediaManager.getMediaAsStream(MediaManager.java:370) ~[coreserver.jar:?]
         at de.hybris.platform.jalo.media.MediaManager.getMediaAsStream(MediaManager.java:386) ~[coreserver.jar:?]
         at de.hybris.platform.servicelayer.media.impl.DefaultMediaService.getStreamFromMedia(DefaultMediaService.java:270) ~[coreserver.jar:?]
         ... 118 more

thanks a lot nicola

Accepted Solutions (1)

Accepted Solutions (1)

mpern
Product and Topic Expert
Product and Topic Expert

Yes there are are:

Activate automatic backoffice config reset (on login or server start) by adding some properties to local.properties

 #reset backoffice config every login
 backoffice.cockpitng.reset.triggers=login
 backoffice.cockpitng.reset.scope=widgets,cockpitConfig

Or open the Backoffice, ignore the errors and the blank screen, press F4 to activate the Application Orchestrator and then choose "Reset Everything" in the "Toolbar menu" at the top right

nicolabeghin
Product and Topic Expert
Product and Topic Expert
0 Likes

thanks a lot, trying right now!! (fyi, we're currently not able to open application orchestrator at all by pressing F4, so hope the properties will do the trick! )

nicolabeghin
Product and Topic Expert
Product and Topic Expert
0 Likes

thanks a lot, it works!

Answers (1)

Answers (1)

0 Likes

F4 not working for me

but following in local.properties worked for me . thanks

 #reset backoffice config every login
 backoffice.cockpitng.reset.triggers=login
 backoffice.cockpitng.reset.scope=widgets,cockpitConfig