could not create semaphores : No space left on device = FreeBSD port install error!

Ask a Question related to PostgreSQL / PGSQL, Design and Development.

  1. #1

    Default could not create semaphores : No space left on device = FreeBSD port install error!

    I'm posting this here for search-engine's sake, so future people
    having this same problem can find the solution here.

    After installing PostgreSQL from FreeBSD's ports, and running su -
    pgsql -c initdb for the first time, I got this common error:

    could not create semaphores : No space left on device

    This page: [url]http://www.postgresql.org/docs/current/static/postmaster-start.html[/url]
    .... and many others tell you to recompile your kernel with different
    System V semaphores limits.

    I knew this couldn't be it, because I had installed PostgreSQL
    successfully on many FreeBSD laptops and desktops.

    I tried uninstalling and re-installing. No luck. Same error when
    running initdb.

    Then I went into "top" and made sure to entirely kill all active
    postgresql processes.

    Then I ran initdb again and everything was fine.

    So --- I think if you install PostgreSQL from FreeBSD ports, and start
    the server, and THEN run initdb, it will give you this error.

    If you make sure that ALL PostgreSQL processes are stopped (see ps aux
    or top) -- then it should work fine.

    ---------------------------(end of broadcast)---------------------------
    TIP 9: the planner will ignore your desire to choose an index scan if your
    joining column's datatypes do not match

    Miles Keaton Guest

  2. Similar Questions and Discussions

    1. "no space left on device" when there's plenty?
      2006-10-17 15:39:23 28821 (e)2601163 Failed to record /opt/ma ...
    2. can perl write to a usb port com3 device??
      I've looked at the #13: "Controlling Modems with Win32::SerialPort". article in the Perl Journal... will it handle USB port com devices? it...
    3. can't open dbm file - no space left on device
      this is a long shot, but I read today about false 'no space left' errors occuring due to chmod settings being 777 on the directories. I don't...
    4. No space left on device
      On Mon, Jul 14, 2003 at 12:51:55PM -0400, Salman Haq wrote: I recommend you use one huge / partition. This way you won't run into this type of...
    5. Shared memory and semaphores - semop() error
      Hi, I'm using HP-UX 11.11 and running an application developed in Microfocus Cobol 4.x and C. When the application is trying to initialise shared...
  3. #2

    Default Re: could not create semaphores : No space left on device = FreeBSD port install error!

    Miles Keaton <mileskeaton@gmail.com> writes:
    > So --- I think if you install PostgreSQL from FreeBSD ports, and start
    > the server, and THEN run initdb, it will give you this error.
    What this says is that you're running PG with settings that use up more
    than half of the kernel's default limit on the number of semaphores.
    So you can't start two postmasters concurrently.

    regards, tom lane

    ---------------------------(end of broadcast)---------------------------
    TIP 3: if posting/reading through Usenet, please send an appropriate
    subscribe-nomail command to [email]majordomo@postgresql.org[/email] so that your
    message can get through to the mailing list cleanly

    Tom Lane Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139