Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Ntopng+Redis Server

    Scheduled Pinned Locked Moved Russian
    4 Posts 2 Posters 1.7k Views
    Loading More Posts
    • 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.
    • V Offline
      VladimirM
      last edited by

      Всем привет , работаю с 2.3.2-RELEASE (amd64)  built on Tue Jul 19 12:44:43 CDT 2016  FreeBSD 10.3-RELEASE-p5  , установил пакет ntopng , все работало замечательно , моргнул свет , включаю смотрю в сервисе ntopng лежит , зашел в командную строку пытаюсь стартануть : ntopng.

      ntopng : 27/Mar/2017 17:34:15 [Prefs.cpp:919] Logging into /var/tmp/ntopng/ntopng.log
      27/Mar/2017 17:34:15 [Ntop.cpp:1121] Setting local networks to 127.0.0.0/8
      27/Mar/2017 17:34:17 [Redis.cpp:79] ERROR: ntopng requires redis server to be up and running
      27/Mar/2017 17:34:17 [Redis.cpp:80] ERROR: Please start it and try again or use -r
      27/Mar/2017 17:34:17 [Redis.cpp:81] ERROR: to specify a redis server other than the default

      Идем дальше смотрю логи redis'a :

      Redis logs : /var/log/redis/redis.log
      13771:M 27 Mar 16:06:34.087 * 10 changes in 300 seconds. Saving…
      13771:M 27 Mar 16:06:34.087 * Background saving started by pid 73803
      73803:C 27 Mar 16:06:34.092 * DB saved on disk
      13771:M 27 Mar 16:06:34.194 * Background saving terminated with success
      13771:M 27 Mar 16:11:35.077 * 10 changes in 300 seconds. Saving...
      13771:M 27 Mar 16:11:35.078 * Background saving started by pid 89520
      89520:C 27 Mar 16:11:35.083 * DB saved on disk
      13771:M 27 Mar 16:11:35.181 * Background saving terminated with success
      13771:M 27 Mar 16:16:36.083 * 10 changes in 300 seconds. Saving...
      13771:M 27 Mar 16:16:36.083 * Background saving started by pid 11670
      11670:C 27 Mar 16:16:36.088 * DB saved on disk
      13771:M 27 Mar 16:16:36.190 * Background saving terminated with success
      13771:M 27 Mar 16:21:37.029 * 10 changes in 300 seconds. Saving...
      13771:M 27 Mar 16:21:37.030 * Background saving started by pid 32620
      32620:C 27 Mar 16:21:37.035 * DB saved on disk
      13771:M 27 Mar 16:21:37.137 * Background saving terminated with success
      13771:M 27 Mar 16:26:38.083 * 10 changes in 300 seconds. Saving...
      13771:M 27 Mar 16:26:38.084 * Background saving started by pid 81885
      81885:C 27 Mar 16:26:38.089 * DB saved on disk
      13771:M 27 Mar 16:26:38.191 * Background saving terminated with success
      13771:M 27 Mar 16:31:39.071 * 10 changes in 300 seconds. Saving...
      13771:M 27 Mar 16:31:39.072 * Background saving started by pid 24264
      24264:C 27 Mar 16:31:39.077 * DB saved on disk
      13771:M 27 Mar 16:31:39.173 * Background saving terminated with success
      13771:signal-handler (1490632348) Received SIGTERM scheduling shutdown...
      13771:M 27 Mar 16:32:28.955 # User requested shutdown...
      13771:M 27 Mar 16:32:28.955 * Saving the final RDB snapshot before exiting.
      13771:M 27 Mar 16:32:28.968 * DB saved on disk
      13771:M 27 Mar 16:32:28.968 * Removing the pid file.
      13771:M 27 Mar 16:32:28.968 # Redis is now ready to exit, bye bye...

      Решил проблему так : service-redis /usr/local/etc/redis.conf
      Я думал что я решил проблему :DD перезагружаю ПК и вижу что все повторяется по кругу

      Сислоги :
      syslog : Mar 27 11:02:48 pfSense php-fpm[280]: /rc.start_packages: [ntopng] Cannot set admin password - redis-server is not running.
      Mar 27 11:02:50 pfSense ntopng: [Redis.cpp:79] ERROR: ntopng requires redis server to be up and running
      Mar 27 11:02:50 pfSense ntopng: [Redis.cpp:81] ERROR: to specify a redis server other than the default
      Mar 27 11:03:10 pfSense ntopng: [Redis.cpp:79] ERROR: ntopng requires redis server to be up and running
      Mar 27 11:03:10 pfSense ntopng: [Redis.cpp:81] ERROR: to specify a redis server other than the default
      Mar 27 11:06:42 pfSense ntopng: [Redis.cpp:79] ERROR: ntopng requires redis server to be up and running
      Mar 27 11:06:42 pfSense ntopng: [Redis.cpp:81] ERROR: to specify a redis server other than the default
      Mar 27 11:12:30 pfSense ntopng: [Redis.cpp:79] ERROR: ntopng requires redis server to be up and running
      Mar 27 11:12:30 pfSense ntopng: [Redis.cpp:81] ERROR: to specify a redis server other than the default
      Mar 27 11:14:24 pfSense admin: /usr/local/etc/rc.d/redis: WARNING: failed to start redis
      Mar 27 11:18:52 pfSense ntopng: [Redis.cpp:79] ERROR: ntopng requires redis server to be up and running
      Mar 27 11:18:52 pfSense ntopng: [Redis.cpp:81] ERROR: to specify a redis server other than the default
      Mar 27 11:20:33 pfSense ntopng: [Redis.cpp:79] ERROR: ntopng requires redis server to be up and running
      Mar 27 11:20:33 pfSense ntopng: [Redis.cpp:81] ERROR: to specify a redis server other than the default
      Mar 27 11:20:48 pfSense admin: /usr/local/etc/rc.d/redis: WARNING: failed to start redis

      Если кто нибудь сталкивался с проблемой , помогите  пожалуйста .

      1 Reply Last reply Reply Quote 0
      • werterW Offline
        werter
        last edited by

        Доброе.
        Удалите, почистите хвосты, поставьте заново. Логично же.

        1 Reply Last reply Reply Quote 0
        • V Offline
          VladimirM
          last edited by

          @werter:

          Доброе.
          Удалите, почистите хвосты, поставьте заново. Логично же.

          Можете объяснить как почистить хвосты , пожалуйста.

          1 Reply Last reply Reply Quote 0
          • werterW Offline
            werter
            last edited by

            Доброе.
            1. Бэкап конфига Я обычно сохр. два варианта - с пакетами и без.
            2. Можно доп. после описанного выше ув. oleg1969 поискать остатки  с пом. ком. find / -iname ntop*

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.