Stargazer: Issues
https://stg.codes/
https://stg.codes/favicon.ico?1696056004
2023-05-09T13:08:10Z
Stargazer
Redmine
Stargazer - Support #64 (New): Деталізувати розшифровку параметра PassiveTime
https://stg.codes/issues/64
2023-05-09T13:08:10Z
Anonymous
<p>Зараз цей параметр описаний так:<br /><pre>
PassiveTime - время, проведенное пользователем в «замороженном» состоянии за месяц (используется для вычисления объема снимаемой абонплаты);
</pre><br />Цей параметр накопичувальний, тобто він зберігає повну кількість часу проведеного у заморозці протягом періоду тарифікації. Якщо користувача заморожувати і розморожучати протягом цього періоду кілька разів, PassiveTime буде рости з кожною заморозкою. Крім того новим користувачам автоматично нараховується PassiveTime з початку місяця до моменту реєстрації.</p>
Stargazer - Support #63 (New): Деталізувати розшифровку параметра LastActivityTime
https://stg.codes/issues/63
2023-05-09T12:57:05Z
Anonymous
<p>Зараз цей параметр прописаний так:<br /><pre>
LastActivityTime – время последней активности пользователя;
</pre><br />Насправді по коду це виглядає так:<br /><pre><code class="cpp syntaxhl" data-language="cpp"><span class="k">if</span> <span class="p">(</span><span class="o">!</span><span class="n">authorizedBy</span><span class="p">.</span><span class="n">empty</span><span class="p">())</span>
<span class="p">{</span>
<span class="k">if</span> <span class="p">(</span><span class="n">m_connected</span><span class="p">)</span>
<span class="n">properties</span><span class="p">.</span><span class="n">Stat</span><span class="p">().</span><span class="n">lastActivityTime</span> <span class="o">=</span> <span class="n">stgTime</span><span class="p">;</span>
<span class="c1">// ...</span>
<span class="p">}</span>
</code></pre><br />Тобто користувач авторизований і conected.</p>
SSMD - Bug #60 (New): snmp library
https://stg.codes/issues/60
2020-01-07T14:30:24Z
Vladimir Pavljuchenkov
spiderx@spiderx.dp.ua
<p>SNMP library from package doesn't build with modern toolchain.<br />Please, update it (<a class="external" href="https://www.agentpp.com/download.html">https://www.agentpp.com/download.html</a> / <a class="external" href="https://www.agentpp.com/download/snmp++-3.3.11a.tar.gz">https://www.agentpp.com/download/snmp++-3.3.11a.tar.gz</a>)</p>
SSMD - Bug #59 (New): Fix include
https://stg.codes/issues/59
2018-10-28T10:54:02Z
Vladimir Pavljuchenkov
spiderx@spiderx.dp.ua
<p>src/main.cpp:12:10: fatal error: version.h: No such file or directory<br /> #include "version.h" <br /> ^<sub>~~</sub>~~~~~~</p>
SSMD - Support #56 (New): Make a tarball
https://stg.codes/issues/56
2018-10-28T10:21:47Z
Anonymous
<p>Make a tarball with a release, please.</p>
NFA - Feature #55 (New): Add support of IPFIX
https://stg.codes/issues/55
2018-03-24T13:00:10Z
Maxim Mamontov
madf@madf.info
<p>Subj.</p>
NFA - Feature #54 (New): Add support of NetFlow v9
https://stg.codes/issues/54
2018-03-24T12:59:57Z
Maxim Mamontov
madf@madf.info
<p>Subj.</p>
Stargazer - Bug #53 (New): Ошибка сборки на FreeBSD 11
https://stg.codes/issues/53
2018-01-26T08:39:31Z
Anonymous
<pre>
F11-STG # env CC=clang CXX=clang++ sh build
#############################################################################
Building STG 2.4 for FreeBSD 11.1-RELEASE
#############################################################################
Checking CC... found
Checking CXX... found
Checking endianess... Little Endian
Checking for -lexpat... yes
Checking for iconv 2nd argument... non-const
Checking for fb_config... no
Checking for -lfbclient... no
Checking for mysql_config... yes
Checking for mysql_config --cflags... [-I/usr/local/include/mysql -pipe -fstack-protector -fno-strict-aliasing -g -DNDEBUG]
Checking for mysql_config --libs_r... [-L/usr/local/lib/mysql -lmysqlclient_r -pthread -lz -lm]
Checking for pg_config... no
Checking for -lpq... no
Checking for xmlrpc-c-config... no
Checking for -lxmlrpc... no
Checking for -lnfnetlink... no
Checking for -lnetfilter_queue... no
gmake -C /usr/home/pavel/install/stg-2.409-rc4/projects/stargazer/../../stglibs
gmake[1]: Entering directory '/usr/home/pavel/install/stg-2.409-rc4/stglibs'
for LIB in logger.lib crypto.lib common.lib scriptexecuter.lib conffiles.lib pinger.lib dotconfpp.lib smux.lib ; do\
gmake -C $LIB;\
done
#########Пропущено############
gmake[2]: Leaving directory '/usr/home/pavel/install/stg-2.409-rc4/stglibs/crypto.lib'
gmake[2]: Entering directory '/usr/home/pavel/install/stg-2.409-rc4/stglibs/common.lib'
clang++ -I/usr/local/include -DARCH_LE -fPIC -I ../../include -I . -I ./include -DNDEBUG -DFREE_BSD5 -DSTG_TIME -c common.cpp
common.cpp:240:30: warning: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') [-Wformat]
sprintf(str, "%lld", a);
~~~~ ^
%ld
1 warning generated.
#########Пропущено############
clang -I/usr/local/include -DARCH_LE -fPIC -I ../../include -I . -I ./include -I ./include/stg -DNDEBUG -DFREE_BSD5 -DSTG_TIME -c OBJECT_IDENTIFIER.c
OBJECT_IDENTIFIER.c:162:15: warning: shifting a negative signed value is undefined [-Wshift-negative-value]
if(v & (-1 << CHAR_BIT)) {
~~ ^
1 warning generated.
#########Пропущено############
gmake[2]: Leaving directory '/usr/home/pavel/install/stg-2.409-rc4/projects/stargazer/plugins/other/ping'
gmake -C other/rscript
gmake[2]: Entering directory '/usr/home/pavel/install/stg-2.409-rc4/projects/stargazer/plugins/other/rscript'
clang++ -c rscript.cpp -I/usr/local/include -DARCH_LE -fPIC -DNDEBUG -DFREE_BSD5 -I /usr/home/pavel/install/stg-2.409-rc4/projects/stargazer/../../include -I ../../../../. ./stglibs/common.lib/include -I ../../../../../stglibs/crypto.lib/include -I ../../../../../stglibs/logger.lib/include -I ../../../../../stglibs/scriptexecuter.lib/include -I /usr/home/pavel/install/stg-2.409-rc4/projects/stargazer/../../include -DNDEBUG -DFREE_BSD5
In file included from rscript.cpp:25:
In file included from ./send_functor.h:36:
/usr/include/netinet/ip.h:69:17: error: field has incomplete type 'struct in_addr'
struct in_addr ip_src,ip_dst; /* source and dest address */
^
/usr/include/netinet/ip.h:69:9: note: forward declaration of 'in_addr'
struct in_addr ip_src,ip_dst; /* source and dest address */
^
/usr/include/netinet/ip.h:69:24: error: field has incomplete type 'struct in_addr'
struct in_addr ip_src,ip_dst; /* source and dest address */
^
/usr/include/netinet/ip.h:69:9: note: forward declaration of 'in_addr'
struct in_addr ip_src,ip_dst; /* source and dest address */
^
/usr/include/netinet/ip.h:181:19: error: field has incomplete type 'struct in_addr'
struct in_addr ipt_addr;
^
/usr/include/netinet/ip.h:69:9: note: forward declaration of 'in_addr'
struct in_addr ip_src,ip_dst; /* source and dest address */
^
/usr/include/netinet/ip.h:216:17: error: field has incomplete type 'struct in_addr'
struct in_addr ippseudo_src; /* source internet address */
^
/usr/include/netinet/ip.h:69:9: note: forward declaration of 'in_addr'
struct in_addr ip_src,ip_dst; /* source and dest address */
^
/usr/include/netinet/ip.h:217:17: error: field has incomplete type 'struct in_addr'
struct in_addr ippseudo_dst; /* destination internet address */
^
/usr/include/netinet/ip.h:69:9: note: forward declaration of 'in_addr'
struct in_addr ip_src,ip_dst; /* source and dest address */
^
In file included from rscript.cpp:25:
./send_functor.h:47:28: error: variable has incomplete type 'struct sockaddr_in'
struct sockaddr_in sendAddr;
^
./send_functor.h:47:16: note: forward declaration of 'sockaddr_in'
struct sockaddr_in sendAddr;
^
6 errors generated.
gmake[2]: *** [deps:38: rscript.o] Error 1
gmake[2]: Leaving directory '/usr/home/pavel/install/stg-2.409-rc4/projects/stargazer/plugins/other/rscript'
gmake[1]: *** [Makefile:13: other/rscript] Error 2
gmake[1]: Leaving directory '/usr/home/pavel/install/stg-2.409-rc4/projects/stargazer/plugins'
gmake: *** [Makefile:64: plugins] Error 2
F11-STG #
</pre>
Stargazer - Bug #52 (New): Падение при добавлении нового абонента
https://stg.codes/issues/52
2018-01-11T10:49:34Z
Vladimir Pavljuchenkov
spiderx@spiderx.dp.ua
<p>Backtrace:</p>
<p>GNU gdb (Gentoo 7.12.1 vanilla) 7.12.1<br />Copyright (C) 2017 Free Software Foundation, Inc.<br />License GPLv3+: GNU GPL version 3 or later <<a class="external" href="http://gnu.org/licenses/gpl.html">http://gnu.org/licenses/gpl.html</a>><br />This is free software: you are free to change and redistribute it.<br />There is NO WARRANTY, to the extent permitted by law. Type "show copying" <br />and "show warranty" for details.<br />This GDB was configured as "x86_64-pc-linux-gnu".<br />Type "show configuration" for configuration details.<br />For bug reporting instructions, please see:<br /><<a class="external" href="https://bugs.gentoo.org/&gt;">https://bugs.gentoo.org/&gt;</a>.<br />Find the GDB manual and other documentation resources online at:<br /><<a class="external" href="http://www.gnu.org/software/gdb/documentation/&gt;">http://www.gnu.org/software/gdb/documentation/&gt;</a>.<br />For help, type "help".<br />Type "apropos word" to search for commands related to "word"...<br />Reading symbols from /usr/sbin/stargazer...done.<br />(gdb) core-file /var/tmp/dumps/core-echelon-stargazer-11-0-0-20574-1515663135<br />[New LWP 20584]<br />[New LWP 20576]<br />[New LWP 20578]<br />[New LWP 20585]<br />[New LWP 20581]<br />[New LWP 20574]<br />[New LWP 20579]<br />[New LWP 20588]<br />[New LWP 20582]<br />[New LWP 20587]<br />[New LWP 20577]<br />[New LWP 20580]<br />[New LWP 20583]<br />[New LWP 20586]<br />[Thread debugging using libthread_db enabled]<br />Using host libthread_db library "/lib64/libthread_db.so.1".<br />Core was generated by `/usr/sbin/stargazer'.<br />Program terminated with signal SIGSEGV, Segmentation fault.<br />#0 0x00007f9028af8b36 in STG::PARSER::CHG_USER::ApplyChanges (this=0x7f8ffc002970) at parser_users.cpp:601<br />601 parser_users.cpp: No such file or directory.<br />[Current thread is 1 (Thread 0x7f9021ffb700 (LWP 20584))]<br />(gdb) thread apply all bt</p>
<p>Thread 14 (Thread 0x7f9020ff9700 (LWP 20586)):<br />#0 0x00007f902d3eb0cd in nanosleep () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x00007f90293f6429 in AUTH_IA::RunTimeouter (d=0x55c17d158760) at inetaccess.cpp:506<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 13 (Thread 0x7f90227fc700 (LWP 20583)):<br />#0 0x00007f902c900c53 in select () from /lib64/libc.so.6<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x000055c17c947ba8 in WaitPackets (sd=6) at common.cpp:1057<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f9028610a9f in SMUX::Run (this=0x55c17d15e740) at smux.cpp:311<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f90286109dc in SMUX::Runner (d=0x55c17d15e740) at smux.cpp:294<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Поместить таблицы в отдельную схему в плагинах для разных СУБД (New)" href="https://stg.codes/issues/4">#4</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: "Залипание" авторизации (New)" href="https://stg.codes/issues/5">#5</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 12 (Thread 0x7f9023fff700 (LWP 20580)):<br />#0 0x00007f902d3eb0cd in nanosleep () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x00007f90291c34b8 in STG_PINGER::RunSendPing (d=0x55c17d15abd8) at pinger.cpp:304<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 11 (Thread 0x7f902b26d700 (LWP 20577)):<br />#0 0x00007f902d3e6726 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x000055c17c8e099f in EVENT_LOOP::Runner (this=0x55c17cb79960 <EVENT_LOOP_SINGLETON::CreateInstance()::loop>) at eventloop.cpp:72<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x000055c17c8e08ba in EVENT_LOOP::Run (self=0x55c17cb79960 <EVENT_LOOP_SINGLETON::CreateInstance()::loop>) at eventloop.cpp:51<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Поместить таблицы в отдельную схему в плагинах для разных СУБД (New)" href="https://stg.codes/issues/4">#4</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 10 (Thread 0x7f900ffff700 (LWP 20587)):<br />#0 0x00007f902c900c53 in select () from /lib64/libc.so.6<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x00007f9028f66362 in RADIUS::runImpl (this=0x55c17d15bb60) at radius.cpp:255<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f9028f6571a in RADIUS::run (d=0x55c17d15bb60) at radius.cpp:128<br />---Type <return> to continue, or q <return> to quit---<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Поместить таблицы в отдельную схему в плагинах для разных СУБД (New)" href="https://stg.codes/issues/4">#4</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 9 (Thread 0x7f9022ffd700 (LWP 20582)):<br />#0 0x00007f902d3eb0cd in nanosleep () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x00007f90291ba27d in PING::Run (d=0x55c17d15aaf0) at ping.cpp:206<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 8 (Thread 0x7f900f7fe700 (LWP 20588)):<br />#0 0x00007f902c900c53 in select () from /lib64/libc.so.6<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x000055c17c947ba8 in WaitPackets (sd=9) at common.cpp:1057<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f902962578a in NF_CAP::RunUDP (c=0x55c17d157e90) at cap_nf.cpp:268<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Поместить таблицы в отдельную схему в плагинах для разных СУБД (New)" href="https://stg.codes/issues/4">#4</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 7 (Thread 0x7f902a26b700 (LWP 20579)):<br />#0 0x00007f902d3eb0cd in nanosleep () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x000055c17c901a60 in TRAFFCOUNTER_IMPL::Run (data=0x7fffb8931b90) at traffcounter_impl.cpp:179<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 6 (Thread 0x7f902d809740 (LWP 20574)):<br />#0 0x00007f902d3eb6ff in do_sigwait () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x00007f902d3eb7be in sigwait () from /lib64/libpthread.so.0<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x000055c17c8e2200 in main (argc=1, argv=0x7fffb8931f68) at main.cpp:341</p>
<p>Thread 5 (Thread 0x7f90237fe700 (LWP 20581)):<br />#0 0x00007f902d3eae03 in recvfrom () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x00007f90291c328c in STG_PINGER::RecvPing (this=0x55c17d15abd8) at pinger.cpp:250<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f90291c3566 in STG_PINGER::RunRecvPing (d=0x55c17d15abd8) at pinger.cpp:325<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br />---Type <return> to continue, or q <return> to quit---<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Поместить таблицы в отдельную схему в плагинах для разных СУБД (New)" href="https://stg.codes/issues/4">#4</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 4 (Thread 0x7f90217fa700 (LWP 20585)):<br />#0 0x00007f902c900c53 in select () from /lib64/libc.so.6<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x000055c17c947ba8 in WaitPackets (sd=8) at common.cpp:1057<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f90293f6873 in AUTH_IA::RecvData (this=0x55c17d158760, buffer=0x7f90217f9cf0 "", bufferSize=512) at inetaccess.cpp:578<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f90293f6232 in AUTH_IA::Run (d=0x55c17d158760) at inetaccess.cpp:478<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Поместить таблицы в отдельную схему в плагинах для разных СУБД (New)" href="https://stg.codes/issues/4">#4</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: "Залипание" авторизации (New)" href="https://stg.codes/issues/5">#5</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 3 (Thread 0x7f902aa6c700 (LWP 20578)):<br />#0 0x00007f902d3eb0cd in nanosleep () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x000055c17c8f8d14 in stgUsleep (t=100000) at stg_timer.cpp:137<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x000055c17c9339eb in USERS_IMPL::Run (d=0x7fffb8931990) at users_impl.cpp:425<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Поместить таблицы в отдельную схему в плагинах для разных СУБД (New)" href="https://stg.codes/issues/4">#4</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 2 (Thread 0x7f902c4fa700 (LWP 20576)):<br />#0 0x00007f902d3eb0cd in nanosleep () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x000055c17c8f8bb2 in StgTimer () at stg_timer.cpp:93<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Thread 1 (Thread 0x7f9021ffb700 (LWP 20584)):<br />#0 0x00007f9028af8b36 in STG::PARSER::CHG_USER::ApplyChanges (this=0x7f8ffc002970) at parser_users.cpp:601<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по консольному авторизатору (New)" href="https://stg.codes/issues/1">#1</a> 0x00007f9028af7107 in STG::PARSER::CHG_USER::CreateAnswer (this=0x7f8ffc002970) at parser_users.cpp:451<br /><a class="issue tracker-1 status-5 priority-2 priority-default closed" title="Bug: Не допускать мусора в файлах deps (Closed)" href="https://stg.codes/issues/2">#2</a> 0x00007f9028aeacf1 in BASE_PARSER::End (this=0x7f8ffc002970, el=0x7f8ffc00a320 "SetUser") at parser.cpp:42<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: Crash конфигуратора (New)" href="https://stg.codes/issues/3">#3</a> 0x00007f9028ade646 in STG::Conn::ParseXMLEnd (data=0x7f8ffc004cf0, el=0x7f8ffc00a320 "SetUser") at conn.cpp:278<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Поместить таблицы в отдельную схему в плагинах для разных СУБД (New)" href="https://stg.codes/issues/4">#4</a> 0x00007f90288713f3 in ?? () from /usr/lib64/libexpat.so.1<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: "Залипание" авторизации (New)" href="https://stg.codes/issues/5">#5</a> 0x00007f9028871e1c in ?? () from /usr/lib64/libexpat.so.1<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Статистика за прошлые периоды (New)" href="https://stg.codes/issues/6">#6</a> 0x00007f90288763b8 in XML_ParseBuffer () from /usr/lib64/libexpat.so.1<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Время последней авторизации (New)" href="https://stg.codes/issues/7">#7</a> 0x00007f9028addd67 in STG::Conn::DataCallback (block=0x7f8ffc0008c0, size=144, data=0x7f8ffc0051a0) at conn.cpp:222<br />---Type <return> to continue, or q <return> to quit---<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Заменить passiveTime на passiveMoment (New)" href="https://stg.codes/issues/8">#8</a> 0x00007f9028b0d28c in (anonymous namespace)::COMMON::m_tryConsume (this=0x7f8ffc0008c0, last=true) at bfstream.cpp:76<br /><a class="issue tracker-1 status-1 priority-2 priority-default" title="Bug: "Залипание" always online (New)" href="https://stg.codes/issues/9">#9</a> 0x00007f9028b0d186 in (anonymous namespace)::COMMON::Put (this=0x7f8ffc0008c0, data=0x7f8ffc004d8c, size=144, last=true) at bfstream.cpp:50<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Настройка списка параметров передаваемых в скрипты (New)" href="https://stg.codes/issues/10">#10</a> 0x00007f9028b0d4c3 in STG::DECRYPT_STREAM::Put (this=0x7f8ffc005330, data=0x7f8ffc004d8c, size=144, last=true) at bfstream.cpp:136<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Состояние абонента через sgconf (New)" href="https://stg.codes/issues/11">#11</a> 0x00007f9028addc54 in STG::Conn::HandleData (this=0x7f8ffc004cf0, size=144) at conn.cpp:207<br /><a class="issue tracker-2 status-3 priority-2 priority-default" title="Feature: Опциональная полная загрузка базы (Resolved)" href="https://stg.codes/issues/12">#12</a> 0x00007f9028add2c0 in STG::Conn::HandleBuffer (this=0x7f8ffc004cf0, size=144) at conn.cpp:135<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: SNMP Trap плагин (New)" href="https://stg.codes/issues/13">#13</a> 0x00007f9028adce99 in STG::Conn::Read (this=0x7f8ffc004cf0) at conn.cpp:109<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Добавить поле "Имя" для админа (New)" href="https://stg.codes/issues/14">#14</a> 0x00007f9028ae0cf9 in CONFIGPROTO::HandleEvents (this=0x55c17d15db80, fds=...) at configproto.cpp:284<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Документация по плагинам СУБД (New)" href="https://stg.codes/issues/15">#15</a> 0x00007f9028adfdac in CONFIGPROTO::Run (this=0x55c17d15db80) at configproto.cpp:169<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Снятие абонплаты с основанием по трафику (New)" href="https://stg.codes/issues/16">#16</a> 0x00007f9028ad8e88 in STG_CONFIG::Run (d=0x55c17d15dad0) at stgconfig.cpp:152<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Порядок загрузки плагинов (New)" href="https://stg.codes/issues/17">#17</a> 0x00007f902d3df8a7 in start_thread () from /lib64/libpthread.so.0<br /><a class="issue tracker-2 status-1 priority-2 priority-default" title="Feature: Более "говорящие" сообщения об ошибках (New)" href="https://stg.codes/issues/18">#18</a> 0x00007f902c90996f in clone () from /lib64/libc.so.6</p>
<p>Log:<br />2018-01-11 11:32:13 -- Admin 'spiderx', 176.105.160.56: User 'test45' added. <br />2018-01-11 11:32:15 -- Admin 'spiderx', 176.105.160.56: User 'test45': 'ips' parameter changed from '*' to '10.0.101.101'. <br />2018-01-11 11:32:15 -- Admin 'spiderx', 176.105.160.56: User 'test45': 'freeMb' parameter changed from '0.000000' to '0.000000'. <br />2018-01-11 11:32:15 -- Admin 'spiderx', 176.105.160.56: User 'test45': 'password' parameter changed from '******' to '******'.</p>
Stargazer - Feature #51 (New): Документация по плагину mod_radius
https://stg.codes/issues/51
2017-01-22T10:57:36Z
Maxim Mamontov
madf@madf.info
<p>Нужно написать документацию по плагину mod_radius.<br />Stub:<br /><pre>
<Module radius>
<autz>
match = "(Calling-Station-Id, userdata1)"
modify = "(Cleartext-Password, password)"
no_match = noop
</autz>
<auth>
match = "(Calling-Station-Id, userdata1)"
</auth>
<postauth>
match = "(Calling-Station-Id, userdata1)"
reply = "(Dlink-Ingress-Bandwidth-Assignment, userdata2), (Dlink-Egress-Bandwidth-Assignment, userdata3)"
no_match = noop
</postauth>
<preacct>
match = "(Calling-Station-Id, userdata1)"
modify = "(Cleartext-Password, password)"
reply = "(Dlink-Ingress-Bandwidth-Assignment, userdata2), (Dlink-Egress-Bandwidth-Assignment, userdata3)"
</preacct>
<acct>
match = "(Calling-Station-Id, userdata1)"
modify = "(Cleartext-Password, password)"
reply = "(Dlink-Ingress-Bandwidth-Assignment, userdata2), (Dlink-Egress-Bandwidth-Assignment, userdata3)"
</acct>
verbose = yes
bind_address = unix:/var/run/stg.sock
sock_owner = faust
sock_group = users
sock_mode = 644
key = 123456
</Module>
</pre></p>
Секции:
<ul>
<li>autz - секция авторизации, соответствует секции authorize в конфигурационном файле FreeRADIUS;</li>
<li>auth - секция аутентификации, соответствует секции authenticate в конфигурационном файле FreeRADIUS;</li>
<li>postauth - секция пост-аутентификации, соответствует секции post-auth в конфигурационном файле FreeRADIUS;</li>
<li>preacct - секция пре-аккаунтинга, соответствует секции preacct в конфигурационном файле FreeRADIUS;</li>
<li>acct - секция аккаунтинга, соответствует секции accounting в конфигурационном файле FreeRADIUS.</li>
</ul>
<p>Если в конфигурации FreeRADIUS модуль rlm_stg указан в какой-либо секции это означает что за обработку этой секции отвечает Stargazer. Соответственно, каждая секция конфигурации mod_radius описывает как будет обработана соответствующая секция FreeRADIUS. Если секция на стороне Stargazer не описана rlm_stg вернет Reject.</p>
Глобальные параметры:
<ul>
<li>verbose - расширенное журналирование, (yes|no);</li>
<li>bind_address - локальный адрес: unix-сокет в формате unix:/path/to/file или tcp в формате tcp:<address>[:<port>];</li>
<li>sock_owner - владелец файла для unix-сокета;</li>
<li>sock_group - группа для unix-сокета;</li>
<li>sock_mode - права доступа для unix-сокета;</li>
<li>key - ключ шифрования (если не указан - шифрование не используется).</li>
</ul>
Параметры секций:
<ul>
<li>match - критерий поиска пользователя в формате (<RADIUS attribute>, <Stargazer field>)[, (<RADIUS attribute>, <Stargazer field>), ...];</li>
<li>modify - набор модифицируемых параметров в ответе в формате (<RADIUS attribute>, <Stargazer field>)[, (<RADIUS attribute>, <Stargazer field>), ...];</li>
<li>reply - набор не модифицируемых параметров в ответе в формате (<RADIUS attribute>, <Stargazer field>)[, (<RADIUS attribute>, <Stargazer field>), ...];</li>
<li>no_match - ответ если пользователь не найден (reject|fail|ok|handled|invalid|userlock|notfound|noop|updated);</li>
<li>authorize - критерий авторизации пользователя в Stargazer в формате (<RADIUS attribute>, <Stargazer field>)[, (<RADIUS attribute>, <Stargazer field>), ...].</li>
</ul>
<p>Параметр authorize может быть указан только в одной секции.</p>
<p>Описание логики - ?<br />Примеры конфигураций - ?</p>
Stargazer - Bug #45 (Resolved): Реініціалізація користувачів, AlwaysOnline, бєзисходность.
https://stg.codes/issues/45
2015-11-09T14:07:43Z
Anonymous
<p>Якось так: <a class="external" href="https://youtu.be/w0_Y23sCo1M">https://youtu.be/w0_Y23sCo1M</a></p>
Stargazer - Bug #44 (Resolved): Проблема деініціалізації користувачів в 2.409rc1
https://stg.codes/issues/44
2015-11-09T13:46:42Z
Anonymous
<p>На 2.408 не спостерігалось. Ітак дами і господа - маємо X активних користувачів. AlwaysOnline всьо такоє. От як виглядає лог ініціалізації при їх запуску:</p>
<pre>
2015.11.09 15:39:44 CONNECT: ID-53;LOGIN-gen_5f4nzp9n5w;IP-172.16.0.55;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:19:82:23:36
2015.11.09 15:39:44 CONNECT: ID-54;LOGIN-gen_8b9fbrz7ct;IP-172.16.0.56;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:21:53:36:92
2015.11.09 15:39:45 CONNECT: ID-55;LOGIN-gen_jwf5onk4ls;IP-172.16.0.57;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:17:88:92:58
2015.11.09 15:39:45 CONNECT: ID-56;LOGIN-gen_45k4cohtaf;IP-172.16.0.58;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:26:39:85:34
2015.11.09 15:39:45 CONNECT: ID-57;LOGIN-gen_qqw7g7jtzp;IP-172.16.0.59;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:92:53:53:57
2015.11.09 15:39:46 CONNECT: ID-58;LOGIN-gen_5voobh5j6s;IP-172.16.0.60;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:44:83:75:48
2015.11.09 15:39:46 CONNECT: ID-59;LOGIN-gen_h3bg47vuwq;IP-172.16.0.61;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:63:10:23:11
2015.11.09 15:39:46 CONNECT: ID-60;LOGIN-gen_ell14daspv;IP-172.16.0.62;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:76:79:59:99
2015.11.09 15:39:47 CONNECT: ID-61;LOGIN-gen_3fja7m9wwc;IP-172.16.0.63;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:45:74:70:32
2015.11.09 15:39:47 CONNECT: ID-62;LOGIN-gen_z7ut6d9wkm;IP-172.16.0.64;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:72:92:91:89
2015.11.09 15:39:48 CONNECT: ID-63;LOGIN-gen_jpyic2uwqo;IP-172.16.0.65;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:69:87:96:93
2015.11.09 15:39:48 CONNECT: ID-64;LOGIN-gen_4od1jq7shu;IP-172.16.0.66;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:70:27:80:41
2015.11.09 15:39:48 CONNECT: ID-65;LOGIN-gen_c5s5ehmodp;IP-172.16.0.67;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:76:80:44:41
2015.11.09 15:39:49 CONNECT: ID-66;LOGIN-gen_7nq9afloq3;IP-172.16.0.68;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:95:96:88:57
2015.11.09 15:39:49 CONNECT: ID-67;LOGIN-gen_j3a5eo3zmz;IP-172.16.0.69;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:55:86:64:17
2015.11.09 15:39:49 CONNECT: ID-68;LOGIN-gen_98of1b319s;IP-172.16.0.70;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:60:13:99:86
2015.11.09 15:39:50 CONNECT: ID-69;LOGIN-gen_z90ivsdmcd;IP-172.16.0.71;CASH-0.000000;SPEED-5240;UPSPEED-1024,MAC-14:88:57:87:43:55
</pre>
<p>Круто. Всьо добре. OnConnect виконується. Далі робимо killall stargazer і дивимось, як після цього виглядає лог розініціалізації, котрий записується за допомогою OnDisconnect:<br /><pre>
</pre></p>
<p>ой... ніяк він не виглядає. А чому? Та здається ось чому:</p>
<pre>
2015-11-09 15:45:11 -- +++++++++++++++++++++++++++++++++++++++++++++
2015-11-09 15:45:12 -- Traffcounter: Stop successfull.
2015-11-09 15:45:12 -- Users: Stop successfull.
2015-11-09 15:45:13 -- Queue removed successfully.
2015-11-09 15:45:14 -- StgTimer: Stop successfull.
2015-11-09 15:45:14 -- Stg stopped successfully.
2015-11-09 15:45:14 -- ---------------------------------------------
2015-11-09 15:45:14 -- Module 'cap_nf v. 0.4' stopped successfully.
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_atjqgwkmc1'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_hlaqf7k9fc'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_4w7pk2b85n'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_jr3ay2p1mn'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_8cl49vs244'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_dikef77kvl'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_iat8elghjh'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_lk5x996xp9'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_chxgl901vp'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_165tvnib37'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_vzsbht0vff'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_q6jltc139z'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_gy6u53rtpw'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_4ut19isrkz'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_asv8v6lb6t'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_1mc2xfsumh'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_c3fv2hc7x0'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_75inmvelz8'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_1bebynr191'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_taz8etypuz'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_8jixq5jt8j'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_uxrcdb8yst'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_04vnj1065n'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_g8xh5wst8v'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_m30wpio879'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_m17dtijigw'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_wwh0ua1lff'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_tznzdtpuwa'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_yhlm3ujnw0'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_lczr4wkvg3'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_dn222banf0'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_olxvckoxs6'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_i9xt67tc60'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_f1vtpf3bho'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_k2k2mdwqj6'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_1rrc8gb7di'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_dim6zze5bw'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_ge9q2rnlxq'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_h291mjyesg'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_yvjq8ccd7y'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_74hvbu3gfd'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_g17mc2c3vc'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_rihlmsnenz'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_y561deg7wy'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_tnwc42izgg'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_n9lc1wldpv'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_otznu1i9m5'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_zm2nx60b3r'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_bx3fypm4ba'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_tyng0i8b51'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_bzd2a5rrys'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_u6cyfp1vl2'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_9qvsa62o5n'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_5f4nzp9n5w'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_8b9fbrz7ct'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_jwf5onk4ls'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_45k4cohtaf'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_qqw7g7jtzp'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_5voobh5j6s'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_h3bg47vuwq'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_ell14daspv'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_3fja7m9wwc'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_z7ut6d9wkm'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_jpyic2uwqo'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_4od1jq7shu'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_c5s5ehmodp'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_7nq9afloq3'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_j3a5eo3zmz'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_98of1b319s'
2015-11-09 15:45:14 -- Attempt to unauthorize non-existant user 'gen_z90ivsdmcd'
2015-11-09 15:45:14 -- Module 'Always Online authorizator v.1.0' stopped successfully.
2015-11-09 15:45:14 -- Module 'InetAccess authorization plugin v.1.4' stopped successfully.
2015-11-09 15:45:14 -- Module 'Stg Configurator v. 2.0' stopped successfully.
</pre>
<p>І так - OnDisconnect справді не виконується. Всі шейпера, і рулєси - на місці. Пічалька :(</p>
Stargazer - Bug #43 (New): Зламаний SIGHUP
https://stg.codes/issues/43
2015-11-09T13:34:23Z
Anonymous
<p>Перший старт, після завантаження системи. Все працює, все добре, ну майже....</p>
<pre>
2015-11-05 14:26:23 -- ---------------------------------------------
2015-11-05 14:26:23 -- Module 'cap_nf v. 0.4' stopped successfully.
2015-11-05 14:26:23 -- Module 'Always Online authorizator v.1.0' stopped successfully.
2015-11-05 14:26:23 -- Module 'InetAccess authorization plugin v.1.4' stopped successfully.
2015-11-05 14:26:23 -- Module 'Stg Configurator v. 2.0' stopped successfully.
2015-11-09 15:28:48 -- Stg v. 2.409
2015-11-09 15:28:48 -- Message queue created successfully. msgKey=5555 msgID=65536
2015-11-09 15:28:48 -- Timer thread started successfully.
2015-11-09 15:28:48 -- [store_mysql] MYSQL_STORE: Current DB schema version: 1
2015-11-09 15:28:48 -- Storage plugin: mysql_store v.0.67. Loading successfull.
2015-11-09 15:28:48 -- Users started successfully.
2015-11-09 15:28:48 -- Traffcounter started successfully.
2015-11-09 15:28:48 -- Module 'Stg Configurator v. 2.0' started successfully.
2015-11-09 15:28:48 -- Module 'Always Online authorizator v.1.0' started successfully.
2015-11-09 15:28:48 -- Module 'InetAccess authorization plugin v.1.4' started successfully.
2015-11-09 15:28:48 -- Module 'cap_nf v. 0.4' started successfully.
2015-11-09 15:28:48 -- Stg started successfully.
2015-11-09 15:28:48 -- +++++++++++++++++++++++++++++++++++++++++++++
</pre>
<pre>
root@test102_64:/usr/home/nightfly # cat /var/run/stargazer.pid
948
root@test102_64:/usr/home/nightfly # ps aux | grep stargazer
root 948 0.6 0.4 61716 7764 - Ss 3:28PM 0:00.80 /usr/sbin/stargazer
root 949 0.0 0.2 28176 3796 - I 3:28PM 0:00.00 stargazer: stg-exec (stargazer)
root 994 0.0 0.1 18824 2196 0 R+ 3:30PM 0:00.00 grep stargazer
root@test102_64:/usr/home/nightfly # kill -1 948
root@test102_64:/usr/home/nightfly # tail -n 1 /var/log/stargazer.log
2015-11-09 15:28:48 -- +++++++++++++++++++++++++++++++++++++++++++++
</pre>
<p>Ой, а нічо і не відбулося.Добре, зупиняємо Stargazer і стартуємо по новій:</p>
<pre>
root@test102_64:/usr/home/nightfly # tail -n20 /var/log/stargazer.log
2015-11-09 15:32:12 -- StgTimer: Stop successfull.
2015-11-09 15:32:12 -- Stg stopped successfully.
2015-11-09 15:32:12 -- ---------------------------------------------
2015-11-09 15:32:12 -- Module 'cap_nf v. 0.4' stopped successfully.
2015-11-09 15:32:12 -- Module 'Always Online authorizator v.1.0' stopped successfully.
2015-11-09 15:32:12 -- Module 'InetAccess authorization plugin v.1.4' stopped successfully.
2015-11-09 15:32:12 -- Module 'Stg Configurator v. 2.0' stopped successfully.
2015-11-09 15:32:36 -- Stg v. 2.409
2015-11-09 15:32:36 -- Message queue created successfully. msgKey=5555 msgID=131072
2015-11-09 15:32:36 -- Timer thread started successfully.
2015-11-09 15:32:36 -- [store_mysql] MYSQL_STORE: Current DB schema version: 1
2015-11-09 15:32:36 -- Storage plugin: mysql_store v.0.67. Loading successfull.
2015-11-09 15:32:36 -- Users started successfully.
2015-11-09 15:32:36 -- Traffcounter started successfully.
2015-11-09 15:32:36 -- Module 'Stg Configurator v. 2.0' started successfully.
2015-11-09 15:32:36 -- Module 'Always Online authorizator v.1.0' started successfully.
2015-11-09 15:32:36 -- Module 'InetAccess authorization plugin v.1.4' started successfully.
2015-11-09 15:32:36 -- Module 'cap_nf v. 0.4' started successfully.
2015-11-09 15:32:36 -- Stg started successfully.
2015-11-09 15:32:36 -- +++++++++++++++++++++++++++++++++++++++++++++
</pre>
<p>Після чого пробуємо ше раз SIGHUP:</p>
<pre>
root@test102_64:/usr/home/nightfly # cat /var/run/stargazer.pid
1000
root@test102_64:/usr/home/nightfly # kill -1 1000
root@test102_64:/usr/home/nightfly # tail -n1 /var/log/stargazer.log
2015-11-09 15:33:12 -- TRAFFCOUNTER: Reloaded rules successfully
</pre>
<p>Совпадєніє? Нє думаю :Р</p>
Stargazer - Feature #42 (Resolved): Необходимо выводить человекочитаемое сообщение об ошибке при ...
https://stg.codes/issues/42
2015-10-14T18:12:47Z
Helen Mamontova
helenh463@gmail.com
<p>При запуске старгейзера без файла конфигурации появляется сообщение об ошибке:</p>
<pre>
settings_impl.cpp > 20:58:43 > SETTINGS_IMPL::ErrorCallback() - DOTCONF++: file '/etc/stargazer/stargazer.conf': realpath('/etc/stargazer/stargazer.conf') failed: No such file or director
</pre>
<p>Ожидаемое сообщение об ошибке:</p>
<pre>
File '/etc/stargazer/stargazer.conf' does not exist.
</pre>
Stargazer - Bug #41 (New): [mod_remote_script] Большие сети
https://stg.codes/issues/41
2015-10-09T17:57:00Z
Vladimir Pavljuchenkov
spiderx@spiderx.dp.ua
<p>В работе связки rscriptd-mod_remote_script есть проблема.<br />Если в subnets описать сети, IP адреса из которых, надо отсылать на rscriptd, как</p>
<pre>
188.247.112.0/22 91.193.69.20
118.247.96.0/20 91.193.69.20
</pre>
<p>то stargazer пришлет на rscriptd где-то 300-400 адресов, и потом будет слать IP адрес буквально по адресу в секунду, и где-то на 450+ остановится.</p>
<p>Если в subnets описать сети как</p>
<pre>
188.247.96.126/25 91.193.69.20
188.247.110.222/27 91.193.69.20
188.247.96.254/25 91.193.69.20
188.247.108.190/26 91.193.69.20
188.247.110.254/27 91.193.69.20
188.247.97.126/25 91.193.69.20
188.247.97.254/25 91.193.69.20
......
</pre>
<p>то есть опишу сети так, как они подняты на интерфейсах на сервере, т.е. по сути уменьшить размеры сетей.<br />То stargazer сразу же высылает под тысячу IP адресов</p>
<pre>
[root@sapfir1 /usr/local/etc/rc.d]# ipfw table 10 list | wc -l
1233
</pre><br />и оно быстро подрастает до двух тысяч
<pre>
[root@sapfir1 /usr/local/etc/rc.d]# ipfw table 10 list | wc -l
1983
</pre>
<p>В первом же случае (с большими блоком сетей) количество адресов было практических стабильным</p>
<pre>
[root@sapfir1 /usr/home/spiderx]# ipfw table 10 list | wc -l
462
</pre>
<p>и не росло.</p>
<p>Рестарт rscriptd на сервере не делал, только изменял subnets и делал kill -1 stargazer.</p>