Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion cannot start mongodb 2.2.0 on Fedora 17

Date: Thu, 11 Oct 2012 21:23:07 -0700 (PDT)
From: Robert Stewart <atacam...@gmail.com>
To: mongodb-user@googlegroups.com
Cc: iamanindianid...@googlemail.com
Message-Id: <279b915c-d189-4118-a076-fd5e9973c663@googlegroups.com>
In-Reply-To: <ce5ca908-ced8-49d5-8bfc-fdc5781b8be4@googlegroups.com>
References: <87b1a2e8-6491-45ec-86f7-9ca9140bee5d@googlegroups.com>
 <506FCDC2.7080100@gmail.com>
 <ce5ca908-ced8-49d5-8bfc-fdc5781b8be4@googlegroups.com>
Subject: Re: [mongodb-user] cannot start mongodb 2.2.0 on Fedora 17
MIME-Version: 1.0
Content-Type: multipart/mixed; 
	boundary="----=_Part_187_32635557.1350015787973"

------=_Part_187_32635557.1350015787973
Content-Type: multipart/alternative; 
	boundary="----=_Part_188_25071786.1350015787973"

------=_Part_188_25071786.1350015787973
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit

The standard username is mongod if you install from an RPM, at least 
according to the spec file at

https://github.com/mongodb/mongo/blob/master/rpm/mongo.spec

which includes:

%pre server
if ! /usr/bin/id -g mongod &>/dev/null; then
    /usr/sbin/groupadd -r mongod
fi
if ! /usr/bin/id mongod &>/dev/null; then
    /usr/sbin/useradd -M -r -g mongod -d /var/lib/mongo -s /bin/false 	-c mongod mongod > /dev/null 2>&1
fi


It appears to want to put the log file at /var/log/mongo/mongod.log

mkdir -p $RPM_BUILD_ROOT/var/log/mongo
touch $RPM_BUILD_ROOT/var/log/mongo/mongod.log


Robert

On Tuesday, October 9, 2012 11:35:05 AM UTC-7, Edouard Perov wrote:
>
> Hi Stuart,
> The user is different because of different versions, which means RPMs were 
> packaged differently.
>
> 2.0.7
> -rw-r--r--.  1 mongodb mongodb 2197 Oct  5 23:59 mongodb.log
>
> 2.2.0
> rw-r----. 1 mongod mongod 0 Aug 28 22:42 mongod.log
>
> What is the "normal/standard" username?
>
> Just to recap:
> v 2.2.0 downloaded from momgodb.org/downloads - does not start as a 
> service, starting "mongod -f <comf_file>" is ok
> v 2.0.7 from Fedora/updates - strating via service is ok
>
> Thanks
>
>
>
>
------=_Part_188_25071786.1350015787973
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable

The standard username is mongod if you install from an RPM, at least accord=
ing to the spec file at<br><br>https://github.com/mongodb/mongo/blob/master=
/rpm/mongo.spec<br><br>which includes:<br><br><pre><div class=3D"line" id=
=3D"LC74">%pre server</div><div class=3D"line" id=3D"LC75">if ! /usr/bin/id=
 -g mongod &amp;&gt;/dev/null; then</div><div class=3D"line" id=3D"LC76">&n=
bsp;&nbsp;&nbsp;&nbsp;/usr/sbin/groupadd -r mongod</div><div class=3D"line"=
 id=3D"LC77">fi</div><div class=3D"line" id=3D"LC78">if ! /usr/bin/id mongo=
d &amp;&gt;/dev/null; then</div><div class=3D"line" id=3D"LC79">&nbsp;&nbsp=
;&nbsp;&nbsp;/usr/sbin/useradd -M -r -g mongod -d /var/lib/mongo -s /bin/fa=
lse =09-c mongod mongod &gt; /dev/null 2&gt;&amp;1</div><div class=3D"line"=
 id=3D"LC80">fi</div></pre><br>It appears to want to put the log file at /v=
ar/log/mongo/mongod.log<br><br><pre><div class=3D"line" id=3D"LC67">mkdir -=
p $RPM_BUILD_ROOT/var/log/mongo</div><div class=3D"line" id=3D"LC68">touch =
$RPM_BUILD_ROOT/var/log/mongo/mongod.log</div></pre><br>Robert<br><br>On Tu=
esday, October 9, 2012 11:35:05 AM UTC-7, Edouard Perov wrote:<blockquote c=
lass=3D"gmail_quote" style=3D"margin: 0;margin-left: 0.8ex;border-left: 1px=
 #ccc solid;padding-left: 1ex;">Hi Stuart,<br>The user is different because=
 of different versions, which means RPMs were packaged differently.<br><br>=
2.0.7<br>-rw-r--r--.&nbsp; 1 mongodb mongodb 2197 Oct&nbsp; 5 23:59 mongodb=
.log<br><br>2.2.0<br><del>rw-r</del>----.  1 mongod mongod    0 Aug 28 22:4=
2 mongod.log<br><br>What is the "normal/standard" username?<br><br>Just to =
recap:<br>v 2.2.0 downloaded from <a href=3D"http://momgodb.org/downloads" =
target=3D"_blank">momgodb.org/downloads</a> - does not start as a service, =
starting "mongod -f &lt;comf_file&gt;" is ok<br>v 2.0.7 from Fedora/updates=
 - strating via service is ok<br><br>Thanks<br><br><br><br></blockquote>
------=_Part_188_25071786.1350015787973--

------=_Part_187_32635557.1350015787973--