Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Apcupsd Cannot create /var/spool/lock/LCK.. serial port lock file: ERR=No such

    Scheduled Pinned Locked Moved pfSense Packages
    3 Posts 3 Posters 1.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • nzkiwi68N
      nzkiwi68
      last edited by

      Hi.

      I'm running pfsense V2.1.1, nanobsd on an Alix PC and I have a modern APC 1000VA UPS with usb and serial.

      I installed the available apcupsd package which is V3.14.10 (incidentally, I notice on http://www.apcupsd.org/ that V3.14.12 is the latest)

      The apcupsd daemon will not start. The system log reports:

      Cannot create /var/spool/lock/LCK serial port lock file: ERR=No such file or directory

      After some mucking around, I discovered the /var/spool/ directory does not exist on the nanobsd and pfsense build.

      As a work around, I have done this:
      opened: /usr/pbi/apcupsd-i386/etc/apcupsd/apcupsd.conf
      and changed the line:
        LOCKFILE /var/spool/lock
      changed to:
        LOCKFILE /var/tmp

      However, after each reboot, my temporary changes are lost.

      Suggested fix:

      • The package installer needs to be updated to V3.14.12

      • Alter the package to installer to check for the existence of the folder /var/spool/lock and if the folder doesn't exist, create it during the installation process

      Many thanks.

      Steven.

      1 Reply Last reply Reply Quote 0
      • J
        josh4trunks
        last edited by

        I am also experiencing this. In my case I enabled RAM disks for /tmp and /var, this may be contributing to the missing folders.

        1 Reply Last reply Reply Quote 0
        • D
          dbaio
          last edited by

          Hi.

          There is an update for fix this.

          • fix lock file when using usb devices
          • add lockfile option

          Also, we are expecting the upgrade to 3.14.12 on FreeBSD ports, so we can update here on pfSense.

          Best Regards.

          –
          Danilo G. Baio (dbaio)

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.