Menu

#27 Problems with log files and reports

v1.0_(example)
open
nobody
None
5
2025-09-30
2015-01-22
Anonymous
No

Hi, i'm trying to setup daloradius on a new ubuntu server 14.04.1 virtual machine.
I found two problems:
1) log files seem not exist

error reading log file: /tmp/daloradius.log
looked for log file in /tmp/daloradius.log but couldn't find it.
if you know where your daloradius log file is located, set it's location in your library/daloradius.conf file

error reading log file:
looked for log file in '/var/log/freeradius/radius.log, /usr/local/var/log/radius/radius.log, /var/log/radius/radius.log' but couldn't find it.
if you know where your freeradius log file is located, set it's location in /daloradius/rep-logs-radius.php

error reading log file: /var/log/syslog
possible cause is file premissions or file doesn't exist.

error reading log file: /var/log/dmesg
possible cause is file premissions or file doesn't exist.

I have to create them manually?

2) I can't see the online users connected in Reports->Online Users, even though the are some users actually connected; also the other reports with day filter don't work.

Can you help me?
Thanks!

Cheers, D.

Discussion

  • Anonymous

    Anonymous - 2015-07-14

    for syslog and radius log try to chmod777 your /var/log/syslog and /var/log/freeradius

     
  • Anonymous

    Anonymous - 2015-08-03

    I had the exact same issue, chmod 777 worked for me but I still have the same issue as you, with the users not showing up as connected etc, which makes it impossible to limit sessions etc.

     
  • Anonymous

    Anonymous - 2016-06-21

    i have a problem
    error reading log file: /tmp/daloradius.log
    looked for log file in /tmp/daloradius.log but couldn't find it.
    if you know where your daloradius log file is located, set it's location in your library/daloradius.conf file

    help me

     
  • Liran Tal

    Liran Tal - 2016-07-09

    Probably a permissions OS issue?
    As long as you configured the correct log file location in library/daloradius.conf.php, just make sure the web server is allowed to log to it.

     
  • Misagh

    Misagh - 2016-10-05

    Hi Liran,

    Would you please guide us on how make sure the web server is allowed to log to it. Would you please send me the CLI command for giving access to the folder and Web User?

    Thanks/.

     
  • Anonymous

    Anonymous - 2017-01-02

    do chmod +x attitribute to the radius folder will fix the log problem

     
    • Anonymous

      Anonymous - 2019-10-30

      Perfect, it did solve the problem

       
  • Anonymous

    Anonymous - 2017-01-22

    chmod 755 /var/log/radius/radius
    chmod 644 /var/log/radius/radius/radius.log
    touch /tmp/daloradius.log

    Hope, this will fix the issue!
    the above two working ok , but /tmp/daloradius.log still not working

     

    Last edit: Anonymous 2023-07-05
    • Anonymous

      Anonymous - 2017-05-25

      Thanks you.

      Frrom Colombia Byron Schmalbach. That's Ok.

       
  • Nicolas Bruls

    Nicolas Bruls - 2017-04-25

    i have same issue but this solution dont work

     
  • Anonymous

    Anonymous - 2017-06-05

    While I am still banging my head on locating the daloradius.log, I do find the radius.log at /usr/local/var/log/radius/radius.log. I am running freeradius at RHEL 7.3 development version.

    It is also strange my mysql's general-log can only be located at /var/lib/mysql/mysql/general-log.csv. Any other method, such as configuring the mysgl-general-log at /tmp/, or setting /var/log/ to drwxr-xr-x, chown mysql:mysql does not work.I believe this may involve a similar issue here?

     
  • Anonymous

    Anonymous - 2017-07-17

    touch /tmp/daloradius.log
    chown apache.apache /tmp/daloradius.log

    For error: daloradius not shown anything.
    Can write to /tmp/daloradius.log, but not shown anything on "daloRADIUS log" page and no warning, please add "}" before the end of php tag "?>" on exten-daloradius_log.php file.

    I was check on httpd error log, and shown like this:
    [xxx xxx xx xx:xx:xx.xxxxxx xxxx] [:error] [pid 6667] [client x.x.x.x:x] PHP Parse error: syntax error, unexpected end of file in /var/www/html/daloradius/library/exten-daloradius_log.php on line 75, referer: http://x.x.x.x:x/rep-logs-daloradius.php?daloradiusLineCount=50&daloradiusFilter=.

     
  • Anonymous

    Anonymous - 2017-10-21

    Same here. New install on Ubuntu 16.04 and there is no /tmp/daloradius.log file. the "touch" command executes but does not create the file. I looked everywhere I could think, but no daloradius.log file exists unless Liran can shed any light on this. So I just did a nano /tmp/daloradius.log to create the file and now no error messages, but I doubt actual logs will be stored here...

     
  • Anonymous

    Anonymous - 2017-12-06

    hey guys, check the web logs, if perm are ok & page for daloradius.log (acccess logs) are blank, my issue was missing } at end of file in library/exten-daloradius_log.php Centos 7 mariadb

     
  • Anonymous

    Anonymous - 2019-02-03

    chmod [root@bogon radius]# chmod 755 /var/log/radius/
    chmod 755 /var/log/radius/radius.log
    this problem is solved

     
  • Anonymous

    Anonymous - 2019-10-17

    anyone found the solution for this? I am facing problems reading log files and setting config files from daloradius. i double checked that apache has the proper permissions to write to config and still i get the error:
    "Could not open the file for writing: /var/www/html/daloradius/library/daloradius.conf.php
    Check file permissions. The file should be writable by the webserver's user/group"

     
  • Abdul Qadir

    Abdul Qadir - 2020-03-04

    I am also facing same issue .if any one can help me to resolve the same

    had alredy tryed above steps

    Please help

     
  • Anonymous

    Anonymous - 2021-02-11

    chmod 755 /var/log/freeradius/
    chmod 644 /var/log/freeradius/radius.log

    touch /tmp/daloradius.log
    chown www-data:www-data daloradius.log
    chmod 644 /tmp/daloradius.log

    chmod 644 /var/log/syslog

     
  • Anonymous

    Anonymous - 2022-03-01
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2022-04-27
    Post awaiting moderation.
  • Anonymous

    Anonymous - 2023-01-13
    Post awaiting moderation.
  • Fahad Ali

    Fahad Ali - 2023-07-05

    for radius log and syslog use chmod +r
    while for daloradius.log you have to follow these steps

    cd /var/log/
    touch daloradius.log
    then go to cd/var/www/html/daloradius/library/daloradius.conf and edit the [CONFIG_LOG_FILE] = "/var/log/daloradius.log"

     

    Last edit: Fahad Ali 2023-07-05
    • Anonymous

      Anonymous - 2023-07-08
      Post awaiting moderation.

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB