Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

FOP2 Community Forum

  1. Home
  2. Support
  3. unable to lock path

unable to lock path

Scheduled Pinned Locked Moved Support
6 Posts 2 Posters 110 Views
  • 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.
  • A
    A
    AlexRS
    wrote on last edited by
    #1

    When I try to remove voicemail message, I receive
    Cannot move/delete messages: Unable to lock path.

    How can I remove it without locking?

    1 Reply Last reply
    0
    • N
      N
      nicolas
      wrote on last edited by
      #2

      seems you have write permissions problems on the spool voicemail directory. Perhaps your voicemail directory is not the default or correctly defined?

      1 Reply Last reply
      0
      • A
        A
        AlexRS
        wrote on last edited by
        #3

        The directory is default, but I have separetely installed Fop2 and the directory is mounted by cifs. In my case nfs is no option for us. But its no problem to remove files from it by console.

        1 Reply Last reply
        0
        • N
          N
          nicolas
          wrote on last edited by
          #4

          If your voicemail path is not standard, you will find to set it correctly in /usr/local/fop2/fop2.cfg. If that is already done, then you might have issues with file creation on your CIF share, in order to manipulate voicemails a lock file is created on the same voicemail directory, that is unavoidable, and it is safe.. If your system gives you that error, it means it is not allowed to write the lock file (lack of write permissions on file or execute permission on path).

          Best regards,

          1 Reply Last reply
          0
          • A
            A
            AlexRS
            wrote on last edited by
            #5

            Its strange. I thinked you use something like flock().. Yes, I already did this. I see voicemail, can play it and download. But cannot move or remove.
            I set all (777) permissions on the directory and files in this directory. If my file is

            /var/spool/asterisk/voicemail/sip_viocemail/100/INBOX/msg0000.wav

            Where and what lock file will be created? From /var/spool/asterisk/voicemail/sip_viocemail/100 und up all 777 permissions, as I sad before.

            1 Reply Last reply
            0
            • A
              A
              AlexRS
              wrote on last edited by
              #6

              My problem was in permission to create link from .lock-xxxx to .lock

              Now after deleting voice messages the lock files is not removed and used by fop2 (I cant remove them manually by rm unless restart fop2). What fop2 waiting for?

              As I see in log, it was twice opened and ones closed. I cant remove .lock-xxxx bacause its opened for 'write only' by fop2.

              This was solved by remove 'cache=no' from fstab.
              Now all works fine.

              1 Reply Last reply
              0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              Powered by NodeBB Contributors
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups