About Forum Blogs NOC Docs Downloads KB Issues Code CI Registration

nocproject.org

#nocproject.org at irc.freenode.net log.
Back to nocproject.org Back to IRC log index
Date: 09.03.2011
Norgs #
01:19
thank Yetty
01:19
I actually got there in the end
01:20
bnt I believe the install instructions have some mistakes in them.
01:20
also, I am installed on ubuntu (regular desktop latest version) and I think there are some dependencies not included.
01:20
especially if you are not a developer
02:02
hmm
02:02
I have a new issues
02:02
running with apache
02:02
when I load the site it fails
02:02
I inspected the error log
02:02
I have:
02:03
[Wed Mar 09 12:56:13 2011] [error] [client 127.0.1.1] (2)No such file or directory: FastCGI: failed to connect to server "/opt/noc/noc.fcgi": connect() failed
03:07
ideas?
07:16
hi anyone able to help out?
dvolodin #
07:25
yes
08:05
Can anyone test new lib/nbsocket.py unittests
08:05
python manage.py test --reuse-db noc.lib.tests.nbsocket
`kk #
08:07
Scanning for tests ... ... 0 test module(s) found
dvolodin #
08:15
python manage.py test --reuse-db noc.lib.tests.nbsocket -v2
08:15
with latest commits
`kk #
08:28
уже мин 5-7 как выполняется .....
dvolodin #
08:29
Ctrl+C
08:29
в каком тесте залип?
`kk #
08:30
http://dpaste.com/482228/
08:31
и жрёт 100% одного ядра
dvolodin #
08:31
о как
08:31
ладно, epoll отдельно проверю
free|wk #
08:39
подтверждаю
dvolodin #
09:43
С r3327 проверьте
free|wk #
09:44
IOError: [Errno 9] Bad file descriptor
dvolodin #
09:45
это нормально
free|wk #
09:45
нда ?
`kk #
09:45
ну cpu уже не жрёт
09:46
http://dpaste.com/482247/
dvolodin #
09:46
да, нормально отработало
09:47
можно играться теперь
09:53
сейчас регрессии сохранились какие-нибудь? кроме скриптов для dlink'а?
free|wk #
10:04
ну...
10:05
пара тройка жоп осталась :)
10:05
я у ся запустил 10 активаторов.
10:05
сегодня с утра пришел сервак кричит о окончании памяти
10:06
stale скрипты
`kk #
10:07
у меня активаторы при работе жрут по 100-150 памяти. на длинка
free|wk #
10:10
не понятно чем занята система между моментом когда активторы все отдали. а сае еще не закомтил
10:10
довольно продолжительное время.
10:12
упорно не работет пинг_чек :)
Norgs #
10:27
so
10:27
I think there is some issues in the install guide.
10:29
this section:
10:29
http://redmine.nocproject.org/projects/noc/docs/en/nocbook/html/installation/install_source.html#create-database
10:29
I think you need to allow the user to create new DB.. right?
10:32
also now I am installed.
10:32
I have a question
10:33
[Wed Mar 09 12:56:13 2011] [error] [client 127.0.1.1] (2)No such file or directory: FastCGI: failed to connect to server "/opt/noc/noc.fcgi": connect() failed
10:33
so, clearly I have something wrong with my apache setup
XTech #
10:33
You need a fastcgi module for apache
Norgs #
10:35
yeah
10:35
okay XTech, thanks, rill look at that right now
XTech #
10:36
http://www.fastcgi.com/dist/
Norgs #
10:36
okay XTech, for this machine i am using ubuntu
10:37
and I am new to debian/ubuntu, but understand somewhat
10:37
so I have this result
10:37
libapache2-mod-fastcgi is already the newest version.
10:37
thats from apt-get
`kk #
10:37
noc is running ?
Norgs #
10:38
...so maybe I am missing the point here `kk
`kk #
10:38
python scripts/noc-launcher.py start
Norgs #
10:38
nioc is a service too?
10:38
apologies all
dvolodin #
10:39
Norgs: First, you need to place FastCGI socket outside the NOC distribution
10:39
then you need noc-fcgi.py daemon
Norgs #
10:39
okay
10:40
does noc-launcher.py start the noc-fastcgi.py daemon?
dvolodin #
10:40
yes, if asked so
10:40
:)
Norgs #
10:40
is there somewhere I can read about 21:39 < dvolodin> Norgs: First, you need to place FastCGI socket outside the NOC distribution
10:41
is there somewhere I can read about 21:39 < dvolodin> Norgs: First, you need to place FastCGI socket outside the NOC distribution "FastCGI socket outside the NOC distribution
10:41
"
dvolodin #
10:41
[Wed Mar 09 12:56:13 2011] [error] [client 127.0.1.1] (2)No such file or directory: FastCGI: failed to connect to server "/opt/noc/noc.fcgi": connect() failed
10:41
try to use /tmp/noc.fcgi as a socket
Norgs #
10:41
oh, I've seen that in a config file somewhere
10:42
but let me restart apache now and then try and visit the site, and then inspect the error log
dvolodin #
10:42
etc/noc-fcgi.conf
10:42
Do you really need apache?
Norgs #
10:42
probably not.
10:42
what are you suggesting?
dvolodin #
10:42
nginx and lighttpd may be better options
Norgs #
10:42
just running the built in web server?
10:42
oh
dvolodin #
10:43
no
10:43
nginx/lighttpd frontend, serving static files and passing all other requests to NOC
Norgs #
10:43
well, the machine I was installing on _had_ nginx installed, but I wasnt able to get nginx working. I have zero experience with nginx and _some_ with apache2
dvolodin #
10:43
there are examples in documentation
Norgs #
10:43
yes, the doco is serving me well
10:44
when you were all on Holiday I asked many many questions in here about the install of this product
10:44
but managed to work them out myself :P
10:45
btw, they are novice linux person problems
10:45
not noc issues.
XTech #
10:45
Can you see a file /tmp/noc.fcgi ?
Norgs #
10:45
so far tho, I think I got stuck with the DB user creation
10:46
XTech: no, not at the moment
10:46
I only have ssh access to the server now
10:46
let me set up some tunnels so I can browse the machine also
XTech #
10:47
ls -al /tmp
10:47
thru ssh
dvolodin #
10:54
Norgs: which problem with db user?
10:54
su - postgres
10:54
createuser noc
Norgs #
10:55
yep
10:55
then dvolodin, you say this...
10:55
Shall the new role be a superuser? (y/n) n
10:55
Shall the new role be allowed to create databases? (y/n) n
10:55
Shall the new role be allowed to create more new roles? (y/n) n
10:55
should part 2 be .. YES
dvolodin #
10:55
no
10:55
createdb -EUTF8 -Onoc noc
Norgs #
10:56
yeah, then doesn the post install script go and create a DB called test-something
10:56
maybe?
XTech #
10:57
i noticed - for run tests user req'd a createdb role
Norgs #
10:58
I understand it doesnt matter right XTech
10:58
but alas...
dvolodin #
10:59
Norgs: no, only if you with to run python manage.py test, it is combletely optional
Norgs #
11:02
right, I can look at that later.
11:02
I might roll back and go nginx at your advice.
11:06
oh also, was the postgres super user at some point called pgsql?
11:06
maybe its different on different distributions.
dvolodin #
11:52
pgsql or postgres, depending on system
Norgs #
12:47
okay
12:47
started again
12:47
I now have /tmp/noc.fcgi
12:48
when I load the page
12:48
DoesNotExist at /main/auth/login/
dvolodin #
12:58
complaining about templates?
Norgs #
21:01
http://dpaste.com/483709/
21:01
thats the issue
21:01
sorry, needed to sleep
Tweet
Share this page
Share this page: Tweet