Menu

#9 Long delay adding alias on RPi

v1.0_(example)
closed
None
1
2021-05-29
2017-04-29
No

Continued from dialog exchanged with user nospam on this ticket.

I'm noticing that NCIDD on my raspi now takes over 2 minutes to "Add Alias" and I only have about 2100 call records in the log file.

nospam sent log via private email attachment.

nospam provided the following info:

$ wc -l /var/log/cidcall.log
2089 /var/log/cidcall.log
$ ls -l /var/log/cidcall.log
-rw-r--r-- 1 root root 176894 Apr 27 19:16 /var/log/cidcall.log

Obfuscated relevant ncidd.log lines:

REQ: UPDATES
Begin: Executing /usr/bin/cidupdate [12:43:23]
End: Executing /usr/bin/cidupdate [12:43:23]
/usr/bin/cidupdate -a /etc/ncid/ncidd.alias -c /var/log/cidcall.log < /dev/null 2>&1 --multi < /dev/null 2>&1
401 Start of data requiring ACCEPT or REJECT
INFO: There was 1 change to /var/log/cidcall.log
INFO: 
INFO: (NAMEDEP) Changed "Hangup" to "SPAM" for 19999999999 1 time
410 End of data
WRK: ACCEPT LOGS
for f in /var/log/cidcall.log.*[0-9]; do mv $f.new $f; done [12:45:57]
mv /var/log/cidcall.log.new /var/log/cidcall.log [12:45:57]

Discussion

  • Todd Andrews

    Todd Andrews - 2017-04-29

    Hi nospam,

    I just noticed your command lines didn't have the asterisks for wildcards. Here are those lines to execute again:

    wc -l /var/log/cidcall.log*
    ls -l /var/log/cidcall.log*
    
     
  • nospam

    nospam - 2017-04-30

    $ wc -l /var/log/cidcall.log
    2095 /var/log/cidcall.log
    $ ls -l /var/log/cidcall.log

    -rw-r--r-- 1 root root 177382 Apr 29 14:25 /var/log/cidcall.log

     
  • Todd Andrews

    Todd Andrews - 2017-05-02

    Hi nospam,

    Attached .tar file contains a modified ncidd binary called ncidd-1.4a. It changes some of the timestamps. To install, transfer it to your RPi and put it in your home directory. Then type:

    sudo tar xf ~/ncidd-1.4a.tar -C /
    

    This will put it in /usr/sbin. To test, stop your running instance of ncidd and launch this new one:

    sudo ncidd-1.4a -D4 -L /tmp/ncidd-temp2.txt
    

    Duplicate the delay in adding an alias, wait until NCIDpop refreshes the call history, then stop ncidd-1.4a using ctrl-c. Send us /tmp/ncidd-temp2.txt via private email attachment (jlc@users.sf.net and tandrews@users.sf.net).

    Lastly, launch your normal instance of ncidd.

     
  • John L. Chmielewski

    • assigned_to: Todd Andrews
     
  • Todd Andrews

    Todd Andrews - 2017-11-14

    Hi nospam,

    Is this still an issue for you?

     
    • nospam

      nospam - 2017-11-14

      Yes and No. I have purged the database to make the add alias feature work quicker. I'm trying to keep it under 1000 records. Over that it takes a long time to "add alias".

      Mike

      On 2017-11-14, 11:51 AM, "Todd Andrews" tandrews@users.sf.net wrote:

      Hi nospam,
      
      Is this still an issue for you?
      
      ---
      
      ** [support-requests:#9] Long delay adding alias on RPi**
      
      **Status:** open
      **Group:** v1.0_(example)
      **Created:** Sat Apr 29, 2017 09:40 PM UTC by Todd Andrews
      **Last Updated:** Mon Nov 13, 2017 05:27 PM UTC
      **Owner:** Todd Andrews
      
      Continued from dialog exchanged with user nospam on [this ticket](https://sourceforge.net/p/ncid/feature-requests/19/).
      
      > I'm noticing that NCIDD on my raspi now takes over 2 minutes to "Add Alias" and I only have about 2100 call records in the log file.
      
      nospam sent log via private email attachment.
      
      nospam provided the following info:
      ~~~
      $ wc -l /var/log/cidcall.log
      2089 /var/log/cidcall.log
      $ ls -l /var/log/cidcall.log
      -rw-r--r-- 1 root root 176894 Apr 27 19:16 /var/log/cidcall.log
      ~~~
      
      Obfuscated relevant ncidd.log lines:
      ~~~
      REQ: UPDATES
      Begin: Executing /usr/bin/cidupdate [12:43:23]
      End: Executing /usr/bin/cidupdate [12:43:23]
      /usr/bin/cidupdate -a /etc/ncid/ncidd.alias -c /var/log/cidcall.log < /dev/null 2>&1 --multi < /dev/null 2>&1
      401 Start of data requiring ACCEPT or REJECT
      INFO: There was 1 change to /var/log/cidcall.log
      INFO: 
      INFO: (NAMEDEP) Changed "Hangup" to "SPAM" for 19999999999 1 time
      410 End of data
      WRK: ACCEPT LOGS
      for f in /var/log/cidcall.log.*[0-9]; do mv $f.new $f; done [12:45:57]
      mv /var/log/cidcall.log.new /var/log/cidcall.log [12:45:57]
      ~~~
      
      ---
      
      Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/ncid/support-requests/9/>
      
      To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
      
       
  • Todd Andrews

    Todd Andrews - 2017-11-18

    Hi Mike,

    We're brainstorming about this issue. Which client or clients do you use when adding an alias? NCIDpop, the Universal NCID Client (a.k.a. ncid.sh), or something else?

     
    • nospam

      nospam - 2017-11-19

      NCIDpop on OSX. I don't use any other clients

      On 2017-11-18, 4:51 PM, "Todd Andrews" tandrews@users.sf.net wrote:

      Hi Mike,
      
      We're brainstorming about this issue. Which client or clients do you use when adding an alias? NCIDpop, the Universal NCID Client (a.k.a. ncid.sh), or something else?
      
      ---
      
      ** [support-requests:#9] Long delay adding alias on RPi**
      
      **Status:** open
      **Group:** v1.0_(example)
      **Created:** Sat Apr 29, 2017 09:40 PM UTC by Todd Andrews
      **Last Updated:** Tue Nov 14, 2017 04:51 PM UTC
      **Owner:** Todd Andrews
      
      Continued from dialog exchanged with user nospam on [this ticket](https://sourceforge.net/p/ncid/feature-requests/19/).
      
      > I'm noticing that NCIDD on my raspi now takes over 2 minutes to "Add Alias" and I only have about 2100 call records in the log file.
      
      nospam sent log via private email attachment.
      
      nospam provided the following info:
      ~~~
      $ wc -l /var/log/cidcall.log
      2089 /var/log/cidcall.log
      $ ls -l /var/log/cidcall.log
      -rw-r--r-- 1 root root 176894 Apr 27 19:16 /var/log/cidcall.log
      ~~~
      
      Obfuscated relevant ncidd.log lines:
      ~~~
      REQ: UPDATES
      Begin: Executing /usr/bin/cidupdate [12:43:23]
      End: Executing /usr/bin/cidupdate [12:43:23]
      /usr/bin/cidupdate -a /etc/ncid/ncidd.alias -c /var/log/cidcall.log < /dev/null 2>&1 --multi < /dev/null 2>&1
      401 Start of data requiring ACCEPT or REJECT
      INFO: There was 1 change to /var/log/cidcall.log
      INFO: 
      INFO: (NAMEDEP) Changed "Hangup" to "SPAM" for 19999999999 1 time
      410 End of data
      WRK: ACCEPT LOGS
      for f in /var/log/cidcall.log.*[0-9]; do mv $f.new $f; done [12:45:57]
      mv /var/log/cidcall.log.new /var/log/cidcall.log [12:45:57]
      ~~~
      
      ---
      
      Sent from sourceforge.net because you indicated interest in <https://sourceforge.net/p/ncid/support-requests/9/>
      
      To unsubscribe from further messages, please visit <https://sourceforge.net/auth/subscriptions/>
      
       
  • Todd Andrews

    Todd Andrews - 2017-11-19

    OK, thanks. The current thinking is to convert the call log updater (cidupdate) from a Perl script to a C program.

     
  • John L. Chmielewski

    The cidupdate script was converted to a C program and will be in NCID releas 1.11.

     
  • Ed Attfield

    Ed Attfield - 2021-05-29
    • status: open --> closed
     
  • Ed Attfield

    Ed Attfield - 2021-05-29

    cidupdate was changed from a script to a C program in 1.11

     

Anonymous
Anonymous

Add attachments
Cancel