Goaccess is not working

Discussion in 'Installation/Configuration' started by martinhe, Jan 11, 2022.

  1. martinhe

    martinhe Member

    Hi folks, my goaccess doesn't work, please ask where to look to find the problem.

    I admit that I did not install it according to the instructions, but perhaps it shouldn't matter?

    I would like to install it like this (go access instaling via yum from EPEL):

    - name: "Goaccess | Installing dependency software..."
    yum:
    name:
    - ncurses-devel
    - gcc
    - geoip-devel
    - tokyocabinet-devel
    - lbzip2
    - p7zip
    - xz-libs
    - lzip
    state: present

    - name: "Goaccess | Installing software..."
    yum:
    name:
    - goaccess
    state: present

    - name: "Goaccess | Create symlink for /usr/local/bin/goaccess..."
    file:
    src: /usr/local/bin/goaccess
    dest: /usr/bin/goaccess
    owner: root
    group: root
    state: link
    force: yes


    problem has you can see on attachements

    [root@petrispc32test ~]# goaccess -f /path/to/apache/access.log
    -bash: goaccess: command not found
    [root@petrispc32test ~]# goaccess -V
    -bash: goaccess: command not found
    [root@petrispc32test ~]# sudo nano /usr/local/etc/goaccess.conf
    sudo: nano: command not found
    [root@petrispc32test ~]#

    I installed this server on yesterday.

    Thanks for support.
     

    Attached Files:

  2. ahrasis

    ahrasis Well-Known Member HowtoForge Supporter

    Is this related to your posts in the other thread which has been answered?

    In any event, you can definitely google how to install goaccess for Centos 7, if this server OS is the same as in your other thread, follow the instructions e.g. in https://goaccess.io/download#installation
    Finally, as advised in the other thread, update ISPConfig reconfiguring the services again.
     
    Last edited: Jan 11, 2022
  3. michelangelo

    michelangelo Active Member

    First off, the goaccess binary has to be reachable via the $PATH variable.
    This means, that if you type "which goaccess" it must return a positive result, otherwise something went wrong during the installation of goaccess.

    Since you mentioned that you installed it via yum and also according to the dependencies which it wants to install I would say that you're running CentOS 7 with EPEL.
    The installation should have worked for you. Also the binary is directly installed in /usr/bin when you install the EPEL package.

    Could it be that you tried before to compile and install GoAccess from the source code? If so, I would suggest to clean up those remains and then execute "yum reinstall goaccess".
     
  4. martinhe

    martinhe Member

    It helped, but why is it happening, please?
    Problem Summary yum install goaccess installs, but which does not see it, must be reinstalled after the initial installation.
    I wonder if it can't break the ISPConfig installer, which starts the installation of goaccess right away?
    How to figure out what it is?

    Thnaks.

    [root@petrispc32test ~]# which goaccess
    /usr/bin/which: no goaccess in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin)
    [root@petrispc32test ~]# yum reinstall goaccess
    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
    * base: mirror-prg.webglobe.com
    * centos-sclo-rh: mirror-prg.webglobe.com
    * centos-sclo-sclo: mirror-prg.webglobe.com
    * epel: mirror.karneval.cz
    * extras: mirror-prg.webglobe.com
    * updates: mirror-prg.webglobe.com
    Resolving Dependencies
    --> Running transaction check
    ---> Package goaccess.x86_64 0:1.3-1.el7 will be reinstalled
    --> Finished Dependency Resolution

    Dependencies Resolved

    ================================================================================
    Package Arch Version Repository Size
    ================================================================================
    Reinstalling:
    goaccess x86_64 1.3-1.el7 epel 240 k

    Transaction Summary
    ================================================================================
    Reinstall 1 Package

    Total download size: 240 k
    Installed size: 713 k
    Is this ok [y/d/N]: y
    Downloading packages:
    goaccess-1.3-1.el7.x86_64.rpm | 240 kB 00:00
    Running transaction check
    Running transaction test
    Transaction test succeeded
    Running transaction
    Installing : goaccess-1.3-1.el7.x86_64 1/1
    Verifying : goaccess-1.3-1.el7.x86_64 1/1

    Installed:
    goaccess.x86_64 0:1.3-1.el7

    Complete!
    [root@petrispc32test ~]# which goaccess
    /usr/bin/goaccess
    [root@petrispc32test ~]#
     
  5. Jesse Norell

    Jesse Norell ISPConfig Developer Staff Member ISPConfig Developer

    Your output doesn't show that goaccess was installed at the beginning (seems from your output it was not at that point). But at the end, it should be fine. Did you update ISPConfig reconfiguring the services again, as advised above?
    To my knowledge the installer does not install goaccess, you have to do that yourself. The autoinstaller script, which is a different thing, can install goaccess, but you're not using it (it doesn't support centos systems at this time).
     
    Last edited: Jan 14, 2022
  6. martinhe

    martinhe Member

    Very sorry for my bad. Im stupid noob.

    I replace this:

    - name: "Goaccess | Create symlink for /usr/local/bin/goaccess..."
    file:
    src: /usr/bin/goaccess
    dest: /usr/local/bin/goaccess
    owner: root
    group: root
    state: link
    force: yes

    For this:

    - name: "Goaccess | Create symlink for /usr/local/bin/goaccess..."
    file:
    src: /usr/local/bin/goaccess
    dest: /usr/bin/goaccess
    owner: root
    group: root
    state: link
    force: yes

    And "goaaccess -V" on my CLI forking fine. :) Sorry and thanks for tips.
     

Share This Page