<?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: how to config custom solr port while alfresco 6.2 installation using docker-compose.yml in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-config-custom-solr-port-while-alfresco-6-2-installation/m-p/92167#M27319</link>
    <description>&lt;P&gt;Hi Abhinav,&lt;/P&gt;&lt;P&gt;I am using distribution zip way, my custom solr port is 9983.&lt;/P&gt;&lt;P&gt;But somewhere when I start, it is still picking 8983 from somewhere. not able to start service.&lt;/P&gt;&lt;P&gt;we stopped service for our custom port (some other app using solr6 on 8983 already , their service running)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Error binding ShutdownMonitor to port 8983: java.net.BindException: Address already in use: NET_Bind&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;port changed in alfresco-global.properties file&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;port changed in solr.in.cmd file&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;port changed in solrcore.properties file&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;let me know if anything else remain. it is not starting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;we are using alfresco-7.3.1 distribution zip on windows 10 with postgres db&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Ghanshyam&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Dec 2023 11:12:30 GMT</pubDate>
    <dc:creator>grathod</dc:creator>
    <dc:date>2023-12-22T11:12:30Z</dc:date>
    <item>
      <title>how to config custom solr port while alfresco 6.2 installation using docker-compose.yml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-config-custom-solr-port-while-alfresco-6-2-installation/m-p/92165#M27317</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to change the default port of solr 8983 to custom port. I have tried to change this in docker.compose.yml file but it didn't work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;services:&lt;BR /&gt;alfresco:&lt;BR /&gt;&lt;BR /&gt;build:&lt;BR /&gt;dockerfile: ./DockerFile&lt;BR /&gt;context: ./configs-to-override/alfresco&lt;BR /&gt;mem_limit: 1500m&lt;BR /&gt;environment:&lt;BR /&gt;JAVA_OPTS: "&lt;BR /&gt;-Ddb.driver=org.postgresql.Driver&lt;BR /&gt;-Ddb.username=alfresco&lt;BR /&gt;-Ddb.password=alfresco&lt;BR /&gt;-Ddb.url=jdbc&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;ostgresql://postgres:5454/alfresco&lt;BR /&gt;-Dsolr.host=solr6&lt;BR /&gt;-Dsolr.port=8983&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;solr6:&lt;BR /&gt;image: alfresco/alfresco-search-services:1.4.0&lt;BR /&gt;mem_limit: 2g&lt;BR /&gt;environment:&lt;BR /&gt;#Solr needs to know how to register itself with Alfresco&lt;BR /&gt;- SOLR_ALFRESCO_HOST=alfresco&lt;BR /&gt;- SOLR_ALFRESCO_PORT=7080&lt;BR /&gt;#Alfresco needs to know how to call solr&lt;BR /&gt;- SOLR_SOLR_HOST=solr6&lt;BR /&gt;- SOLR_SOLR_PORT=8983&lt;BR /&gt;#Create the default alfresco and archive cores&lt;BR /&gt;- SOLR_CREATE_ALFRESCO_DEFAULTS=alfresco,archive&lt;BR /&gt;#HTTP by default&lt;BR /&gt;- ALFRESCO_SECURE_COMMS=none&lt;BR /&gt;- "SOLR_JAVA_MEM=-Xms2g -Xmx2g"&lt;BR /&gt;ports:&lt;BR /&gt;- 8083:8983 #Browser port&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2020 13:58:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-config-custom-solr-port-while-alfresco-6-2-installation/m-p/92165#M27317</guid>
      <dc:creator>Aswani_Juvva</dc:creator>
      <dc:date>2020-08-05T13:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: how to config custom solr port while alfresco 6.2 installation using docker-compose.yml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-config-custom-solr-port-while-alfresco-6-2-installation/m-p/92166#M27318</link>
      <description>&lt;P&gt;Changing solr port needs similar type of approach as provided in this post:&amp;nbsp;&lt;A href="https://javaworld-abhinav.blogspot.com/2020/07/change-alfresco-share-proxy-and-db.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://javaworld-abhinav.blogspot.com/2020/07/change-alfresco-share-proxy-and-db.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Port 8983 is default port for alfresco-search-service and it is exposed within the image. So even if you change the 'ports' configuration in docker-compose.yml, you would notice that solr6 still runs on 8983 port and alfresco will fail to connect to solr6 if 'solr.port' value is updated to anything else. Below log indicates the port for solr6 at startup.&lt;/P&gt;

&lt;PRE&gt;INFO  (main) [   ] o.a.s.s.SolrDispatchFilter / __| ___| |_ _   Starting in standalone mode on port 8983
&lt;/PRE&gt;
&lt;P&gt;You can either use docker-compose.yml file to add an environment variable which alfresco-search-service's jetty server uses or update the startup script or update shared.properties with help of DockerFile.&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;U style="font-family: inherit;"&gt;To change the solr port you need to follow these instructions:&lt;/U&gt;&lt;/P&gt;

&lt;P&gt;- Update following properties in 'JAVA_OPTS' section under 'alfresco' service defintion. E.g. 9999 is your custom port.&lt;/P&gt;

&lt;PRE&gt; -Dsolr.port=&lt;STRONG&gt;9999&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;- Update following variable in 'environment' section under 'solr6' service defintion. E.g. 9999 is your custom port.&lt;/P&gt;


&lt;PRE&gt;#Alfresco needs to know how to call solr&lt;BR /&gt;- SOLR_SOLR_PORT=&lt;STRONG&gt;9999&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;- Add following variable in 'environment' section under 'solr6' service defintion. E.g. 9999 is your custom port.&lt;/P&gt;


&lt;PRE&gt; #Solr jetty port, to start solr6 on port 9999
&lt;STRONG&gt; - SOLR_PORT=9999&lt;/STRONG&gt;&lt;/PRE&gt;
&lt;P&gt;- Update port number in 'ports' section under 'solr6' service defintion. E.g. 9999 is your custom port.&lt;/P&gt;


&lt;PRE&gt;ports:
  - 8083:&lt;STRONG&gt;9999&lt;/STRONG&gt; &lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Aug 2020 21:47:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-config-custom-solr-port-while-alfresco-6-2-installation/m-p/92166#M27318</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2020-08-05T21:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to config custom solr port while alfresco 6.2 installation using docker-compose.yml</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-config-custom-solr-port-while-alfresco-6-2-installation/m-p/92167#M27319</link>
      <description>&lt;P&gt;Hi Abhinav,&lt;/P&gt;&lt;P&gt;I am using distribution zip way, my custom solr port is 9983.&lt;/P&gt;&lt;P&gt;But somewhere when I start, it is still picking 8983 from somewhere. not able to start service.&lt;/P&gt;&lt;P&gt;we stopped service for our custom port (some other app using solr6 on 8983 already , their service running)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class=""&gt;Error binding ShutdownMonitor to port 8983: java.net.BindException: Address already in use: NET_Bind&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;port changed in alfresco-global.properties file&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;port changed in solr.in.cmd file&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN class=""&gt;port changed in solrcore.properties file&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN class=""&gt;let me know if anything else remain. it is not starting.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;we are using alfresco-7.3.1 distribution zip on windows 10 with postgres db&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Ghanshyam&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 11:12:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-config-custom-solr-port-while-alfresco-6-2-installation/m-p/92167#M27319</guid>
      <dc:creator>grathod</dc:creator>
      <dc:date>2023-12-22T11:12:30Z</dc:date>
    </item>
  </channel>
</rss>

