Nidhi-Patel20 opened a new issue, #5023:
URL: https://github.com/apache/couchdb/issues/5023
Hey there, I am looking for a solution either for method-1 or method-2.
For my enterprise software I need Couchdb to be packaged in it and install
it with following specifications.
service name : Apache-COUCHDB-3.3.3
ports :
chttpd = 5984
httpd = 5986
ssl = 6984
Till now I was using CouchDB-2.1.0 packaging (same directory structure as
when msi is installed and the above ports were made configurable) and install
it using windows cmd.
**> C:/CouchDB-2.1.0/bin/nssm.exe install service-name
C:/CouchDB-2.1.0/bin/couchdb.cmd C:/CouchDB-2.1.0/bin SERVICE_AUTO_START
> sc start service-name**
________________________________________
Method-1
As I want to use upgraded couchdb version for my enterprise software I
downloaded the apache-couchdb-3.3.3-2.msi from its official site and installed
the Apache Couchdb. But as I need the package and then customize it as
mentioned above, I zipped the installed directory folder and then extracted it
to a different folder. Also, I uninstalled the previously installed service. I
used the same commands as mentioned above and tried to install the service.
Although the service got installed but it never starts and just remains in
paused state. I tried to identify the root cause but couldn't find any
specific. Even logs are not getting generated at
**C:/CouchDB-3.3.3/var/log/couchdb.log.** But I observed a new file at
**C:/CouchDB-3.3.3/erl-cash.dump** was generated and it had following in it -
=erl_crash_dump:0.5
Mon Apr 1 19:15:56 2024
Slogan: could not start kernel pid (application_controller) (error in config
file "C:/CouchDB-3.3.3/bin.config" (none): configuration file not found)
System version: Erlang/OTP 24 [erts-12.3.2.14] [source] [64-bit] [smp:12:12]
[ds:12:12:16] [async-threads:1] [jit]
Taints:
Atoms: 5805
Calling Thread: scheduler:6
Same thing when I tried with CouchDB-2.1.0, it worked. Service was installed
and it was running fine with proper logs.
________________________________________
Method-2
I used apache-couchdb-3.3.3-2.msi and performed silent installation using
the below cmd provided in couchdb documentation.
**msiexec /i C:/apache-couchdb-3.3.3-2.msi /quiet INSTALLSERVICE=1
ADMINUSER=abc ADMINPASSWORD=pass@123 /norestart**
The service got installed and running fine. But I couldn't find a way to
customize ports and services at the time of installation.
Could you please help me out with this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]