Forums » Software Installation »
Reduxd cannot find the server_host when it starts
Added by Long Gui about 12 years ago
Hi Anchi,
I tried to setting up redux according to http://emg.nysbc.org/projects/leginon/wiki/Using_Redux_to_serve_images_on_myamiweb
Replies (8)
RE: Reduxd cannot find the server_host when it starts - Added by Long Gui about 12 years ago
I am sorry that I click "submit" by mistake before I finished...
I think the redux and reduxd installation went nicely, and I finished the testing part via using "redux" commond as well as example file and the results are the same as the website.
However, when I wanted to start up the reduxd server via inputing "reduxd" directly, the screen shows
host:0.0.0.0, port: 55213
I tried to change the config.php file both at "/var/www/myamiweb" and "~/myami-trunk/myamiweb" and changed this line:
define('SERVER_HOST',"localhost")
or
define('SERVER_HOST',"172.25.12.23") (This is the IP address of the server.)
But the problem still exists. Is there another config file should I change?
Thanks a lot!
-Long
RE: Reduxd cannot find the server_host when it starts - Added by Jim Pulokas about 12 years ago
Long,
With your experience, I have edited and clarified the documentation.
The message "host:0.0.0.0, port: 55213" is correct, and it just means that reduxd is listening on all interfaces (localhost and network), so your config.php should just say "localhost".
After starting reduxd, try the basic command line redux test. Use the full absolute path for your input filename:
redux --server_host=localhost --filename=/some/path/test.jpg --oformat=PNG > test.pngThen try to view the resulting test.png to make sure it is an image and not an error message.
Then click on "[test dataset]" at the top of your main myamiweb page. This will confirm php is connecting to reduxd if images are displayed.
Then try to view your own Leginon images in imageviewer.php or 3wviewer.php.
Jim
RE: Reduxd cannot find the server_host when it starts - Added by Long Gui about 12 years ago
HI Jim,
Thanks a lot for your reply. Now the [test dataset] could be shown right!
Cheers,
Long
RE: Reduxd cannot find the server_host when it starts - Added by Jian Shi about 11 years ago
Hi,
I have not problem to run this
redux --server_host=localhost --filename=/some/path/test.jpg --oformat=PNG > test.png
but the redux still have not ouput on webtool.
I had another identical system but have no problem to get it working. Confused.
reduxErr.png (63.1 KB) reduxErr.png | |||
config.php (7.26 KB) config.php |
RE: Reduxd cannot find the server_host when it starts - Added by Anchi Cheng about 11 years ago
Jian,
Redux may have been updated since your last installation or the port opened by the redux server is different on your new machine.
The instruction did not include where to find the port information. I've added it in the wiki page now.
RE: Reduxd cannot find the server_host when it starts - Added by Jian Shi about 11 years ago
do you mean change from 55213 to 55123? I change that too, but still not working on one machine, but just fine on the other one. I copy all redux.cfg, httpd.conf, php.ini and config.php over, still not working. Really confused.
RE: Reduxd cannot find the server_host when it starts - Added by Anchi Cheng about 11 years ago
Check redux.log as instructed in the wiki page.
There might be some error message. At minimal, redux server should receive the request string which looks like something like this:
REQUEST: filename=/Users/acheng/test/leginon/13oct15c/rawdata/13oct15c_00013sq_v02_ 00002hl_v01_00001en.mrc&info=1&cache=0&oformat=JSON&frame=0
or
REQUEST: pipeline=standard&filename=/Users/acheng/test/leginon/13oct15c/rawdata/13oct15c_00013sq_v02_00002hl_v01_00001en.mrc&shape=512x512&scaletype=stdev&scalemin=-5 &scalemax=5&oformat=JPEG&overlaycolor=0.35
RE: Reduxd cannot find the server_host when it starts - Added by Jian Shi about 11 years ago
Sorry, my bad. It was due to firewall and SeuLinux again. I had been driven crazy a couple of times by it already. I hope I will remember it forever.