Comments (7)
Hey @Nidhi-Patel20,
I tried to reproduce your issues, with no luck. All is working for me.
At the moment, there is no way to configure your ports during (silent) installation! This needs to be implemented.
Next, try to start CouchDB from a normal command prompt for example with (install dir C:\CouchDB-3.3.3
):
C:\>CouchDB-3.3.3\bin\couchdb.cmd
This should start CouchDB (and there should be no output).
If you get a crash report, please append the message here!
Before we proceed, give this a try and show your findings.
Cheers, Ronny
from couchdb.
Hey Ronny,
Nidhi works with me, so I know her use case and let explain that to you.
Ours is a desktop based enterprise application for Windows. The application has a mobile app which uses CouchDB. The entire product is shipped in the form on an installer (.exe). The executable takes care of installing Tomcat, ActiveMQ, MariaDB and CouchDB as Windows services.
CouchDB v2.1.0:
Till now we have been using this version. The way we packaged it with our installer is:
- Install CouchDB using msi installer. Stop the services and zip the installation directory. This was just one time activity.
- Use the zip in all the enterprise installer bundling.
- When the installer is run, identify the open ports and use them in the config properties and run the commands like following to install the CouchDB service -
> C:/NS/Production/Mobile/CouchDB/bin/nssm.exe install NS-COUCHDB-5985 C:/NS/Production/Mobile/CouchDB/bin/couchdb.cmd C:/NS/Production/Mobile/CouchDB/bin SERVICE_AUTO_START
> sc start NS-COUCHDB-5985
CouchDB v3.3.3:
We're now upgrading to this version of CouchDB. We tried using the above steps. The service gets installed, but it doesn't start up. So this doesn't work anymore for us.
Next we tried the silent installation. This installs the CouchDB but we're now not in control to identify and specify the ports beforehand and customize the service name.
Controlling the ports and service name before installation is important to us, because if we don't follow this and there's any deviation in the port consumption or service name, our customers won't be happy.
So, with v3.3.3, is there any workaround with which we can achieve this?
Thanks in advance!
Regards,
Siddhesh Malpani
from couchdb.
Hi Siddhesh,
CouchDB v3.3.3: We're now upgrading to this version of CouchDB. We tried using the above steps. The service gets installed, but it doesn't start up. So this doesn't work anymore for us. Next we tried the silent installation. This installs the CouchDB but we're now not in control to identify and specify the ports beforehand and customize the service name.
Controlling the ports and service name before installation is important to us, because if we don't follow this and there's any deviation in the port consumption or service name, our customers won't be happy. So, with v3.3.3, is there any workaround with which we can achieve this?
thanks, understood! But if we go further, please do the steps I mentioned above:
Next, try to start CouchDB from a normal command prompt for example with (install dir C:\CouchDB-3.3.3):
C:>CouchDB-3.3.3\bin\couchdb.cmd
This should start CouchDB (and there should be no output in the command prompt).
If you get a crash report, please append the message here!
Before we proceed, give this a try and show your findings.
With this steps, I want to see if you can run CouchDB as a normal user.
from couchdb.
Hi Ronny,
As suggested by you, by running C:>CouchDB-3.3.3\bin\couchdb.cmd
we could run the CouchDB and it didn't not generate any crash dump.
However, if we create a service out of it and try to run, it fails to start and generates a crash dump. PFA, I hope it helps.
Regards,
Siddhesh Malpani
from couchdb.
Hi Ronny,
Did you get a chance to look at the crash dump?
Regards,
Siddhesh Malpani
from couchdb.
Hi,
mhh, I can't reproduce this!
I did this steps to install CouchDB (without the automatic service installation):
Silenty install CouchDB to C:\CouchDB-Test
:
msiexec /i apache-couchdb-3.3.3.msi /quiet APPLICATIONFOLDER=C:\CouchDB-Test ADMINUSER=a ADMINPASSWORD=a /norestart
Afterwards CouchDB should be installed into C:\CouchDB-Test
.
Now you can manually install the service with (you need admin rights):
C:\CouchDB-Test\bin\nssm.exe install "Apache CouchDB Test" "C:\CouchDB-Test\bin\couchdb.cmd"
Service "Apache CouchDB Test" installed successfully!
Now you can check the installation and the status of the service (should be stopped):
C:\CouchDB-Test\bin\nssm.exe status "Apache CouchDB Test"
SERVICE_STOPPED
The service should start with:
C:\CouchDB-Test\bin\nssm.exe start "Apache CouchDB Test"
Apache CouchDB Test: START: Der Vorgang wurde erfolgreich beendet. (<-- translating: starting was successful)
C:\CouchDB-Test\bin\nssm.exe status "Apache CouchDB Test"
SERVICE_RUNNING
Testing:
curl.exe http://127.0.0.1:5984/_up
{"status":"ok","seeds":{}}
So the crash dump doesn't show me anything interesting. Do you have any logs while starting the service?
Important is, that the install directory of CouchDB needs admin rights, so your (service) user needs that too,
or you have to change this permissions of the install dir after the installation!
Only informational if you want to install the service as well do:
msiexec /i apache-couchdb-3.3.3.msi /quiet INSTALLSERVICE=1 APPLICATIONFOLDER=C:\CouchDB-Test ADMINUSER=a ADMINPASSWORD=a /norestart
from couchdb.
No response from the user, closing for now.
from couchdb.
Related Issues (20)
- replicator session auth cannot handle multiple Set-Cookie headers in /_session request HOT 1
- Create new Fauxton release and update couch HOT 1
- Compactor case clause error
- CouchDB 3.3.3 service not starting and going to Pause status HOT 7
- No Release file for Ubuntu 24.04 LTS HOT 3
- Update and fix bug in hyper
- Don't crash with a 500 error on a missing replicator db in _scheduler/docs HOT 1
- Why do deleted documents appear in the return result of executing the _find command immediately? HOT 8
- PUT /_node/{node-name}/_config/jwt_keys/{key} does not accept valid key HOT 2
- The replication job for couchdb is stucked HOT 24
- _reload doesn't find new ini files in config `*.d` directories
- When building package main.js files are not there
- doc COPY requests allow bypass of ID validity check HOT 4
- Rexi stream_init timeout metric never actually triggers HOT 1
- Warn users of impact when deleting a view via Fauxton HOT 1
- Potential pattern of ignoring stranded RPC workers HOT 4
- CouchDB Error HOT 7
- nonode@nohost couch file epoch error HOT 3
- Query Server protocol future/stability. HOT 1
- CouchDB fails to start due to unacceptable_rsa_key after upgrading the erlang version HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from couchdb.