deploymentrepositoryportdevopsartifactory

Default port (8081) changing to different port in jfrog-artifactory-oss-7.3.2 in windows 10


I have installed the jfrog-artifactory-oss-7.3.2 in windows 10. Default port has been changed to the 8285 in below files. (8285 port is available)

  1. C:\jfrog-artifactory-oss-7.3.2-windows\artifactory-oss-7.3.2\app\artifactory\tomcat\conf/server.xml
  2. C:\jfrog-artifactory-oss-7.3.2-windows\artifactory-oss-7.3.2\app\misc\tomcat/server.xml.template
  3. C:\jfrog-artifactory-oss-7.3.2-windows\artifactory-oss-7.3.2\app\misc\tomcat/server.xml

once execute artifactory.bat server is getting up without any issue. I don't see any log errors in catalina log either access, access_service etc log files.

but browser gives below error.

***** HTTP Status 404 – Not Found Type Status Report Message /ui/ Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists. Apache Tomcat/8.5.51 *****

If i change back to the default port(8081) it works perfectly.

If someone came across issue like this please share your thoughts and solutions.


Solution

  • To change server port of Artifactory, you need change in system.yaml. Please review system.yaml.template.

    The path in system.yaml is

    artifactory:
      port: 8081
    

    This change will make changes needed in server.xml as well.

    Also if you want to change the router port which serves the UI. Please change system.yaml as below

    router:
        entrypoints:
            externalPort: <new port>
    

    Let me know if this does not work for you.