Giter Site home page Giter Site logo

Comments (6)

big-r81 avatar big-r81 commented on May 24, 2024

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.

siddheshmalpani avatar siddheshmalpani commented on May 24, 2024

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.

big-r81 avatar big-r81 commented on May 24, 2024

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.

siddheshmalpani avatar siddheshmalpani commented on May 24, 2024

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.

erl_crash.zip

Regards,
Siddhesh Malpani

from couchdb.

siddheshmalpani avatar siddheshmalpani commented on May 24, 2024

Hi Ronny,

Did you get a chance to look at the crash dump?

Regards,
Siddhesh Malpani

from couchdb.

big-r81 avatar big-r81 commented on May 24, 2024

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.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.