Hello
I am trying to install Alfresco (latest version) and of course the search services.
For Alfresco, for an unknown reason I could make it work, mostly. Excepted for the connection with the search services. But I have the same problem in both components (Repo and Search) so if I can understand one, I might have clue to understand the other.
The problem is that they complain : "password can't be null".
So I will try first with the search services, because it is a standalone application, easier to start and stop hundreds of times.
In spite of cleverly inconsistent documentation, I could, I believe, setup the search services, I created the keystores with the tool downloaded from https://github.com/Alfresco/alfresco-ssl-generator , provided the information of the keystores (location, password, type) in the numerous places it was required, before that there were other errors such as unsafe location of the keystore resource (although I put it where I was told to do), but now Solr starts, excepted for the "password can't be null" error.
For instance, I ran the cool command, found somewhere in the documentation :
./solr/bin/solr start -a "-Dcreate.alfresco.defaults=alfresco,archive
-Dsolr.ssl.checkPeerName=false
-Dsolr.allow.unsafe.resourceloading=true
-Dssl-keystore.password=PASSWORD-KS
-Dssl-keystore.aliases=ssl-alfresco-ca,ssl-repo-client
-Dssl-keystore.ssl-alfresco-ca.password=PASSWORD-KS
-Dssl-keystore.ssl-repo-client.password=PASSWORD-KS
-Dssl-truststore.password=PASSWORD-TRS
-Dssl-truststore.aliases=ssl-alfresco-ca,ssl-repo,ssl-repo-client
-Dssl-truststore.ssl-alfresco-ca.password=PASSWORD-TRS
-Dssl-truststore.ssl-repo.password=PASSWORD-TRS
-Dssl-truststore.ssl-repo-client.password=PASSWORD-TRS" -f
where PASSWORD-KS is the password for the keystore, and PASSWORD-TRS is the password for the truststore.
At this point I have an error:
javax.net.ssl.SSLHandshakeException: PKIX path validation failed: java.security.cert.CertPathValidatorException: Path does not chain with any of the trust anchors
Java is Java 11, because I tried with 16 and it doesn't work because half dozen start parameters are unknown.
If I start solr with "solr start", I get the null password error.
So now I will try to get the source of my version and try to find what exactly I should do in order to give the password or make it work.
I had downloaded the version 2.0.5.
I go to the source repo (https://github.com/Alfresco/SearchServices/tree/2.0.0), no 2.0.5 version. There are tags for 2.0.0, 2.0.1, 2.0.2, 2.0.3, and pre-releases of 2.1.0.
Ok, let's go back to the beginning, download it again and check what is the latest version or an older one.
I go to the Alfresco download page for community edition. There I have "7.3 Community install". Ok.
Down the page I can find: 3. Non-containerized manual deployment. So far so good. I was there already.
And: Alfresco Search Services 2.0.3.zip. Hum ? 2.0.3 ?
But the link is: https://download.alfresco.com/cloudfront/release/community/SearchServices/2.0.5/alfresco-search-services-2.0.5.zip. And the README file says it's 2.0.5. That's why I believed I installed the version 2.0.5.
Then where is the source for this version ?
So to resume
- if someone can give the step-by-step procedure to setup this and have it work without any "null password" error, I'd be glad to follow it.
- Else if I have to find where is the mess, where are the sources in sync with the version available for download ?
Thank you.