Comments (8)
Hey,
your user account has no write permissions on your installation directory. Check your users security settings.
from couchdb.
{error,eacces}
is the important bit. couchdb is not permitted to write to the log file location you've configured.
from couchdb.
{error,eacces}
is the important bit. couchdb is not permitted to write to the log file location you've configured.
Hey,
your user account has no write permissions on your installation directory. Check your users security settings.
Thanks, for solving it by manually resetting the installation path's permission. However, somehow the setup program for Windows would alternate the installation path permission. I doubt that might be a bug because it won't make the installation path auto-inherit the parent-path's permission.
from couchdb.
Hi,
commenting on your video from above:
The msi is doing an administrative installation of CouchDB (UAC window is opening during setup), so the install directory has system rights. Looking at the wix installer we have this:
<CreateFolder>
<Permission User="[WIX_ACCOUNT_LOCALSYSTEM]" GenericAll="yes" />
<Permission User="[WIX_ACCOUNT_ADMINISTRATORS]" GenericAll="yes" />
<Permission User="[WIX_ACCOUNT_USERS]" GenericRead="yes" GenericExecute="yes" />
</CreateFolder>
So users in the USERS group will get read/execute access by default ...
from couchdb.
Hi,
commenting on your video from above: The msi is doing an administrative installation of CouchDB (UAC window is opening during setup), so the install directory has system rights. Looking at the wix installer we have this:
<CreateFolder> <Permission User="[WIX_ACCOUNT_LOCALSYSTEM]" GenericAll="yes" /> <Permission User="[WIX_ACCOUNT_ADMINISTRATORS]" GenericAll="yes" /> <Permission User="[WIX_ACCOUNT_USERS]" GenericRead="yes" GenericExecute="yes" /> </CreateFolder>
So users in the USERS group will get read/execute access by default ...
I still believe so.
Since the part you provide,
<Permission User="[WIX_ACCOUNT_USERS]" GenericRead="yes" GenericExecute="yes" />
Obviously, the USERS group will not get write access by default. If anyone tries to start CouchDB server without the administrator's permission it will fail anyway due to the lack of write access to the default log path as I occoured.
{"Kernel pid terminated",application_controller,"{application_start_failure,couch_log,{{shutdown,{failed_to_start_child,couch_log_server,{{badmatch,{error,eacces}},[{couch_log_writer,init,0,[{file,\"src/couch_log_writer.erl\"},{line,36}]},{couch_log_server,init,1,[{file,\"src/couch_log_server.erl\"},{line,56}]},{gen_server,init_it,2,[{file,\"gen_server.erl\"},{line,423}]},{gen_server,init_it,6,[{file,\"gen_server.erl\"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,\"proc_lib.erl\"},{line,226}]}]}}},{couch_log_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller) ({application_start_failure,couch_log,{{shutdown,{failed_to_start_child,couch_log_server,{{badmatch,{error,eacces}},[{couch_log_writer,init,0,[{file,"src/couch_log_writer.erl"},{line,36}]},{couch_log_server,init,1,[{file,"src/couch_log_server.erl"},{line,56}]},{gen_server,init_it,2,[{file,"gen_server.erl"},{line,423}]},{gen_server,init_it,6,[{file,"gen_server.erl"},{line,390}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]}}},{couch_log_app,start,[normal,[]]}}})
Crash dump is being written to: erl_crash.dump...
So I guess we may need to consider that to let the USERs group obtain write access to the path, or change the default path for log file...
Or at least, I guess we need to put it in document
from couchdb.
from couchdb.
Hi,
I think we should not mix things here. The current setup is an administrative installation (exactly a system-wide install) with the possibility to install and run CouchDB as a Windows service (with administrator privileges). So far, all is working as expected. Currently, CouchDB is not intended to run under a "normal" user after installation.
At the moment you have the possibility (workaround) change the installation folder permissions to have write access for the current user after the installation.
To fix this as a whole, there need to be more changes to the process of distributing it for Windows:
- Create an installer, which allows a system-wide or user-wide installation of CouchDB and / or
- Distribute CouchDB as a zipped package without installation at all
I would welcome any PRs which provide more flexible and user-friendly installation methods in the CouchDB Glazier repository. 😉
from couchdb.
Hi,
I think we should not mix things here. The current setup is an administrative installation (exactly a system-wide install) with the possibility to install and run CouchDB as a Windows service (with administrator privileges). So far, all is working as expected. Currently, CouchDB is not intended to run under a "normal" user after installation. At the moment you have the possibility (workaround) change the installation folder permissions to have write access for the current user after the installation.
To fix this as a whole, there need to be more changes to the process of distributing it for Windows:
- Create an installer, which allows a system-wide or user-wide installation of CouchDB and / or
- Distribute CouchDB as a zipped package without installation at all
I would welcome any PRs which provide more flexible and user-friendly installation methods in the CouchDB Glazier repository. 😉
Sure, I'll look into the CouchDB Glazier repository =)
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.