CGRU / cgru

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

OS and enviroment requirments #48

Closed maxli1 closed 11 years ago

maxli1 commented 11 years ago

Hi, I got some issues that like these: 1.[root@blender2 Desktop]# blender --engine help connect failed: No such file or directory found bundled python: /usr/blender-2.65a-linux-glibc211-x86_64/2.65/python Blender Engine Listing: BLENDER_RENDER BLENDER_GAME CYCLES [root@blender2 Desktop]#

2.[root@blender1 bin]# ./afrender Creating folder: /root/.cgru Compilation date = 'Dec 21 2012 14:40:18' CGRU version = '1.6.10' Afanasy build revision = '62879bdf9b7f00967b839747d40bcbf088af9a3f' Python version = '2.6.6' GCC version = '4.4.6' Config file does not exist: /opt/cgru/config.json Config file does not exist: /root/.cgru/config.json Network Interfaces: eth0: fa:16:3e:42:5d:c9 IPv4 Address: 192.168.152.2 IPv6 Address: fe80::::f816:3eff:fe42:5dc9 unable to find statistics about 'sda' in '/proc/diskstats'.unable to find statistics about 'sda' in '/proc/diskstats'. ON

  1. I can't find addon about blender in the folder /opt/cgru/plugin [root@blender1 plugins]# ll total 24 drwxrwxrwx 3 root root 4096 Jan 14 11:11 c4d drwxrwxrwx 3 root root 4096 Jan 14 11:11 houdini drwxrwxrwx 2 root root 4096 Jan 14 11:11 max drwxrwxrwx 5 root root 4096 Jan 14 11:11 maya drwxrwxrwx 4 root root 4096 Jan 14 11:11 nuke drwxrwxrwx 2 root root 4096 Jan 14 11:11 xsi My OS and Tools are like these : OS : Centos6.3 x86_64
    Gcc: gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) Pytond: [root@blender1 plugins]# python -V Python 2.6.6

Blender : [root@blender2 Desktop]# blender -v Blender 2.65 (sub 0) build date: 2012-12-19 build time: 13:10:31 build revision: 53177 build platform: Linux:64bit build type: Release build c flags: -pipe -fPIC -funsigned-char -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fopenmp -DNDEBUG -O2 -msse -msse2 -DWITH_MOD_FLUID -DWITH_MOD_OCEANSIM -DLITTLE_ENDIAN__ -DWITH_AUDASPACE -DWITH_AVI build c++ flags: -pipe -fPIC -funsigned-char -fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -fopenmp -fpermissive -DSTDC_CONSTANT_MACROS -DNDEBUG -O2 -msse -msse2 -DWITH_MOD_FLUID -DWITH_MOD_OCEANSIM -D__LITTLE_ENDIAN__ -DWITH_AUDASPACE -DWITH_AVI build link flags: -lrt build system: SCons

Could you help me out those issues ? I wonder to finish Afansy test within this week, however, at starting, I encountered those issues. :( I don't know how I assign this issue to a right person yet. :(

timurhai commented 11 years ago

Hi.

  1. blender --engine help - it is not a CGRU or Afanasy problem.
  2. What platform are you using? sda is a default drive to get resources usage from, it you have not it, configure it in cgru/config.json. You can find how to configure it in cgru/afanasy/config_default.json
  3. Afanasy Blender plugin is located in "cgru/afanasy/plugins" folder.

Are you launching all programs under the "root" user? Why? Any cgru-afanasy tools should not be launched under the root, as most other Linux applications and tools.

maxli1 commented 11 years ago
  1. So this is why ask for help here. I want to know what specific version of blender can work with CGRU well. my Blender is the last version. Do I need to try other version of blender?
  2. I built render application on Openstack virtual machines. so I don't have /sda device, I have /vda device, even though I change this value in the /opt/cgru/config.json it doesn't work.
  3. In my opened issue, you can see where is not blender addon in the /opt/cgru/plugin directory on server and render machine. [root@blender1 .vnc]# cd /opt/cgru/plugins/ [root@blender1 plugins]# ll total 24 drwxrwxrwx 3 root root 4096 Jan 14 11:11 c4d drwxrwxrwx 3 root root 4096 Jan 14 11:11 houdini drwxrwxrwx 2 root root 4096 Jan 14 11:11 max drwxrwxrwx 5 root root 4096 Jan 14 11:11 maya drwxrwxrwx 4 root root 4096 Jan 14 11:11 nuke drwxrwxrwx 2 root root 4096 Jan 14 11:11 xsi

I rememer lanching two progreams in the server and render machine. install_afserver.sh ,cgru/setup.sh , install_afrender.sh and cgru/setup.sh. Do you mean that I should install software and lanch programs under common user which is like render?

I also want to upload my config files to you. Those would be helpful.

Rener farm architecture one Afanasy server: ip 192.168.152.6. Centos 6.3 just installed afserver two afrender server : ip 192.168.152.4 192.168.152.2 Centos6.3 just installed afrender one Client workstation: 192.168.152.7 centos 6.3 installed afrender and cgru.

Comment: all servers are virtual machines.

Best regards

Dennis Ma

Date: Tue, 15 Jan 2013 00:14:01 -0800 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] OS and enviroment requirments (#48)

Hi.

  1. blender --engine help - it is not a CGRU or Afanasy problem.
  2. What platform are you using? sda is a default drive to get resources usage from, it you have not it, configure it in cgru/config.json. You can find how to configure it in cgru/afanasy/config_default.json
  3. Afanasy Blender plugin is located in "cgru/afanasy/plugins" folder.

Are you launching all programs under the "root" user? Why? Any cgru-afanasy tools should not be launched under the root, as most other Linux applications and tools.

          ¡ª

          Reply to this email directly or view it on GitHub.
timurhai commented 11 years ago
  1. I did not got your issue. Are you afraid of an error "connect failed: No such file or directory" - this is some blender message, i don`t know why it appear.
  2. How do you configured it? Can you copy&paste a line of the config.
  3. You are looking in cgru/plugins folder, look in cgru/afanasy/plugins folder.

You should install cgru linux packages under the root, like other linux packages. And use them not under the root. It is a common Unix workflow.

timurhai commented 11 years ago

Also to use afanasy with blender, you should run with cgru setup. There are several ways to do it. 1 Setup console and run blender command. 2 Use start_blender.sh script in cgru/software setup. 3 Launch blender from keeper (system tray cgru icon with menu)

maxli1 commented 11 years ago

Sir,

  1. you can find out all configruation files in the attachment last email. Now I am willing to sent those again by attachemnt.
  2. I just try to install blender plugin but there is error to appear.

[root@afancy blender]# pwd /opt/cgru/afanasy/plugins/blender [root@afancy blender]# python render_afanasy.py File "render_afanasy.py", line 216 return {'CANCELLED'} ^ SyntaxError: invalid syntax [root@afancy blender]#

any suggestion ?

Date: Tue, 15 Jan 2013 01:29:59 -0800 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] OS and enviroment requirments (#48)

I did not got your issue. Are you afraid of an error "connect failed: No such file or directory" - this is some blender message, i don`t know why it appear. How do you configured it? Can you copy&paste a line of the config. You are looking in cgru/plugins folder, look in cgru/afanasy/plugins folder. You should install cgru linux packages under the root, like other linux packages. And use them not under the root. It is a common Unix workflow.

          ¡ª

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

To install a blender plugin (any) go to "User Preferences" - > "Addons" -> "Install Addon...". And locate a file /opt/cgru/afanasy/plugins/blender/render_afanasy.py

maxli1 commented 11 years ago

thanks , I will try soon.

I suppose you viewed configurations in the attachments. Are those right ?

Date: Thu, 17 Jan 2013 01:22:40 -0800 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] OS and enviroment requirments (#48)

To install a blender plugin (any) go to "User Preferences" - > "Addons" -> "Install Addon...". And locate a file /opt/cgru/afanasy/plugins/blender/render_afanasy.py

          ¡ª

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

i do not see any attachments

maxli1 commented 11 years ago

Cloud you check them for me? I just change it a little, like server ip. service can run but there is no any service port to open, like 51000, 51001. keeper can't connect to afserver. it reported error, like can't not conncection server .etc.

thank you inadvance.

Date: Thu, 17 Jan 2013 01:22:40 -0800 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] OS and enviroment requirments (#48)

To install a blender plugin (any) go to "User Preferences" - > "Addons" -> "Install Addon...". And locate a file /opt/cgru/afanasy/plugins/blender/render_afanasy.py

          ¡ª

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

Where is your configs? I no not see them anywhere.

Did you installed afanasy-server linux package?

maxli1 commented 11 years ago

I encosed all configurations in the attachmnts and send them witih issue description by e-mail. If you aren't able to get them, I can send them to your alternative e-mail box.

I am sure I installed Afanasy-server linux package. I also checed service by ps command. The service afserver was running, but no any relative service port are opened. I remember describing my Cgru test enviroment. 192.168.152.6 afserver run ./install_afserver.sh 192.168.152.2 afrender run ./install_afrender.sh 192.168.152.4 afrender run ./install_afrender.sh 192.168.152.7 Cgru_workstation run ./install_cgru.sh

All servers are openstack virtual machines. I just put afserve IP into he config.json files in the each directories and machines. I did a little. But the didn't work well.

Best regards

Dennis Ma

Date: Thu, 17 Jan 2013 01:38:15 -0800 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] OS and enviroment requirments (#48)

Where is your configs? I no not see them anywhere.

Did you installed afanasy-server linux package?

          ¡ª

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

On what email you send attachments? So, you install afanasy-server package, see afserver in processes list, and afserver did not opened 51000 port? What is afserver log?

cat /var/tmp/afanasy/afserver.HOSTNAME.log

May be firewall does not allow it to open a port.

maxli1 commented 11 years ago

I sent configuraton files to this e-mail box (reply@reply.github.com ) for two times before.

I am sorry to not check this log, becasue I am not familiar with Afanasy, I don't know where log is. I checked one log which I forgot where it is. It reported sda error that I mentioned ever before.

I am going to intall them again. Would you tell me how to configure afrender configuration file, afserver confinguration file and cgru configuration file? just give me key points which I need to change and what do those mean? So It helps me to understand them.

Thanks

Dennis Ma

Date: Mon, 21 Jan 2013 00:15:24 -0800 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] OS and enviroment requirments (#48)

On what email you send attachments?

So, you install afanasy-server package, see afserver in processes list, and afserver did not opened 51000 port?

What is afserver log?

cat /var/tmp/afanasy/afserver.HOSTNAME.log

May be firewall does not allow it to open a port.

          ¡ª

          Reply to this email directly or view it on GitHub.
maxli1 commented 11 years ago

So, you install afanasy-server package, see afserver in processes list, and afserver did not opened 51000 port?

yes. I don't know why.

Date: Mon, 21 Jan 2013 00:15:24 -0800 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] OS and enviroment requirments (#48)

On what email you send attachments?

So, you install afanasy-server package, see afserver in processes list, and afserver did not opened 51000 port?

What is afserver log?

cat /var/tmp/afanasy/afserver.HOSTNAME.log

May be firewall does not allow it to open a port.

          ¡ª

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

reply@reply.github.com - where you got such address? You can use an address specified here: http://cgru.info/#contacts.html Or just copy&paste log and config here.

maxli1 commented 11 years ago

Sir,

I opened a issue in the github forum. I got answers by e-mail way. So I think it could be your e-mailbox. Base your hint, I find an e-mailbox (cgruafanasy@gmail.com). Is it right? I would sent attachments to this. Otherwise, I find a issue here too. After I edited config.json, and rebooted server I found ther afsever opened 50000 port and afrender opened 50001. I am sure I didn't change port in the configuration files.

[root@afancy ~]# afserver Compilation date = 'Dec 21 2012 14:41:29' CGRU version = '' Python version = '2.6.6' GCC version = '4.4.6' Config file does not exist: /opt/cgru/config_default.json Config file does not exist: /root/.cgru/config.json AFERROR: AFDB_JobRegister: Database connect failed: could not connect to server: Connection refused Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" and accepting TCP/IP connections on port 5432? System job constructed. Database connection "AFDB_update_task" is not working. Database connection "AFDB_update" is not working. Available addresses: IP = '0.0.0.0' IPv6 = '::' Using IPv6 addresses family. IPv4 connections addresses will be mapped to IPv6. Listening 50000 port...

Best regards

Dennis Date: Mon, 21 Jan 2013 01:21:31 -0800 From: notifications@github.com To: cgru@noreply.github.com CC: maxli988@hotmail.com Subject: Re: [cgru] OS and enviroment requirments (#48)

reply@reply.github.com - where you got such address?

You can use an address specified here: http://cgru.info/#contacts.html

Or just copy&paste log and config here.

          ¡ª

          Reply to this email directly or view it on GitHub.