# Starting/Stoping the Server

**URL:** <https://forums.foundationdb.org/t/starting-stoping-the-server/1407>\
**Category:** Using FoundationDB\
**Created:** [May 29, 2019, 10:07pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407 "2019-05-29T22:07:38Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhuyi29](https://avatars.discourse-cdn.com/v4/letter/z/edb3f5/32.png) [@zhuyi29](https://forums.foundationdb.org/u/zhuyi29)\
**Post date:** [May 29, 2019, 10:07pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407/1 "2019-05-29T22:07:38Z")

</div>

I’m installing foundationDB on Amazon Linux AMI built on Centos. I could run the command to install the two rpm packages but it didn’t seem to start the server for me. I have to manually run  
`sudo /usr/sbin/fdbserver -p 127.0.0.1:4500`  
to start the server and  
`configure new single memory`  
to get the database running. Then every time I have to manually start the server.

Am I missing something here? During installation the client side stuck at 50% but no error message is displayed. I also tried  
`sudo chkconfig foundationdb off`  
as indicated in your tutorial and the folllowing error pop up:  
`error reading information on service foundationdb: No such file or directory`

Thank you!

---

<div class="post-metadata">

**Author:** ![ajbeamon](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/ajbeamon/32/13_2.png) [@ajbeamon](https://forums.foundationdb.org/u/ajbeamon)\
**Post date:** [May 30, 2019, 7:04pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407/2 "2019-05-30T19:04:14Z")

</div>

I’ve seen a similar sort of problem with the deb packages in Ubuntu:

> <https://github.com/apple/foundationdb/issues/686>

I think it does manage to start fdbmonitor, though. Are you not seeing that happen at all? If you get fdbmonitor but not fdbserver, you could check syslog and let us know if you see any errors related to fdbserver.

I don’t really have much experience with using our rpm packages in CentOS, but in theory installing the package is supposed to start the fdb service, which will run fdbmonitor. Then fdbmonitor will start an fdbserver process based on what’s specified by default in the foundationdb.conf file. Finally, the installation should try to configure the cluster. At the end of all of this, the expectation is that you would have a working single-process cluster.

---

<div class="post-metadata">

**Author:** ![zhuyi29](https://avatars.discourse-cdn.com/v4/letter/z/edb3f5/32.png) [@zhuyi29](https://forums.foundationdb.org/u/zhuyi29)\
**Post date:** [May 30, 2019, 7:21pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407/3 "2019-05-30T19:21:23Z")

</div>

Thank you for getting back, so how do I check if fdbmonitor has started yet?  
And what’s the best place here to check logs from installation? I’ve looked up var/log/secure and var/log/foundationdb/ but couldn’t find any error logs…

Thank you!

---

<div class="post-metadata">

**Author:** ![ajbeamon](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/ajbeamon/32/13_2.png) [@ajbeamon](https://forums.foundationdb.org/u/ajbeamon)\
**Post date:** [May 30, 2019, 7:40pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407/4 "2019-05-30T19:40:57Z")

</div>

> [@zhuyi29](#):
>
> how do I check if fdbmonitor has started yet?

Easiest way is to check for a running `fdbmonitor` process (e.g. `ps -ef | grep fdbmonitor`).

> [@zhuyi29](#):
>
> And what’s the best place here to check logs from installation?

The logs I referred to above are logged by fdbmonitor using the standard [syslog](http://man7.org/linux/man-pages/man3/syslog.3.html) facility. On my machine, these end up in `/var/log/syslog`, but it may work differently in your environment.

---

<div class="post-metadata">

**Author:** ![zhuyi29](https://avatars.discourse-cdn.com/v4/letter/z/edb3f5/32.png) [@zhuyi29](https://forums.foundationdb.org/u/zhuyi29)\
**Post date:** [May 30, 2019, 9:15pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407/5 "2019-05-30T21:15:50Z")

</div>

I checked and I don’t think fdbmonitor is running after installation.

In my setup the logs are located at /var/log/secure but I don’t see any error message, here’s the log,

```
May 30 21:07:16 ip-100-90-28-158 sudo: ssm-user : TTY=pts/2 ; PWD=/home/ssm-user ; USER=root ; COMMAND=/bin/rpm -Uvh foundationdb-clients-6.1.8-1.el7.x86_64.rpm foundationdb-server-6.1.8-1.el7.x86_64.rpm
May 30 21:07:16 ip-100-90-28-158 groupadd[10126]: group added to /etc/group: name=foundationdb, GID=494
May 30 21:07:16 ip-100-90-28-158 groupadd[10126]: group added to /etc/gshadow: name=foundationdb
May 30 21:07:16 ip-100-90-28-158 groupadd[10126]: new group: name=foundationdb, GID=494
May 30 21:07:16 ip-100-90-28-158 useradd[10131]: new user: name=foundationdb, UID=495, GID=494, home=/var/lib/foundationdb, shell=/bin/false

```

Thanks!

---

<div class="post-metadata">

**Author:** ![ajbeamon](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/ajbeamon/32/13_2.png) [@ajbeamon](https://forums.foundationdb.org/u/ajbeamon)\
**Post date:** [May 31, 2019, 3:24pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407/6 "2019-05-31T15:24:26Z")

</div>

Interesting, that sounds like it may be a bug. Are you able to [start the `foundationdb` service](https://apple.github.io/foundationdb/administration.html#linux)? If you do, does `fdbmonitor` start running?

---

<div class="post-metadata">

**Author:** ![zhuyi29](https://avatars.discourse-cdn.com/v4/letter/z/edb3f5/32.png) [@zhuyi29](https://forums.foundationdb.org/u/zhuyi29)\
**Post date:** [May 31, 2019, 5:09pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407/7 "2019-05-31T17:09:35Z")

</div>

I get the error `foundationdb: unrecognized service`. Seems like the installation is not complete.

Also I just tried to download the ubuntu package at [https://apple.github.io/foundationdb/downloads.html](https://apple.github.io/foundationdb/downloads.html), but it returns a 404 error…

---

<div class="post-metadata">

**Author:** ![ajbeamon](https://sea1.discourse-cdn.com/foundationdb/user_avatar/forums.foundationdb.org/ajbeamon/32/13_2.png) [@ajbeamon](https://forums.foundationdb.org/u/ajbeamon)\
**Post date:** [May 31, 2019, 10:06pm UTC](https://forums.foundationdb.org/t/starting-stoping-the-server/1407/8 "2019-05-31T22:06:15Z")

</div>

I’ve created an [issue](https://github.com/apple/foundationdb/issues/1653) regarding the rpm installation failures, and we’re working to update the bad links on the website for the deb packages.
