Uploaded image for project: 'HPCC'
  1. HPCC
  2. HPCC-26757

Inconsistencies between systemd file dafilesrv@mydafilesrv.service and dafilesrv program

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 8.4.2
    • 8.4.10
    • dafilesrv
    • None

    Description

      Note: I believe more versions are affected by this.

       

      I'm on Ubuntu 20.04 and build source code from tag community_8.4.2-1.

      I noticed 2 oddities when running the following:

       

      systemctl start dafilesrv@mydafilesrv.service
      

      I believe this is exactly what hpccsystems-platform.target systemd file basically "Requires" when starting everything on a node.

       

       

      1. The pid file is off as it's saved as dafilesrv.pid vs. the expected mydafilesrv.pid accoridng to systemd file.

       

      lpezet@lpezet-Virtual-Machine:/volumes/disk1/Work/git/HPCC-Platform-build$ cat /etc/systemd/system/dafilesrv@mydafilesrv.service | grep PIDFile
      PIDFile=/var/run/HPCCSystems/mydafilesrv.pid
      lpezet@lpezet-Virtual-Machine:/volumes/disk1/Work/git/HPCC-Platform-build$ ls -al /var/run/HPCCSystems/
      total 4
      drwxr-xr-x  2 hpcc hpcc  60 Oct 29 10:28 .
      drwxr-xr-x 34 root root 960 Oct 29 10:27 ..
      -rw-r--r--  1 hpcc hpcc   4 Oct 29 10:32 dafilesrv.pid
      

       

      The problem is systemd will use PIDFile WHEN the program is in daemon mode, which brings me to my next point...

       

      2. The "-D" option to dafilesrv doesn't seem to be recognized anymore (and I'm guessing that "-I <instanceName>" either from the previous point).

      Simply running the same exact "ExecStart" from its systemd file, does NOT run it as a daemon, but stays interactive instead:

       

      /opt/HPCCSystems/bin/dafilesrv -L /var/log/HPCCSystems -I mydafilesrv -D
      $ /opt/HPCCSystems/bin/dafilesrv -L /var/log/HPCCSystems -I mydafilesrv -D
      00000000 OPR 2021-10-29 11:02:57.553 12536 12536 "WARNING: RollingFileLogMsgHandler::doRollover : could not open log file /var/log/HPCCSystems/dafilesrv/dafilesrv/DAFILESRV.2021_10_29.log for output"
      Unable to open pidfile for writing: Permission denied
      00000001 USR 2021-10-29 11:02:57.553 12536 12536 "Dafilesrv starting - Build community_8.4.6-1"
      00000002 USR 2021-10-29 11:02:57.553 12536 12536 "Parallel request limit = 80, throttleDelayMs = 1000, throttleCPULimit = 85"
      00000003 USR 2021-10-29 11:02:57.553 12536 12536 "Opening Dali File Server on 7100"
      00000004 USR 2021-10-29 11:02:57.553 12536 12536 "Dali File Server socket security model: SSLNone"
      00000005 USR 2021-10-29 11:02:57.553 12536 12536 "Version: DS V2.5Linux "
      00000006 USR 2021-10-29 11:02:57.553 12536 12536 "Row service port = 7601"
      00000007 USR 2021-10-29 11:02:57.553 12536 12536 "Throttler(stdCmdThrotlter): Increasing limit from 0 to 80"
      00000008 USR 2021-10-29 11:02:57.553 12536 12536 "Throttler(slowCmdThrotlter): Increasing limit from 0 to 20"
      00000009 USR 2021-10-29 11:02:57.553 12536 12536 "Throttler(slowCmdThrotlter): New delayMs=5000, previous: 1000"
      0000000A USR 2021-10-29 11:02:57.553 12536 12536 "Throttler(slowCmdThrotlter): New cpuThreshold=75, previous: 85"
      0000000B USR 2021-10-29 11:02:57.553 12536 12536 "CRemoteFileServer: maxThreads = 100, maxThreadsDelayMs = 60000, maxAsyncCopy = 10"
      

      Removing the "-D' argument leads to same exact (interactive) behavior.

      However, it seems "--daemon" is recognized:

      lpezet@lpezet-Virtual-Machine:/volumes/disk1/Work/git/HPCC-Platform-build$ ps auxwww | grep dafile
      lpezet     12670  0.0  0.0  17664   660 pts/0    S+   11:06   0:00 grep --color=auto dafile
      lpezet@lpezet-Virtual-Machine:/volumes/disk1/Work/git/HPCC-Platform-build$ /opt/HPCCSystems/bin/dafilesrv -L /var/log/HPCCSystems -I mydafilesrv --daemon
      lpezet@lpezet-Virtual-Machine:/volumes/disk1/Work/git/HPCC-Platform-build$ ps auxwww | grep dafile
      lpezet     12681  0.0  0.0 130560  6560 ?        Ssl  11:06   0:00 /opt/HPCCSystems/bin/dafilesrv -L /var/log/HPCCSystems -I mydafilesrv --daemon
      lpezet     12687  0.0  0.0  17664   732 pts/0    S+   11:06   0:00 grep --color=auto dafile
      lpezet@lpezet-Virtual-Machine:/volumes/disk1/Work/git/HPCC-Platform-build$  
      

       

       

       

       

      Attachments

        Activity

          People

            Michael-Gardner Michael Gardner
            lpezet Luc
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: