+ Reply to Thread
Page 2 of 2 FirstFirst 1 2
Results 11 to 14 of 14

Thread: System.Net.Sockets.SocketException: No such host is known

  1. #11
    Join Date
    Sep 2006
    Location
    San Diego
    Posts
    439

    Default

    Check out the following steps too if the above steps don't work:

    http://forums.developer.mindtouch.co...9&postcount=16
    Corey Ganser

  2. #12
    Join Date
    Jul 2007
    Posts
    347

    Default

    corey, thanks for your input.

    Quote Originally Posted by coreyg View Post
    Just encountered an issue like this with a customer. Here are some steps to check:

    check /etc/dekiwiki and make sure that mindtouch.host.conf exists
    Exists.

    Quote Originally Posted by coreyg View Post
    If it does then move on and check /etc/init.d/dekiwiki and see if you find a line like this:
    source /etc/dekiwiki/mindtouch.host.conf
    Deki has to be run as a launch daemon in OS X, that's why there's no init.d script for it. (An identical copy of the same launch daemon runs on an ordinary OS X since weeks. No problem there.)

    Here's the daemon:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    	<dict>
    		<key>Label</key>
    		<string>com.mindtouch.deki</string>
    		<key>ProgramArguments</key>
    		<array>
    			<string>/usr/bin/mono</string>
    			<string>/MindTouchDeki/bin/mindtouch.host.exe</string>
    			<string>apikey</string>
    			<string>xxx</string>
    			<string>script</string>
    			<string>/etc/dekiwiki/mindtouch.deki.startup.xml</string>
    			<string>path-prefix</string>
    			<string>@api</string>
    			<string>http-port</string>
    			<string>8081</string>
    			<string>ip</string>
    			<string>localhost</string>
    			<string>notty</string>
    			<string>connect-limit</string>
    			<string>-5</string>
    		</array>
    		<key>StandardOutPath</key>
    		<string>/var/log/deki-api.log</string>
    		<key>RunAtLoad</key>
    		<true/>
    	</dict>
    </plist>
    Quote Originally Posted by coreyg View Post
    Once that is done type hostname in the console and make sure that whatever comes up has an entry in your /etc/hosts file

    example if the hostname is dekiwiki make sure your /etc/hosts includes:

    127.0.0.1 dekiwiki
    There's an entry and it can be properly resolved.

    Quote Originally Posted by coreyg View Post
    Let me know if this resolves your issue
    Unfortunately that doesn't solve this mono issue.


    As said above, the same configuration runs properly on OS X since weeks now. It's just the server version of OS X where mono doesn't seem to work as expected.


    Steve's workaround helps, though... But I can't tell if it has any side effects as I left the Server version aside (mono seems to be too flaky for production on OS X Server - see this thread's issue) and am using Deki on an ordinary Leopard now. So running on Server is still interesting for the future, of course, but no issue for me at the very moment.

    Steve - any news on the mono front on this issue?

  3. #13

    Default

    Hi,

    I am a fellow OSX user and have come across this problem too.

    The solution is quite simple:
    Define a valid DNS name on the default network card configuration. I think that is the only thing you did not try on your original post.

    On OSX you'd have to:
    1. Open preferences pane
    2. Click on Sharing
    3. Click on the "Edit button" right under "Computer Name"
    4. Enter a valid DNS name (which maps to your ip address on your DNS server) in the Local Host Name field.


    I had this problem on CentOS 5.3 and spent many hours racking my brain. I even re-installed the OS and Deki from scratch with no success until I came across the same error message when installing Oracle 10g on another Linux machine. The only way to get Oracle to work was to edit the hostname in the network preferences. I tried it on the Deki machine just for kicks and it came to life just like that.

    On Centos I used the DNS tab of the Network Configuration GUI utility to enter the proper value in the hostname field

  4. #14
    Join Date
    Jul 2006
    Location
    San Diego, CA
    Posts
    5,450

    Default

    Thanks for sharing the solution to this problem!
    Steve G. Bjorg - Chief Architect
    Did you check the MindTouch FAQ?
    Found a bug? Report it.
    Follow me on Twitter
    Find us on IRC: irc.freenode.net #mindtouch

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts