<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cannot find Alfresco Repository after docker-compose down in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118165#M32605</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;It's not easy to understand what's happening there.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;docker-compose&lt;/EM&gt; down does not remove any data from your Docker Volumes, the information still should be present there.&lt;/P&gt;&lt;P&gt;I suggest you to inspect the logs and the volumes in order to gather additional hints on the problem.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;I tried to execute &lt;EM&gt;docker-compose&lt;/EM&gt; down on another computer and I found that container, overlay2, network, and volumes folders which under /var/lib/docker had been changed their last modified date, some subfolders are deleted.&lt;/P&gt;&lt;P&gt;Then I did &lt;EM&gt;docker ps -a&lt;/EM&gt;, it shows the alfresco service has gone. (I searched Docker documentation, It seems that because of the docker-compose down would delete the containers and network folders)&lt;/P&gt;&lt;P&gt;When I did&amp;nbsp;&lt;EM&gt;docker-compose up -d&lt;/EM&gt;&amp;nbsp;to start alfresco service&amp;nbsp;at this time, It seems a new alfresco service had been built, what I had uploaded on the last alfresco has been gone.&lt;/P&gt;&lt;P&gt;I think this alert&amp;nbsp;&lt;EM&gt;Cannot find Alfresco Repository&lt;/EM&gt; should be due to the subfolders having been deleted.&lt;/P&gt;&lt;P&gt;I tried to back up the folders before executing&amp;nbsp;&lt;EM&gt;docker-compose down&lt;/EM&gt;, and restore them after doing &lt;EM&gt;docker-compose down&lt;/EM&gt;. Then restart docker service, and &lt;EM&gt;docker-compose up&lt;/EM&gt;, It seems the data could be recovered.&lt;/P&gt;&lt;P&gt;I wonder if I could just use disk tools to recover these folders to get the service work as before?&lt;/P&gt;&lt;P&gt;Here is my alfresco log. But&amp;nbsp;I can't understand them immediately, It seems that springframework was been&amp;nbsp;corrupted?&lt;/P&gt;&lt;P&gt;The log file contains too many characters, can't paste them all in this reply. So I post them as photos.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1301i1EB90B621214B9BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part1.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1300i22D6531CEAF1516A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part2.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1302i05234876824504F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part3.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1303i31C68A82D019B949/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part4.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1304i10DC5DE958CACD9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part5.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1305i3C855C7B050B8C36/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 31 Dec 2021 02:57:13 GMT</pubDate>
    <dc:creator>addon0</dc:creator>
    <dc:date>2021-12-31T02:57:13Z</dc:date>
    <item>
      <title>Cannot find Alfresco Repository after docker-compose down</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118163#M32603</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I've installed the Alfresco community version service just by &lt;EM&gt;docker-compose up&lt;/EM&gt; months ago.&lt;/P&gt;&lt;P&gt;Several days ago, after doing &lt;EM&gt;docker-compose up&lt;/EM&gt;, I stupidly did &lt;EM&gt;docker-compose down&lt;/EM&gt; instead of the &lt;EM&gt;docker-compose stop&lt;/EM&gt; just for stopping the service. And when I restart the service, I can't log in my account though the login page(localhost:8080/share) is working. And localhost:8080&amp;nbsp;alert&amp;nbsp;an error:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Cannot find Alfresco Repository on this server. (Does this application have access to alfresco-global.properties? Does this application have cross-context permissions?)"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I deployed alfresco by docker on another Ubuntu server through VMware, and I use &lt;EM&gt;docker ps&lt;/EM&gt;, the docker services running are the same as the physical computer. But the physical one alerts that error.&lt;/P&gt;&lt;P&gt;I did docker-compose down on the virtual Ubuntu, and the files I uploaded on alfresco just disappear when I restart it.&lt;/P&gt;&lt;P&gt;I wonder if my data will be deleted after&lt;EM&gt; docker-compose down.&lt;/EM&gt; If not, how can I recover them?&lt;/P&gt;&lt;P&gt;Still waiting for helping. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 01:10:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118163#M32603</guid>
      <dc:creator>addon0</dc:creator>
      <dc:date>2021-12-17T01:10:00Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find Alfresco Repository after docker-compose down</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118164#M32604</link>
      <description>&lt;P&gt;It's not easy to understand what's happening there.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;docker-compose&lt;/EM&gt; down does not remove any data from your Docker Volumes, the information still should be present there.&lt;/P&gt;
&lt;P&gt;I suggest you to inspect the logs and the volumes in order to gather additional hints on the problem.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Dec 2021 08:26:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118164#M32604</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2021-12-17T08:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find Alfresco Repository after docker-compose down</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118165#M32605</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;It's not easy to understand what's happening there.&lt;/P&gt;&lt;P&gt;&lt;EM&gt;docker-compose&lt;/EM&gt; down does not remove any data from your Docker Volumes, the information still should be present there.&lt;/P&gt;&lt;P&gt;I suggest you to inspect the logs and the volumes in order to gather additional hints on the problem.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;&lt;P&gt;I tried to execute &lt;EM&gt;docker-compose&lt;/EM&gt; down on another computer and I found that container, overlay2, network, and volumes folders which under /var/lib/docker had been changed their last modified date, some subfolders are deleted.&lt;/P&gt;&lt;P&gt;Then I did &lt;EM&gt;docker ps -a&lt;/EM&gt;, it shows the alfresco service has gone. (I searched Docker documentation, It seems that because of the docker-compose down would delete the containers and network folders)&lt;/P&gt;&lt;P&gt;When I did&amp;nbsp;&lt;EM&gt;docker-compose up -d&lt;/EM&gt;&amp;nbsp;to start alfresco service&amp;nbsp;at this time, It seems a new alfresco service had been built, what I had uploaded on the last alfresco has been gone.&lt;/P&gt;&lt;P&gt;I think this alert&amp;nbsp;&lt;EM&gt;Cannot find Alfresco Repository&lt;/EM&gt; should be due to the subfolders having been deleted.&lt;/P&gt;&lt;P&gt;I tried to back up the folders before executing&amp;nbsp;&lt;EM&gt;docker-compose down&lt;/EM&gt;, and restore them after doing &lt;EM&gt;docker-compose down&lt;/EM&gt;. Then restart docker service, and &lt;EM&gt;docker-compose up&lt;/EM&gt;, It seems the data could be recovered.&lt;/P&gt;&lt;P&gt;I wonder if I could just use disk tools to recover these folders to get the service work as before?&lt;/P&gt;&lt;P&gt;Here is my alfresco log. But&amp;nbsp;I can't understand them immediately, It seems that springframework was been&amp;nbsp;corrupted?&lt;/P&gt;&lt;P&gt;The log file contains too many characters, can't paste them all in this reply. So I post them as photos.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1301i1EB90B621214B9BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part1.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1300i22D6531CEAF1516A/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part2.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1302i05234876824504F9/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part3.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1303i31C68A82D019B949/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part4.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1304i10DC5DE958CACD9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="alfresco log part5.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1305i3C855C7B050B8C36/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Dec 2021 02:57:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118165#M32605</guid>
      <dc:creator>addon0</dc:creator>
      <dc:date>2021-12-31T02:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find Alfresco Repository after docker-compose down</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118166#M32606</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/89181"&gt;@addon0&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;I did docker-compose down on the virtual Ubuntu, and the files I uploaded on alfresco just disappear when I restart it.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hope Angel is right and you have a persistant volumes. Because, if you use docker-compose.yml without persistant volumes like &lt;A href="https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/community-docker-compose.yml" target="_self" rel="nofollow noopener noreferrer"&gt;this one&lt;/A&gt;, all data was stored inside containers. docker-compose down coommand remove all containters and their data. So after down/up the system will be clean.&lt;/P&gt;&lt;P&gt;Hope in your case data could stay in the droped docker volumes without names or trash docker folders.&lt;/P&gt;&lt;P&gt;Use&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;docker volume ls&lt;/PRE&gt;&lt;P&gt;and&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;docker volume inspect &amp;lt;VOLUME&amp;gt;&lt;/PRE&gt;&lt;P&gt;commands to find droped volumes from your services (containers). I never tried to do so and can't tall you it is possible to restore data in this way. Read &lt;A href="https://stackoverflow.com/questions/29202787/restore-deleted-container-docker" target="_self" rel="nofollow noopener noreferrer"&gt;this topic&lt;/A&gt; for more information. Founded folders copy to the VM and mount it as a volumes to the containers.&lt;/P&gt;&lt;P&gt;To make data indepandent from containers, named or persistant volumes must be used. For example, persistant volumes:&lt;/P&gt;&lt;PRE&gt;services:
    alfresco:
        ...
        volumes: 
            - ./data/alf-repo-data:/usr/local/tomcat/alf_data

    postgres:
        ...
        volumes: 
            - ./data/postgres-data:/var/lib/postgresql/data

    solr6:
        ...
        volumes: 
            - ./data/solr-data:/opt/alfresco-search-services/data&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Dec 2021 08:30:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118166#M32606</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2021-12-31T08:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find Alfresco Repository after docker-compose down</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118167#M32607</link>
      <description>&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;Unfortunately, I just did docker-compose up command to build service, didn't realize that I need to persistent volumes before. I checked the .yml file, and it didn't define the volume path.&lt;/P&gt;&lt;P&gt;I had recovered some deleted files using disk tools these days, but the service still didn't start up as I wish. And it seems because of symbolic links&amp;nbsp;under /var/lib/docker/overlay2 or something else.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Jan 2022 12:34:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118167#M32607</guid>
      <dc:creator>addon0</dc:creator>
      <dc:date>2022-01-05T12:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find Alfresco Repository after docker-compose down</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118168#M32608</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/6711"&gt;@fedorow&lt;/A&gt;&amp;nbsp;wrote:&lt;BR /&gt;...&lt;P&gt;Because, if you use docker-compose.yml without persistant volumes like &lt;A href="https://github.com/Alfresco/acs-deployment/blob/master/docker-compose/community-docker-compose.yml" target="_self" rel="nofollow noopener noreferrer"&gt;this one&lt;/A&gt;, all data was stored inside containers.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I just noticed that you mentioned if I didn't have persistent volumes in docker-compose.yml then that all data would be stored inside containers. Did you mean that all data was stored under /var/lib/docker/containers folder?&lt;/P&gt;&lt;P&gt;After docker-compose down, I found that containers, overlay2, images folders had changed their modified date. So&amp;nbsp;I wonder if I could just restore these folders, then the service could work as before?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 03:07:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118168#M32608</guid>
      <dc:creator>addon0</dc:creator>
      <dc:date>2022-01-06T03:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot find Alfresco Repository after docker-compose down</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118169#M32609</link>
      <description>&lt;P&gt;I'm not said it is possible, only expressed some hope and the direction to investigate.&lt;/P&gt;&lt;P data-unlink="true"&gt;Unfortunately looks like this is the end.&amp;nbsp;&lt;A href="https://forums.docker.com/t/is-it-possible-to-undo-docker-rm-container/7750" target="_self" rel="nofollow noopener noreferrer"&gt;Is it possible to undo docker rm CONTAINER?&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 19:09:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/cannot-find-alfresco-repository-after-docker-compose-down/m-p/118169#M32609</guid>
      <dc:creator>fedorow</dc:creator>
      <dc:date>2022-01-06T19:09:49Z</dc:date>
    </item>
  </channel>
</rss>

