Перейти до

stargazer не стартует


Рекомендованные сообщения

Не могу понять по какой причине не стартует stargazer

Ниже скидываю лог:

 

2015-05-07 13:29:46 -- Stg v. 2.408
2015-05-07 13:29:46 -- Message queue created successfully. msgKey=5555 msgID=32768
2015-05-07 13:29:46 -- Timer thread started successfully.
2015-05-07 13:29:46 -- Storage plugin: 'Couldn't connect to mysql engine! With error:
Access denied for user 'stg'@'localhost' (using password: YES)'
2015-05-07 13:29:47 -- Queue removed successfully.
2015-05-07 13:29:47 -- StgTimer: Stop successfull.
2015-05-07 13:29:47 -- Stg stopped successfully.
2015-05-07 13:29:47 -- ---------------------------------------------
Ссылка на сообщение
Поделиться на других сайтах
Опубліковано: (відредаговано)

Не очевидно)

В файле store_mysql.conf

Всё прописано верно, юзер базы данных и пароль.

Юзер базы данных рут и прав должно хватать

 

Самое интересное почему он пищет, что юзер stg

Відредаговано Rin
Ссылка на сообщение
Поделиться на других сайтах

В общем с базой проблема решена. Новая проблема.

 

2015-05-07 14:27:27 -- Stg v. 2.408
2015-05-07 14:27:27 -- Message queue created successfully. msgKey=5555 msgID=98304
2015-05-07 14:27:27 -- Timer thread started successfully.
2015-05-07 14:27:27 -- Storage plugin: mysql_store v.0.67. Loading successfull.
2015-05-07 14:27:27 -- Error: Error opening file subnets
2015-05-07 14:27:27 -- Traffcounter: Stop successfull.
2015-05-07 14:27:27 -- Users: Stop successfull.
2015-05-07 14:27:28 -- Queue removed successfully.
2015-05-07 14:27:29 -- StgTimer: Stop successfull.
2015-05-07 14:27:29 -- Stg stopped successfully.
Ссылка на сообщение
Поделиться на других сайтах

на саму базу у этого пользователя права есть? 

выложите сюда stargazer.conf

пароли можете изменить. 


выложите сюда файл subnets

Ссылка на сообщение
Поделиться на других сайтах
Опубліковано: (відредаговано)

 

################################################################################
# Stargazer Configuration file #
################################################################################

# LOG file name
# Parameter: required
# Value: file path
# Default: /var/log/stargazer.log
LogFile = /etc/stargazer/log/stargazer.log

# PID file name
# Parameter: optional
# Value: file path
# Default: /var/run/stargazer.pid
PIDFile = /var/run/stargazer.pid

# Traffic classification rules
# Parameter: required
# Value: file path
# Default: /etc/stargazer/rules
Rules = /etc/stargazer/rules

# The time interval between writing detailed user's statistics into the database
# Note: With a large number of users this value should be increased,
# since writting into the database can take a long time.
# Parameter: required
# Values: 1 (hourly), 1/2 (every half hour), 1/4 (every 15 m), 1/6 (every 10 m)
# Default: 1/2
DetailStatWritePeriod = 1/2

# The time interval between writing summary user's statistics into the database
# Parameter: optional
# Value: 1 ... 1440 (minutes)
# Default: 10
StatWritePeriod = 10

# Day of charging fee
# Note: 0 - The last day of the month
# Parameter: required
# Value: 0 ... 31
# Default: 1
DayFee = 1

# Fee charged at the last (yes) or first (no) day of tariffication period.
# Defines how the fee will be charged in the transition to the new tariff.
# User has tariff A with fee 100. Changing it to tariff B with fee 200
# will result in charging user's account at 100 if DayFeeIsLastDay = yes
# and at 200, if DayFeeIsLastDay = no
# Parameter: required
# Values: yes, no
# Default: no
DayFeeIsLastDay = no

# Day of changing delayed tariffs and resetting summary user's statistics.
# Defines the edge of the tariffication period.
# Parameter: required
# Value: 0 ... 31. 0 - The last day of the month
# Default: 1
DayResetTraff = 1

# Defines whether to charge fee daily (yes) or monthly (no)
# Parameter: required
# Values: yes, no
# Default: no
SpreadFee = no

# Defines whether the user can access the internet if it has no cash,
# but remained prepaid traffic
# Parameter: required
# Values: yes, no
# Default: no
FreeMbAllowInet = no

# Defines what will be written in the traffic cost in detail_stat.
# If user still has the prepaid traffic and WriteFreeMbTraffCost = no,
# then the traffic cost willn't be written in detail_stat.
# If user doestn't have prepaid traffic and WriteFreeMbTraffCost = no,
# then the traffic cost will be written in detail_stat.
# When WriteFreeMbTraffCost = yes the traffic cost will be recorded in any case.
# Parameter: required
# Values: yes, no
# Default: yes
WriteFreeMbTraffCost = yes

# Charge a full monthly fee even if user was "frozen" a part
# of the tariffication period
# Parameter: optional
# Values: yes, no
# Default: no
FullFee = no

# Allow user to see and use a full cash (yes) or hide a part of it (no)
# for the next fee charge
# Parameter: optional
# Values: yes, no
# Default: yes
# ShowFeeInCash=yes

# The names of directions. Direction without names will not appear in
# authorizer and configurator.
# Note: Names consisting of several words should be quoted
# Parameter: optional
# Values:

DirName0 = Internet
DirName1 =
DirName2 =
DirName3 =
DirName4 =
DirName5 =
DirName6 =
DirName7 =
DirName8 =
DirName9 =


# Amount of stg-exec processes.
# These processes are responsible for the execution of scripts OnConnect,
# OnDisconnect, etc.
# Amount of processes means how many scripts can be executed simultaneously.
# Recommend to leave 1 to avoid errors when executing scripts
# Parameter: optional
# Value: 1 ... 1024
# Default: 1
ExecutersNum = 1

# Message queue identifier for the script executer.
# It may be changed if there're a needs to run multiple copies of stargazer.
# Warning: If you do not understand it, do not touch this setting!
# Parameter: optional
# Value: 0 ... 2 ^ 32
# Default: 5555
# ExecMsgKey = 5555

# The path to directory with server modules
# Parameter: required
# Value: directory path
# Default: /usr/lib/stg
ModulesPath = /usr/lib/stg

# Directory where the "monitor" files are located.
# A blank files will be created in this directory. The modification time of such
# files will be changed about once a minute. If server crashes or some of server
# component hang, the files will stop refreshing, and on this basis we can define
# the failure of the server and if necessary restart.
# If option is omitted or blank, the monitoring is not performed.
# Parameter: optional
# Value: file path
# Default: /var/stargazer/monitor
#MonitorDir=/var/stargazer/monitor

# Defines message maximum lifetime
# Note: 0 - unlimited
# Parameter: optional
# Value: any numeric
# Default: 0 (day)
# MessagesTimeout = 0

# Defines fee charging rules.
# 0 - classic rules, allow fee charge even cash is negative;
# 1 - disallow fee charge if cash value is negative;
# 2 - disallow fee charge if there is not enought cash (cash < fee).
# Parameter: optional
# Value: 0 ... 2
# Default: 0 (classic)
# FeeChargeType = 0

# Enable or disable reconnect on tariff change
# Parameter: optional
# Values: yes, no
# Default: no
# ReconnectOnTariffChange = no

################################################################################
# Store module
# Configure the module that works with the database server

# Warning: Only one store module could be used at the same time!





################################################################################
# Other modules
<Modules>

 

<IncludeFile "conf-enabled.d/mod_ao.conf">
    </IncludeFile>
 
    <IncludeFile "conf-enabled.d/mod_ia.conf">
    </IncludeFile>
 
    <IncludeFile "conf-enabled.d/mod_sg.conf">
    </IncludeFile>
 
    <IncludeFile "conf-enabled.d/mod_cap_nf.conf">
    </IncludeFile>
 
    <IncludeFile "conf-enabled.d/mod_rpc.conf">
    </IncludeFile>
 
    <IncludeFile "conf-enabled.d/mod_remote_script.conf">
    </IncludeFile>

</Modules>
################################################################################

 

 

Это subnets

 

192.168.100.0/24 192.168.1.100
Chmod 777 subnets
Відредаговано Rin
Ссылка на сообщение
Поделиться на других сайтах

 

Это subnets 192.168.100.0/24 192.168.1.100 Chmod 777 subnets

Разве для подсети 192.168.100.0/24 не должно быть что-то типа 192.168.100.1 ?

 

Не обязательно. Это просто адрес куда будут отправляться данные для rscriptd. Может даже белый быть.

 

 

Это subnets 192.168.100.0/24 192.168.1.100 Chmod 777 subnets

Разве для подсети 192.168.100.0/24 не должно быть что-то типа 192.168.100.1 ?

 

Не обязательно. Это просто адрес куда будут отправляться данные для rscriptd. Может даже белый быть.

 

Даже более того — обычно это адрес сети из управляющего VLAN, к сетям пользователей отношения не имеющего.
Ссылка на сообщение
Поделиться на других сайтах

 

Откуда такой конфиг взяли?

 

Ну вот такой он есть, если разговор о Stargazer Configuration file

 

Ну если сами писали то он неправильный (отсутствует секция конфигурации модуля хранилища) и нелогичный (IncludeFile специально сделана для того чтобы делать так: <IncludeFile "conf-enabled.d/mod_*.conf"/>)
Ссылка на сообщение
Поделиться на других сайтах

 

 

Откуда такой конфиг взяли?

 

Ну вот такой он есть, если разговор о Stargazer Configuration file

 

Ну если сами писали то он неправильный (отсутствует секция конфигурации модуля хранилища) и нелогичный (IncludeFile специально сделана для того чтобы делать так: <IncludeFile "conf-enabled.d/mod_*.conf"/>)

 

 

А можно пример как должно быть?

Ссылка на сообщение
Поделиться на других сайтах

Сделал так же

 

################################################################################
# Store module
# Configure the module that works with the database server
 
# Warning: Only one store module could be used at the same time!
 
<IncludeFile "conf-enabled.d/store_*.conf">
</IncludeFile>
 
 
################################################################################
# Other modules
 
<Modules>
 
    <IncludeFile "conf-enabled.d/mod_*.conf">
    </IncludeFile>
 
</Modules>
################################################################################\
 
Теперь старгайзер в логах пишет:
 
2015-05-08 07:04:14 -- ReadSettings error. Should be only one StoreModule.
2015-05-08 07:06:18 -- ReadSettings error. Should be only one StoreModule.
2015-05-08 07:06:35 -- ReadSettings error. Should be only one StoreModule.
2015-05-08 07:07:08 -- ReadSettings error. Should be only one StoreModule.
 
Ссылка на сообщение
Поделиться на других сайтах

Проверьте папку conf-enabled.d/

Там походу все файлы модулей лежат, из модулей хранения оставьте там только мускульный (ну или какой Вы используете)

Ссылка на сообщение
Поделиться на других сайтах
<IncludeFile "conf-enabled.d/store_*.conf">

</IncludeFile>

 

надо явно указать какой тип хранения (БД или файловый) данных Вы будете использовать. Там же написано: 

# Warning: Only one store module could be used at the same time!

Ссылка на сообщение
Поделиться на других сайтах

Ох-ох-ох... conf-enabled.d должен содержать симлинки на файлы конфигов которые используются. conf-available.d должен содержать все файлы конфигов. Вот и вся магия.

А еще надо читать лог.

Відредаговано madf
Ссылка на сообщение
Поделиться на других сайтах

Проверьте папку conf-enabled.d/

Там походу все файлы модулей лежат, из модулей хранения оставьте там только мускульный (ну или какой Вы используете)

 

Спасибо за помощь) Разобрался со всем)

Ссылка на сообщение
Поделиться на других сайтах

Создайте аккаунт или войдите в него для комментирования

Вы должны быть пользователем, чтобы оставить комментарий

Создать аккаунт

Зарегистрируйтесь для получения аккаунта. Это просто!

Зарегистрировать аккаунт

Вхід

Уже зарегистрированы? Войдите здесь.

Войти сейчас
  • Зараз на сторінці   0 користувачів

    Немає користувачів, що переглядають цю сторінку.

  • Схожий контент

    • Від ppv
      Проглянув FAQ і Ubilling Wiki. Зацікавило питання чи є в Ubilling якась реалізація reCAPTCHA, чи потрібно додавати руцями, (для прикладу для форми подачі заявок чи для кабінету користувача)?
       
    • Від Keen
      Пару дней назад под юзером админ пропал вход через stargazer configurator.
      Начало писать Invalid password. Хотя пароль не меняли.
      Ессно через ubilling тоже вход слетел. Просто обновляется на страницу входа.
      Решил ребутнуть старгейзер, т.к. в папке admins файлы не менялись с 2011г и по бекапам хеш паролей сходится.  Затупил уже мускул база, а не файловая.
      Теперь выдает recv data answer error
      в логах:
      2023-06-07 13:23:02 -- Admin's connect failed. IP 192.168.0.14
      2023-06-07 13:26:24 -- Shutting down... 15
      2023-06-07 13:26:24 -- +++++++++++++++++++++++++++++++++++++++++++++
      2023-06-07 13:26:30 -- Module: 'Stargazer RPC v. 0.2'. Stop successfull.
      2023-06-07 13:26:30 -- Module: 'Stg configurator v.0.08'. Stop successfull.
      2023-06-07 13:26:31 -- Module: 'Pinger v.1.01'. Stop successfull.
      2023-06-07 13:26:33 -- Module: 'Always Online authorizator v.1.0'. Stop successfull.
      2023-06-07 13:26:34 -- Module: 'InetAccess authorization plugin v.1.4'. Stop successfull.
      2023-06-07 13:26:34 -- Module: 'Ether_cap v.1.2'. Stop successfull.
      2023-06-07 13:26:34 -- Traffcounter: Stop successfull.
      2023-06-07 13:26:35 -- Users: Stop successfull.
      2023-06-07 13:26:36 -- Queue removed successfully.
      2023-06-07 13:26:36 -- StgTimer: Stop successfull.
      2023-06-07 13:26:36 -- Stg stopped successfully.
      2023-06-07 13:26:36 -- ---------------------------------------------
      2023-06-07 13:27:20 -- Stg v. 2.407-p1
      2023-06-07 13:27:20 -- Message queue created successfully. msgKey=5555 msgID=32768
      2023-06-07 13:27:20 -- Timer thread started successfully.
      2023-06-07 13:27:20 -- Storage plugin: mysql_store v.0.67. Loading successfull.
      2023-06-07 13:27:20 -- Error in parameter password
      2023-06-07 13:27:21 -- Users started successfully.
      2023-06-07 13:27:21 -- Traffcounter started successfully.
      2023-06-07 13:27:21 -- Module: 'Ether_cap v.1.2'. Start successfull.
      2023-06-07 13:27:21 -- Module: 'InetAccess authorization plugin v.1.4'. Start successfull.
      2023-06-07 13:27:24 -- Module: 'Always Online authorizator v.1.0'. Start successfull.
      2023-06-07 13:27:24 -- Module: 'Pinger v.1.01'. Start successfull.
      2023-06-07 13:27:24 -- Module: 'Stargazer RPC v. 0.2'. Start successfull.
      2023-06-07 13:27:24 -- Module: 'Stg configurator v.0.08'. Start successfull.
      2023-06-07 13:27:24 -- Stg started successfully.
      2023-06-07 13:27:24 -- +++++++++++++++++++++++++++++++++++++++++++++
      2023-06-07 13:27:43 -- Invalid configuration request
       
      Если через stg configurator (windows) зайти под юзером касира - конфигуратор виснет намертво..
      При этом через юбиллинг доступ есть и линуховый sgconfig под касиром все обрабатывает
      Пните, где копать?
       
    • Від ppv
      Доброго дня, не працює примусовий опит OLT. Якщо оновлювати дані для даного ОЛТ то все норм. Була версія білінгу 1.3.3, вчора оновив до 1.3.6 нічого не змінилось.
      Чи може я щось пропустив в оновленях що треба було доналаштувати? Підкажіть будь ласка, хочу знати на що звернути увагу.
      Через крон теж не згрібає сигнали, хоча бачу регламенти проходять. Олт BDCOM різного типу.
      До білінгу давно не дивився, незнаю точно коли проблема появилась.
    • Від ppv
      Цікаво а чи реально, реалізація кучаген, тип підключення pppoe, nas на різних іп. Але якщо брати з одного пулу іп абонентам. Розумію що збочена реалізація але цікаво все ж).
    • Від ProstoName
      Після видалення непотрібної мережі під номером 3 (є мережі з ID 1,2,4) вилазять такі помилки на сторінці з мережами (***billing/?module=multinet):
       
      Notice: Undefined offset: 3 in /usr/local/www/apache24/data/billing/api/libs/api.networking.php on line 1069

      Notice: Trying to access array offset on value of type null in /usr/local/www/apache24/data/billing/api/libs/api.networking.php on line 1070

      Notice: Trying to access array offset on value of type null in /usr/local/www/apache24/data/billing/api/libs/api.networking.php on line 1071

      Notice: Trying to access array offset on value of type null in /usr/local/www/apache24/data/billing/api/libs/api.networking.php on line 1072

      Notice: Undefined offset: 1 in /usr/local/www/apache24/data/billing/api/libs/api.networking.php on line 1074
×
×
  • Створити нове...