CGRU / cgru

CGRU - AFANASY
http://cgru.info/
GNU Lesser General Public License v3.0
278 stars 111 forks source link

Can't find render node #29

Closed maxli1 closed 12 years ago

maxli1 commented 12 years ago

Sir, I have a issue with afanasy in centos 6.2. Release version is 1.6.5. I installed afserver and afrender in a same server. I also installed afrender in the other server. Two servers can see eachother with ping test. However, I moniter all things with webvisor, I can only see one render that is installed with afserver together. Afserver/afrender ip: 192.168.90.51 other afrender IP: 192.168.90. I checked all respect of services. They are running well. Could you tell me what problem is and how to do troubleshooting though.

Thanks

timurhai commented 12 years ago

Hi.

  1. Client should know server name (address). See cgru/afanasy/config_default.xml
  2. Web visor in not designed to monitor render (server). It designed to monitor database and collect statistics. It communicates with SQL database itself. If server can't connect to SQL database it works without it. In this case server will be empty on restart and you will not see anything in webvisor. (but, i think, it is not you case, as you see one render there, but try to see render in afwatch first to exclude sql problems)
maxli1 commented 12 years ago

Dear Timurhai, Thank for echoing me such quickly. I am sure postgres database work with afserver well. I used "afcmd db_check" command to test it. I would like to update my config.xml to you here as reference.

[root@cen6 afanasy]# cat config.xml

%a %d %b %H:%M.%S 250 ``` 100 10 ``` ``` ``` 99 -1 ``` 192.168.90.69 ``` 192.168.90.51 ``` *.* 127.0.0.1 192.168.90.* 172.16.90.* *:* 0:0:0:0:0:0:0:1 FC00:* FD00:* 1 reject ``` 51000 51001 2 2 1000 300 100 1000 5 (?!lo$).* / sda 10 5 1 60 3 15000 15000 15000 afrender reboot shutdown -P 1 afrequest wolsleep wolwake 3 3 3 18000 2 1832116180fdc61b64fd978401e462e9 73bcaaa458bff0d27989ed331b68b64d nuke -v "@ARG@" imf_disp "@ARG@" mplay "@ARG@" vncviewer @ARG@ xterm -e "ping @ARG@; read -s -n 1" xterm -e "ping @IP@; read -s -n 1" xterm -e "ssh @ARG@; read -s -n 1" xterm -e "ssh @ARG@ \"@ASK@\"; read -s -n 1" 3 8000 8000 8000 5 10 40 3 8000 8000 8000 5 18 3 8000 8000 8000 ``` ``` host=192.168.90.51 dbname=afanasy user=afadmin password=AfPassword $$ 512 4096 1800 1000

I confused two lines that both include server name. I think one is to indicate afrender's name. The second one is to inidicate afserver name. Is it right? Afserver IP: 192.168.90.51 Afrender IP : 192.168.90.69.

maxli1 commented 12 years ago

Dear Timurhai

Thank for echoing me such quickly. I am sure postgres database work with afserver well. I used "afcmd db_check" command to test it. I would like to update my config.xml to you here as reference

root@cen6 afanasy]# cat config.xml

%a %d %b %H:%M.%S 250 100 10 99 -1 ``` 192.168.90.69 ``` 192.168.90.51 _._ 127.0.0.1 192.168.90.\* 172.16.90.\* _:_ 0:0:0:0:0:0:0:1 FC00:* FD00:* 1 reject 51000 51001 2 2 1000 300 100 1000 5 (?!lo$).* / sda 10 5 1 60 3 15000 15000 15000 afrender reboot shutdown -P 1 afrequest wolsleep wolwake 3 3 3 18000 2 1832116180fdc61b64fd978401e462e9 73bcaaa458bff0d27989ed331b68b64d nuke -v "@ARG@" imf_disp "@ARG@" mplay "@ARG@" vncviewer @ARG@ xterm -e "ping @ARG@; read -s -n 1" xterm -e "ping @IP@; read -s -n 1" xterm -e "ssh @ARG@; read -s -n 1" xterm -e "ssh @ARG@ \"@ASK@\"; read -s -n 1" 3 8000 8000 8000 5 10 40 3 8000 8000 8000 5 18 3 8000 8000 8000 host=192.168.90.51 dbname=afanasy user=afadmin password=AfPassword $$ 512 4096 1800 1000

I confused two lines that both include server name. I think one is to indicate afrender's name. The second one is to inidicate afserver name. Is it right? My Afserver IP: 192.168.90.51 Afrender IP : 192.168.90.69.

Best regards

Dennis Ma

Date: Thu, 18 Oct 2012 01:42:28 -0700 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] Can't find render node (#29)

Hi.

  1. Client should know server name (address). See cgru/afanasy/config_default.xml
  2. Web visor in not designed to monitor render (server). It designed to monitor database and collect statistics. It communicates with SQL database itself. If server can't connect to SQL database it works without it. In this case server will be empty on restart and you will not see anything in webvisor. (but, i think, it is not you case, as you see one render there, but try to see render in afwatch first to exclude sql problems)

         ¡ª
    
         Reply to this email directly or view it on GitHub.
timurhai commented 12 years ago

There is only one servername field in config.xml (other is commented as an example). Sever name (address) should be configured on each client (and only clients should now where is server, on server you can not to config it). Try to see afserver and afrender logs (you can stop services and run then in terminal).

maxli1 commented 12 years ago

Ok, I will try to correct to config.xml base on your comment. Before do that. I would like to upload my log here, you perhaps find more useful information for me. Thank you in advance.

Afrender 192.168.90.69 log [root@cen6 afanasy]# cat afrender.cen6.log.0 |more Creating folder: /tmp/.afanasy Compilation date = "Sep 3 2012 23:22:03" CGRU version = "1.6.5" Afanasy build revision = "cf83ffe1a81fbdd33953eb3ce60fa4c0de80af88" Python version = "2.6.6" GCC version = "4.4.6" Network Interfaces: eth0: fa:16:3e:4e:a7:2a IPv4 Address:192.168.90.69 IPv6 Address: fe80::::f816:3eff:fe4e:a72a virbr0: 52:54:00:7b:ff:8b IPv4 Address: 192.168.122.1 virbr0-nic: 52:54:00:7b:ff:8b unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'. ON cen6@render[0] v'1.6.5' Empty address Host: OS="Unix: Linux 64bit" Capacity = 0, Max Tasks = 0, Power = 0 Resources: CPU = 2400 MHz x4 0% usr, 0% nice, 0% sys, 100% idle, 0% iow, 0% irq, 0% sirq load average: 0 0 0 Memory: 7871 Mb / 7541 Mb free (cache 207 Mb, buffers 160 Mb) Swap: 1193 Mb / 0 Mb used Network: Recieved 0 Kb/sec, Send 0 Kb/sec IO: Read 0 Kb/sec, Write 0 Kb/sec, Busy = 0% HDD: 28 Gb / 21 Gb free unable to find statistics about 'sda' in '/proc/diskstats'.'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'.

Afserver log :192.168.90.51

[root@moosefs afanasy]# cat afserver.moosefs.log AFERROR: AfContainer::add: node->id = 1 already exists. Compilation date = "Sep 3 2012 23:22:03" CGRU version = "1.6.5" Afanasy build revision = "cf83ffe1a81fbdd33953eb3ce60fa4c0de80af88" Python version = "2.6.6" GCC version = "4.4.6" Getting renders from database... 0 renders founded. 0 renders registered. Getting users from database... 2 users founded. AFERROR: AfContainer::add: nodes table full. 1 permanent users registered. Getting jobs from database... 0 jobs founded. 0 jobs registered. System job constructed. AFINFO: Thread (id = 38856096) is main, creating other threads. Available addresses: IP = '0.0.0.0' IPv6 = '::' Using IPv6 addresses family. IPv4 connections addresses will be mapped to IPv6. Listening 51000 port... Mon 15 Oct 14:58.28: New Render registered: ON moosefs@render[1] v'1.6.5' 192.168.90.51:51001 Mon 15 Oct 14:58.37: Render Offline: off moosefs@render[1] v'1.6.5' 192.168.90.51:51001 Mon 15 Oct 14:58.46: Render: ON moosefs@render[1] v'1.6.5' 127.0.0.1:51001 Tue 16 Oct 17:18.07: Monitor registered: render@moosefs:51002[1] v'' 127.0.0.1:51002 Tue 16 Oct 17:18.35: Deleting monitor: render@moosefs:51002[1] v'' 127.0.0.1:51002 Tue 16 Oct 17:18.41: Monitor registered: render@moosefs:51002[1] v'' 127.0.0.1:51002 Tue 16 Oct 17:18.45: Deleting monitor: render@moosefs:51002[1] v'' 127.0.0.1:51002 Tue 16 Oct 17:23.11: Monitor registered: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:14.22: Deleting monitor: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:15.33: Monitor registered: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:15.51: Deleting monitor: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:16.33: Monitor registered: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:20.56: Deleting monitor: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:20.59: Monitor registered: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:24.10: Deleting monitor: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:24.29: Monitor registered: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 11:26.35: Deleting monitor: render@moosefs:51002[1] v'' 127.0.0.1:51002 Thu 18 Oct 17:18.43: Monitor registered: render@moosefs:51002[1] v'' 127.0.0.1:51002 [root@moosefs afanasy]#

maxli1 commented 12 years ago

Hi Timurhai After I modified config.xml. It looks work well. but there is one thing that is not correct. Name Prioprity Capacity User State id 1 moosefs 99 -1 render free 1 2 cen6 99 -1 render free 2

Why is Capacity nagtive value therre?

timurhai commented 12 years ago

Strange afrender log. Where and how it finishes? It has no sda device? Configure it by <render_iostat_device>sda</render_iostat_device>

If capacity is negative, it takes capacity from farm.xml. Render capacity attribute needed to temporary override farm settings. I just want to say again, webvisor it not for farm monitoring, it is for statistics and database browser. If you need Web GUI for some reasons (not Qt) type 192.168.90.51:51000 in browser (better firefox and not IE). It is not finished, but you can already monitor your farm. Later it will have all afwatch functionality.

maxli1 commented 12 years ago

I don't have any sda device. Because I built all in the KVM. I think that virtual machine resulted in that you think the log is strange.

Could you tell me how to change capacity value to override farm settng? do this in database directly ?

Best regards

Dennis Ma

Date: Fri, 19 Oct 2012 01:25:28 -0700 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] Can't find render node (#29)

Strange afrender log. Where and how it finishes? It has no sda device? Configure it in sda field

If capacity is negative, it takes capacity from farm.xml. Render capacity attribute needed to temporary override farm settings.

          ¡ª

          Reply to this email directly or view it on GitHub.
timurhai commented 12 years ago

Database needed only to store state. Server reads it only on start, later it only writes changes. You can config farm hosts capacity in farm.xml and later override in afwatch if needed. For now, there is only one general method to make changes on server - Qt GUI, and only few commands in afcmd (CLI). Later, when JSON protocol will be fished, you can manipulate anything via JSON.

maxli1 commented 12 years ago

Dear Timur Hairulin How do you do. I am really intrested in Afanasy software. Though I would like to know what roadmap it is? It will support more opensource render engineers, won't it? It is like Aqsis,Luxrender and Pixie as so on.

Best regards

Dennis Ma Date: Fri, 19 Oct 2012 01:54:08 -0700 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] Can't find render node (#29)

Database needed only to store state. Server reads it only on start, later it only writes changes.

You can config farm hosts capacity in farm.xml and later override in afwatch if needed. For now, there is only one general method to make changes on server - Qt GUI, and only few commands in afcmd (CLI). Later, when JSON protocol will be fished, you can manipulate anything via JSON.

          ¡ª

          Reply to this email directly or view it on GitHub.
timurhai commented 12 years ago

Hi. I am fine, thanks ) CGRU is opensource and any software can be supported by users. Afanasy engine does know nothing about Nuke or Blender (and should know nothing about Aqsis,Luxrender and Pixie as so on), it run command only. Commands can be generated any way and submitted to server via JSON. I spend much time with afanasy server engine and gui. Roadmap for the near future is web technologies.