# Hello! my question

**URL:** <https://forum.pritunl.com/t/hello-my-question/939>\
**Category:** Pritunl VPN\
**Created:** [April 7, 2023, 3:16pm UTC](https://forum.pritunl.com/t/hello-my-question/939 "2023-04-07T15:16:14Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cristian](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cristian](https://forum.pritunl.com/u/cristian)\
**Post date:** [April 7, 2023, 3:16pm UTC](https://forum.pritunl.com/t/hello-my-question/939/1 "2023-04-07T15:16:14Z")

</div>

Hello everyone, first of all I would like to congratulate you on a very interesting project and finally ask a question: is it possible to have the shell command that emulates the Stop-Start and Restart Server keys?

Then I read this thread and I have the [same problem](https://forum.pritunl.com/t/pritunl-server-not-accessible-through-vpn-with-more-than-1-connection/80/6)

where a user pascal-hofmann writes that he solved the problem and suggested to insert this string

**db.servers.update({‘\_id’: ObjectId(“SERVERID”)}, {‘$set’: {‘pool\_cursor’: null }});**

My question is which module/file should this line be placed in and where?

---

<div class="post-metadata">

**Author:** ![pascal-hofmann](https://forum.pritunl.com/user_avatar/forum.pritunl.com/pascal-hofmann/32/226_2.png) [@pascal-hofmann](https://forum.pritunl.com/u/pascal-hofmann)\
**Post date:** [April 7, 2023, 4:59pm UTC](https://forum.pritunl.com/t/hello-my-question/939/2 "2023-04-07T16:59:23Z")

</div>

Hi,  
this is a command for the mongodb shell. So you have to connect to mongodb in order to run it.

Cheers  
Pascal

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [April 7, 2023, 5:53pm UTC](https://forum.pritunl.com/t/hello-my-question/939/3 "2023-04-07T17:53:46Z")

</div>

The issue with the IP pool should be fixed in the latest stable release. The pool cursor isn’t intend to reset, after an IP address is allocated it remains in the IP collection. Once the user using the dynamic address disconnects the user values on the IP are set to null. The server will first attempt to find null addresses before allocating additional IP addresses using the cursor value. The cause of the problem was some code left behind that was removing the unused IP addresses from the collection. The server can be stopped and started to clear the pool and restore the lost addresses after upgrading.

---

<div class="post-metadata">

**Author:** ![cristian](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cristian](https://forum.pritunl.com/u/cristian)\
**Post date:** [April 8, 2023, 1:30pm UTC](https://forum.pritunl.com/t/hello-my-question/939/4 "2023-04-08T13:30:38Z")

</div>

How do I update the version? From shells?  
I currently have v1.30.3354.99 d62164 Enterprise

---

<div class="post-metadata">

**Author:** ![cristian](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cristian](https://forum.pritunl.com/u/cristian)\
**Post date:** [April 11, 2023, 7:00am UTC](https://forum.pritunl.com/t/hello-my-question/939/5 "2023-04-11T07:00:21Z")

</div>

Hello, but is this command enough to be sent only once or should it be repeated every time the error occurs?

---

<div class="post-metadata">

**Author:** ![pascal-hofmann](https://forum.pritunl.com/user_avatar/forum.pritunl.com/pascal-hofmann/32/226_2.png) [@pascal-hofmann](https://forum.pritunl.com/u/pascal-hofmann)\
**Post date:** [October 5, 2023, 5:58am UTC](https://forum.pritunl.com/t/hello-my-question/939/6 "2023-10-05T05:58:37Z")

</div>

Hi,  
we run this every time the issue occurs.  
Cheers,  
Pascal

---

<div class="post-metadata">

**Author:** ![cristian](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/c/a698b9/32.png) [@cristian](https://forum.pritunl.com/u/cristian)\
**Post date:** [October 5, 2023, 6:13am UTC](https://forum.pritunl.com/t/hello-my-question/939/7 "2023-10-05T06:13:55Z")

</div>

OK thank you
