{"action":"created","issue":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3614","labels_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3614/labels{/name}","comments_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3614/comments","events_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3614/events","html_url":"https://github.com/rethinkdb/rethinkdb/issues/3614","id":54846737,"number":3614,"title":"Error with log file in ubuntu ","user":{"login":"YChebotaev","id":5302856,"avatar_url":"https://avatars.githubusercontent.com/u/5302856?v=3","gravatar_id":"","url":"https://api.github.com/users/YChebotaev","html_url":"https://github.com/YChebotaev","followers_url":"https://api.github.com/users/YChebotaev/followers","following_url":"https://api.github.com/users/YChebotaev/following{/other_user}","gists_url":"https://api.github.com/users/YChebotaev/gists{/gist_id}","starred_url":"https://api.github.com/users/YChebotaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YChebotaev/subscriptions","organizations_url":"https://api.github.com/users/YChebotaev/orgs","repos_url":"https://api.github.com/users/YChebotaev/repos","events_url":"https://api.github.com/users/YChebotaev/events{/privacy}","received_events_url":"https://api.github.com/users/YChebotaev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-20T05:56:12Z","updated_at":"2015-01-23T16:32:18Z","closed_at":null,"body":"I've changed default log file name\r\n\r\n```bash\r\nservice rethinkdb start\r\nrethinkdb: local: Starting instance. (logging to `/var/log/rethinkdb.local.log')\r\nVersion: rethinkdb 1.15.3~0precise (GCC 4.6.3)\r\nerror: Error in src/utils.cc at line 496:\r\nPrevious message may not have been written to the log file (cannot open or find log file).\r\nerror: Guarantee failed: [res == 0]  (errno 13 - Permission denied) Fatal error: failed to delete '/var/lib/rethinkdb/local'.\r\nPrevious message may not have been written to the log file (cannot open or find log file).\r\nerror: Backtrace:\r\nPrevious message may not have been written to the log file (cannot open or find log file).\r\nerror: Tue Jan 20 05:51:33 2015\r\n       \r\n       1: format_backtrace(bool) at 0xca0c33 (/usr/bin/rethinkdb)\r\n       2: report_fatal_error(char const*, int, char const*, ...) at 0xeeaaa4 (/usr/bin/rethinkdb)\r\n       3: remove_directory_helper(char const*, stat const*, int, FTW*) at 0xc92671 (/usr/bin/rethinkdb)\r\n       4: /lib/x86_64-linux-gnu/libc.so.6(+0xe957a) [0x7f9084b7757a] at 0x7f9084b7757a (/lib/x86_64-linux-gnu/libc.so.6)\r\n       5: /lib/x86_64-linux-gnu/libc.so.6(+0xe9b31) [0x7f9084b77b31] at 0x7f9084b77b31 (/lib/x86_64-linux-gnu/libc.so.6)\r\n       6: remove_directory_recursive(char const*) at 0xc94c60 (/usr/bin/rethinkdb)\r\n       7: directory_lock_t::~directory_lock_t() at 0xe5a21d (/usr/bin/rethinkdb)\r\n       8: main_rethinkdb_porcelain(int, char**) at 0xe529e6 (/usr/bin/rethinkdb)\r\n       9: main+0x2a5 at 0x95a005 (/usr/bin/rethinkdb)\r\n       10: __libc_start_main+0xed at 0x7f9084aaf76d (/lib/x86_64-linux-gnu/libc.so.6)\r\n       11: /usr/bin/rethinkdb() [0x95ce4d] at 0x95ce4d ()\r\nPrevious message may not have been written to the log file (cannot open or find log file).\r\nerror: Exiting.\r\nPrevious message may not have been written to the log file (cannot open or find log file).\r\n```\r\n\r\n```bash\r\nlsb_release -a\r\nNo LSB modules are available.\r\nDistributor ID:\tUbuntu\r\nDescription:\tUbuntu 12.04 LTS\r\nRelease:\t12.04\r\nCodename:\tprecise\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/comments/71220645","html_url":"https://github.com/rethinkdb/rethinkdb/issues/3614#issuecomment-71220645","issue_url":"https://api.github.com/repos/rethinkdb/rethinkdb/issues/3614","id":71220645,"user":{"login":"YChebotaev","id":5302856,"avatar_url":"https://avatars.githubusercontent.com/u/5302856?v=3","gravatar_id":"","url":"https://api.github.com/users/YChebotaev","html_url":"https://github.com/YChebotaev","followers_url":"https://api.github.com/users/YChebotaev/followers","following_url":"https://api.github.com/users/YChebotaev/following{/other_user}","gists_url":"https://api.github.com/users/YChebotaev/gists{/gist_id}","starred_url":"https://api.github.com/users/YChebotaev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/YChebotaev/subscriptions","organizations_url":"https://api.github.com/users/YChebotaev/orgs","repos_url":"https://api.github.com/users/YChebotaev/repos","events_url":"https://api.github.com/users/YChebotaev/events{/privacy}","received_events_url":"https://api.github.com/users/YChebotaev/received_events","type":"User","site_admin":false},"created_at":"2015-01-23T16:32:18Z","updated_at":"2015-01-23T16:32:18Z","body":"I was logged in as a root user and run only `service rethinkdb start` command after automatic installation as described in http://rethinkdb.com/docs/install/ubuntu/.\r\n\r\nAt the point of startup, file `/var/log/rethinkdb.local.log` not exists.\r\nI solved this error by creating it manually and typing `chown rethikdb:rethinkdb`.\r\n\r\nHere is my config file:\r\n```\r\n#\r\n# RethinkDB instance configuration sample\r\n#\r\n# - Give this file the extension .conf and put it in /etc/rethinkdb/instances.d in order to enable it.\r\n# - See http://www.rethinkdb.com/docs/guides/startup/ for the complete documentation\r\n# - Uncomment an option to change its value.\r\n#\r\n\r\n###############################\r\n## RethinkDB configuration\r\n###############################\r\n\r\n### Process options\r\n\r\n## User and group used to run rethinkdb\r\n## Command line default: do not change user or group\r\n## Init script default: rethinkdb user and group\r\nrunuser=rethinkdb\r\nrungroup=rethinkdb\r\n\r\n## Stash the pid in this file when the process is running\r\n## Command line default: none\r\n## Init script default: /var/run/rethinkdb/<name>/pid_file (where <name> is the name of this config file without the extension)\r\npid-file=/var/run/rethinkdb/rethinkdb.pid\r\n\r\n### File path options\r\n\r\n## Directory to store data and metadata\r\n## Command line default: ./rethinkdb_data\r\n## Init script default: /var/lib/rethinkdb/<name>/ (where <name> is the name of this file without the extension)\r\ndirectory=/var/lib/rethinkdb/local\r\n\r\n## Log file options\r\n## Default: <directory>/log_file\r\nlog-file=/var/log/rethinkdb.local.log\r\n\r\n### Network options\r\n\r\n## Address of local interfaces to listen on when accepting connections\r\n## May be 'all' or an IP address, loopback addresses are enabled by default\r\n## Default: all local addresses\r\nbind=all\r\n\r\n## Address that other rethinkdb instances will use to connect to this machine.\r\n## It can be specified multiple times\r\n# canonical-address=\r\n\r\n## The port for rethinkdb protocol for client drivers\r\n## Default: 28015 + port-offset\r\n# driver-port=28015\r\n\r\n## The port for receiving connections from other nodes\r\n## Default: 29015 + port-offset\r\n# cluster-port=29015\r\n\r\n## The host:port of a node that rethinkdb will connect to\r\n## This option can be specified multiple times.\r\n## Default: none\r\n# join=example.com:29015\r\n\r\n## All ports used locally will have this value added\r\n## Default: 0\r\n# port-offset=0\r\n\r\n## r.http(...) queries will use the given server as a web proxy\r\n## Default: no proxy\r\n# reql-http-proxy=socks5://example.com:1080\r\n\r\n### Web options\r\n\r\n## Port for the http admin console\r\n## Default: 8080 + port-offset\r\nhttp-port=8080\r\n\r\n## Disable web administration console\r\n# no-http-admin\r\n\r\n### CPU options\r\n\r\n## The number of cores to use\r\n## Default: total number of cores of the CPU\r\ncores=1\r\n\r\n### Memory options\r\n\r\n## Size of the cache in MB\r\n## Default: Half of the available RAM on startup\r\ncache-size=512\r\n\r\n### Disk\r\n\r\n## How many simultaneous I/O operations can happen at the same time\r\nio-threads=32\r\n\r\n## Disable direct I/O\r\n# no-direct-io\r\n\r\n### Meta\r\n\r\n## The name for this machine (as will appear in the metadata).\r\n## If not specified, it will be randomly chosen from a short list of names.\r\n```\r\n\r\nThis error is not critical for me, but i want to see more informative error description."}}