How to sync /var folder | Community
Skip to main content
New Participant
October 15, 2021
Solved

How to sync /var folder

  • October 15, 2021
  • 1 reply
  • 1442 views

Hi All,

 

My site have two publish instance A and B. Now I found the var folder really different. It seems the B is missing a lot of folders (e.g. /var/audit, /var/linkchecker, /var/dam/share) under the /var.  The error log file is showing that can't find these path.

 

Does anyone know why this happened and how to fix it? Is there a way can sync the A and B to make the /var are bassiclly same between the A and B? 

 

Thanks,

Forrest

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by lukasz-m

Hi @forrestli, in general folders you are referring to, should be created automatically during AEM setup process (first run of instance when repository structure is created). In that case following reasons came into my mind related to described problem:

  1. Someone removed folders manually or via code.
  2. Instance has not been created correctly.

I can see below solutions:

  1. Recreate folder structure manually (respecting permissions that should be set against each folder).
  2. Create crx package on other instance (ideally fresh one), and install this package on your broken publish instance.
  3. Try to replicate missing folders from author (however in that case you should remember to disable replication agent for the other publish, please also keep in mind that you can replicate author/instance specific data - so you should be very careful)
  4. Recreate publish instance from scratch, or maybe you have some kind of copy you could use.

1 reply

lukasz-m
lukasz-mAccepted solution
New Participant
October 15, 2021

Hi @forrestli, in general folders you are referring to, should be created automatically during AEM setup process (first run of instance when repository structure is created). In that case following reasons came into my mind related to described problem:

  1. Someone removed folders manually or via code.
  2. Instance has not been created correctly.

I can see below solutions:

  1. Recreate folder structure manually (respecting permissions that should be set against each folder).
  2. Create crx package on other instance (ideally fresh one), and install this package on your broken publish instance.
  3. Try to replicate missing folders from author (however in that case you should remember to disable replication agent for the other publish, please also keep in mind that you can replicate author/instance specific data - so you should be very careful)
  4. Recreate publish instance from scratch, or maybe you have some kind of copy you could use.