# Operating System Error 2 - No such file or directory

**URL:** <https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797>\
**Category:** Forum\
**Tags:** Adabas-Natural, Natural, Natural-on-Linux, Natural-Installation-and-Setup-on-Open-Systems, Natural-on-Windows-Unix\
**Created:** [December 4, 2007, 8:05pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797 "2007-12-04T20:05:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lajos](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@lajos](https://techcommunity.softwareag.com/u/lajos)\
**Post date:** [December 4, 2007, 8:05pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797/1 "2007-12-04T20:05:09Z")

</div>

## After the restoration of our Solaris Unix I have got:

$ natural

```
   NATURAL V 6.1.1 Pl 14 Software AG 2005

    NATURAL Startup Error: 16

    Unable to open buffer pool.
    Buffer pool error: "Unexpected system call error occurred"(20).
    Global shared memory could not be attached.: shmkey = 13111111

    Operating System Error 2 - No such file or directory

```

* * *

Any idea to manage these problems? Thankx in advance!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [December 4, 2007, 8:21pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797/2 "2007-12-04T20:21:27Z")

</div>

This usually indicates a security issue, the user trying to attach to the bufferpool may not have the required authorization level to do that.

Check the BP authorization with IPCS -s

---

<div class="post-metadata">

**Author:** ![lajos](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@lajos](https://techcommunity.softwareag.com/u/lajos)\
**Post date:** [December 4, 2007, 8:58pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797/3 "2007-12-04T20:58:55Z")

</div>

Thanks to quick reply!  
It was SAG unix user which is the system admin of Natural as I know. I assume that it has all required rights but I’m not so experianced in Natural / Adabas system admin.  
Actually what can I check exactly in IPCS -s list?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [December 6, 2007, 1:46pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797/4 "2007-12-06T13:46:34Z")

</div>

In ipcs -s (semaphores) or ipcs -m (shared memory) you’ll see an entry for the Natural Bufferpool,  
in this case they key is 0x61111111, you would look for what the messages says - shmkey = 13111111

```auto
------ Shared Memory Segments --------
key shmid owner perms bytes nattch status
0x61111111 262151 sag 660 3145728 0
```

You see the owner (here: sag) and the permission (here: perms = 660) for the shared memory segment.  
What you should check now is if the user receiving the message has sufficient rights to access the bufferpool.

Now, if you are sure this user should be able to access the bufferpool, check if this user tries to start Natural pointing to a bufferpool different to what’s active.

natparm → Configuration → Local Configuration File → Buffer Pool Assignments  
will show you the defined ones, ipcs will show what’s active.

Hth, Wolfgang

---

<div class="post-metadata">

**Author:** ![lajos](https://avatars.discourse-cdn.com/v4/letter/l/cdc98d/32.png) [@lajos](https://techcommunity.softwareag.com/u/lajos)\
**Post date:** [December 7, 2007, 9:35pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797/5 "2007-12-07T21:35:54Z")

</div>

Thank You very mutch!

It helps me to start dig on the right way.

---

<div class="post-metadata">

**Author:** ![SurfMe](https://avatars.discourse-cdn.com/v4/letter/s/ac8455/32.png) [@SurfMe](https://techcommunity.softwareag.com/u/SurfMe)\
**Post date:** [June 23, 2015, 1:59pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797/6 "2015-06-23T13:59:17Z")

</div>

The same problem with Installation Natural 6.3.14 on Windows8 Workstation.  
Is there any solution accessible since all these years have passed??

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [June 23, 2015, 4:25pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797/7 "2015-06-23T16:25:14Z")

</div>

Basically the same applies on Windows

- bufferpool is defined via Natparm
- bufferpool is started with a service

Is your Software AG Natural Bufferpool Service started ?

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/techcommunity/original/3X/c/d/cd19967bb605d28a72d77eb83a1cae22f3df2eb8.svg) [@system](https://techcommunity.softwareag.com/u/system)\
**Post date:** [April 2, 2021, 2:48pm UTC](https://techcommunity.softwareag.com/t/operating-system-error-2-no-such-file-or-directory/75797/8 "2021-04-02T14:48:58Z")

</div>


