Forum OpenACS Development: Re: Calls to server itself are ok on command line, but hang in /ds/shell
I've just tried to following in ds/shell on openacs.org and everything works as expected:
exec -ignorestderr curl http://openacs.org/The flag "-ignorestderr" is used, since the curl likes to write to stderr.... So, on regular sites, this works fine.
i am wondering, why you have troubles. Are you using nsproxy? What Tcl version are you using?
I have succeded on other instances with simpler configuration. This instance is particular because the server hosts different websites on different hostnames. The request is forwarded to the actual nsd instance by a nginx proxy.
I have used the actual address and port to try calling the server (e.g. 192.168.10.10, the address in the internal subnet). I am puzzled because curl is working from bash using the very same user as nsd.
Specifying -ignorestderr doesn't change the situation for me.
Tcl version is 8.5. I am using ns_proxy on Naviserver 4.99.5
This must be something specific to nsd/nginx in that particular environment, because curl on the very same server works as expected, using exactly the same command in bash as in /ds/shell, except for the "exec" part of course.