1. These forums are still being retired! Please use GitHub discussions or Discord. You cannot create new threads or new accounts now. If you need to contact some user of the forums, you should do it sooner, rather than later. This notice was last updated on May 30th, 2021.

Connecting stuck on "Found Server"

Discussion in 'Help and Support' started by Tamanor, Jan 4, 2016.

  1. Tamanor

    Tamanor Level 1

    Joined:
    Jan 4, 2016
    Messages:
    5
    Hi so me and a few friends started playing Terraria a few days ago and was using the the built in server to play with each other. But i decided i would make a dedicated server so that the server would always be online for any of us to play when ever we want.

    So the server started up all fine and Ok but when i tryed to connect to the server it says it found server but it does not move from this screen

    [​IMG] [​IMG]

    I have opened port 7777 on the server computer i have also tried restarting the server as well as i read on the forums to try that but it still gets stuck on the found server.
     
  2. Tamanor

    Tamanor Level 1

    Joined:
    Jan 4, 2016
    Messages:
    5
    Well after having no luck i decided to reinstall Debian over my MineOS which i had the terraria server on but now i get this error when i try to start the server now
    Code:
    [Server API] Error Startup aborted due to an exception in the Server API initialization:
    System.InvalidOperationException: Failed to load assembly "MySql.Data.dll". ---> System.Reflection.ReflectionTypeLoadException: The classes in
    the module cannot be loaded.
      at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (System.Reflection.Assembly,bool)
      at System.Reflection.Assembly.GetExportedTypes () <0x7f2b94d40010 + 0x00019> in <filename unknown>:0
      at TerrariaApi.Server.ServerApi.LoadPlugins () <0x41c92b80 + 0x004fb> in <filename unknown>:0
      --- End of inner exception stack trace ---
      at TerrariaApi.Server.ServerApi.LoadPlugins () <0x41c92b80 + 0x00a87> in <filename unknown>:0
      at TerrariaApi.Server.ServerApi.Initialize (System.String[] commandLineArgs, Terraria.Main game) <0x41c91000 + 0x0034b> in <filename unknown
    >:0
      at Terraria.ProgramServer.InnerStart (System.String[] args) <0x41c51f80 + 0x0014b> in <filename unknown>:0
    
    Tshock 4.3.12
    Debian 8
    Mono JIT compiler version 4.2.1
    java version 1.8.0_66

    I have also tried restarting the server
     
  3. Tamanor

    Tamanor Level 1

    Joined:
    Jan 4, 2016
    Messages:
    5
    After Searching the internet far and wide I fixed the error i was getting :D I was missing some packages had to use

    Code:
    echo "deb http://download.mono-project.com/repo/debian wheezy-libjpeg62-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
    then after that i rerun this command

    Code:
    sudo apt-get install unzip mono-runtime libmono-system-core4.0-cil libmono-sqlite4.0-cil libmysql-cil-dev libmono-system-runtime-serialization4.0-cil libmono-web4.0-cil libmono-system-xml-linq4.0-cil
    then i i tried to run the server again and it worked :D. Well it is creating the world now so not sure yet if i can join it

    Edit: Now im back to being stuck on the found server :(

    Edit 2: Also just noticed that when i join the server and get onto the found server part I can no longer type in the command window just see a flashing _ icon but i cannot type anything
     
    #3 Tamanor, Jan 5, 2016
    Last edited: Jan 5, 2016
  4. aNaturalCause

    aNaturalCause Level 0

    Joined:
    Jan 5, 2016
    Messages:
    1
    I am also having the same issue -
    mono v. 4.2.1
    Ubuntu 14.04.3 LTS
    TShock v. 4.3.12

    I am also getting this as well.

    StatTracker Exception: System.Net.WebException: The request timed out
    at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x422cdc20 + 0x0018b> in <filename unknown>:0
    at System.Net.HttpWebRequest.GetResponse () <0x422c85f0 + 0x0004d> in <filename unknown>:0
    at TShockAPI.Utils.GetResponseNoException (System.Net.HttpWebRequest req) <0x422c8380 + 0x0004a> in <filename unknown>:0
    UpdateManager Exception: System.Net.WebException: The request timed out
    at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x422cdc20 + 0x0018b> in <filename unknown>:0
    at System.Net.HttpWebRequest.GetResponse () <0x422c85f0 + 0x0004d> in <filename unknown>:0
    at TShockAPI.Utils.GetResponseNoException (System.Net.HttpWebRequest req) <0x422c8380 + 0x0004a> in <filename unknown>:0
     
  5. Tamanor

    Tamanor Level 1

    Joined:
    Jan 4, 2016
    Messages:
    5

    Yeah I have tried everything i can think off i have reinstalled Debian 3 times and i still get the same results I just tried setting up a vanilla server and when it creates the world i get this error

    Code:
    Server crash: 05/01/2016 22:06:39
    System.TypeInitializationException: The type initializer for 'Newtonsoft.Json.Utilities.JavaScriptUtils' threw an exception. ---> System.TypeL
    oadException: Could not load type 'System.Collections.HashPrimeNumbers' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyTo
    ken=b77a5c561934e089'.
      at System.Collections.Generic.HashSet`1[T].Add (System.Collections.Generic.T item) <0x40c28a20 + 0x0007f> in <filename unknown>:0
      at System.Linq.Enumerable+<CreateUnionIterator>c__Iterator1C`1[TSource].MoveNext () <0x40c27ca0 + 0x001cf> in <filename unknown>:0
      at Newtonsoft.Json.Utilities.JavaScriptUtils..cctor () <0x40c27020 + 0x0027c> in <filename unknown>:0
      --- End of inner exception stack trace ---
      at Newtonsoft.Json.JsonTextWriter.UpdateCharEscapeFlags () <0x40c26f40 + 0x0001b> in <filename unknown>:0
      at Newtonsoft.Json.JsonTextWriter..ctor (System.IO.TextWriter textWriter) <0x40c24d00 + 0x0007f> in <filename unknown>:0
      at Newtonsoft.Json.JsonConvert.SerializeObjectInternal (System.Object value, System.Type type, Newtonsoft.Json.JsonSerializer jsonSerializer
    ) <0x40c24af0 + 0x000c7> in <filename unknown>:0
      at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Formatting formatting, Newtonsoft.Json.JsonSerializer
    Settings settings) <0x40c23670 + 0x0004b> in <filename unknown>:0
      at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings)
    <0x40c23630 + 0x00023> in <filename unknown>:0
      at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Formatting formatting) <0x40c23570 + 0x00013> in <filename unknown>:0
      at Terraria.IO.FavoritesFile.Save () <0x40c234f0 + 0x00033> in <filename unknown>:0
      at Terraria.IO.FavoritesFile.SaveFavorite (Terraria.IO.FileData fileData) <0x407f73d0 + 0x000f3> in <filename unknown>:0
      at Terraria.IO.FileData.SetFavorite (Boolean favorite, Boolean saveChanges) <0x407f7360 + 0x0004f> in <filename unknown>:0
      at Terraria.IO.WorldFile.CreateMetadata (System.String name, Boolean cloudSave, Boolean isExpertMode) <0x407f5ca0 + 0x0013f> in <filename un
    known>:0
      at Terraria.Main.DedServ () <0x40686000 + 0x010b7> in <filename unknown>:0
      at Terraria.Program.LaunchGame (System.String[] args) <0x40648a30 + 0x00117> in <filename unknown>:0
    
    Please send crashlog.txt to [email protected]
    [email protected]:~/terravan$ 
    
     
  6. Tamanor

    Tamanor Level 1

    Joined:
    Jan 4, 2016
    Messages:
    5

    Hi Good news i got my server working but bad on a different OS
    After trying reinstalling Debian like 4 times and following the instructions on the internet i gave up on it ^^ then after that i also tryed Ubuntu which also failed "UBUNTU you have failed this server" now what i did do and it worked 1st time :D was this

    I decided to try FreeBSD https://www.freebsd.org/where.html

    After If you choose to install this OS you have to login as Root after that do the following Commands

    Code:
    pkg install nano
    I only installed nano in case i needed to edit anything so you could probably skip that one but i'm going to write everything i did

    Then after you have done that i did the following commands

    Code:
    cd /usr/ports/lang/mono
    make install clean
    Follow the screens I just pressed enter on every screen that showed up not changing anything while it was installing. after that is finished installing you then have to run this command

    Code:
    pkg install sqlite3
    Because tshock needs splite3 to run

    After this i used a program called WinSCP to connect to my server so i could transfer the Tshock server files on there
    https://winscp.net/eng/download.php you can get it from there i just made a folder in my user on the server in my case it was tamanor and i called it tshock and then i put all of the tshock server files into that folder

    after this i used the following commands to start the server

    Code:
    cd tshock
    mono TerrariaServer.exe
    then after this the server started up as it should i then made a small world just to test and tried connecting and i got in game first time:D

    also you might want to install screen as well with

    Code:
    pkg install screen
    Sorry if this guide is hard to under stand never really made a guide online before ^^ not even sure if you still have the problems but i thought i would make a reply in case. if you run into any problems with the install just PM me and ill try to help to the best of my ability I'm kind of a noob when it comes to Linux

    also if you do decide to install FreeBSD make sure when you get to the part on the install when it asks about auto detect IPV4 you pick yes and then yes again you can say no on the IPV6 I said no on he IPV4 and i had no internet then it finished XD

    Source from internet i to get it working

    How to install FreeBSD I watched it to about 3:30 all you need

    Some of the commands to install some of the packages http://blag.gaidal.com/terraria-server-on-freebsd-client-in-winehq/

    I hope you get it working
     
  7. Purplemen101

    Purplemen101 Level 1

    Joined:
    Dec 25, 2015
    Messages:
    13
    Same error code EXCEPT I do not have lines 1-4, just 5-8. I wish we could get some administrator input. I've tried connecting using localhost but even that won't work. This is clearly a MAC/Ubuntu/Not-windows issue. What really confuses me is that it worked fine, I restarted the server, and it suddenly broke. I hadn't reinstalled TShock or even restarted my computer or internet.
     
  8. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
    • Ensure there's no firewall blocking connections
    • Verify that your chosen port(s) are open (there should be internet tools for this)
    • If you are using less than 2GB of RAM, you'll likely encounter issues
    • That StatTracker Exception should not affect the server, but it does seem to indicate that your server is unable to establish a connection to our stat tracker. Ensure you can connect to the internet via your server. Try pinging stats.tshock.co to see if your server can reach the stats server
    • Make sure you are using mono 4.x

    I have an Ubuntu VM that I've run a local server on a few times and haven't had any issues. If none of this solves anything then I'm not sure what your issue is. Verify all internet connection settings and make sure traffic is allowed to pass both ways through your external IP on the port you opened
     
  9. Purplemen101

    Purplemen101 Level 1

    Joined:
    Dec 25, 2015
    Messages:
    13
    1. √ (https://gyazo.com/f537d983fde8d1218f1f08167e1611e7)
    2. √ (https://www.canyouseeme.org [https://gyazo.com/1f076b4179d8d0d2af2db22aad6870df] I have also tried connecting to localhost so it should not be a problem with my internet)
    3. ? I have 16 gigs of ram, but I have no idea how many I'm dedicating to the server.
    4. X (https://gyazo.com/d60adbbe1f9e92d9832a85d1c22d0bfb)
    5. √ (https://gyazo.com/80893498be495317068aa27be8100fb3)
     
  10. Wight

    Wight Administrator
    TShock Admin TShock Mod Plugin Developer Zero Day Plugin Author

    Joined:
    May 20, 2012
    Messages:
    1,598
  11. Purplemen101

    Purplemen101 Level 1

    Joined:
    Dec 25, 2015
    Messages:
    13
    *cough* Ahh... *cough* Anyways, cantaloupeity aside, it works. Any idea on the server not connecting but my browser being able to do so? I don't want to point fingers, but I really think this is a TShock error with non-windows because of the fact that I can't even join localhost. There's a chance that it could be my computer, but I've disabled the firewall..
     
  12. LostCharacter

    LostCharacter Level 0

    Joined:
    Jan 11, 2016
    Messages:
    4
    I'm running into the same issue. tshock boots up fine (mostly, though sometimes I can't type anything in the console or ctrl-c it or anything), but when trying to connect from the client, it gets stuck on "Found server". The console does output that a machine has connected.

    Edit: I've run tshock on this same server previously with no problems. TShock v4.2.4.128, Terraria Server v1.2.4.1

    I tried to give as much info as I can below. I hope it helps, but let me know if I can provide anything more.

    Terraria v1.3.0.8
    tshock v4.3.12
    Ubuntu 12.04
    mono 4.2.1

    Server info:
    [​IMG]

    Starting Tshock:
    [​IMG]
    This is intermittent. Sometimes I can type, but usually, I can't. And sometimes I can for a bit and then stops responding to input (although it still updates when a machine connects).

    The gist of the log (there is nothing more than this repeated over and over:
    [01/12/16 09:27:21] [Server API] Verbose: TerrariaApi - Server v1.22.0.0 started.
    [01/12/16 09:27:21] [Server API] Verbose: Command line: /home/casey/tshock/TerrariaServer.exe
    [01/12/16 09:27:21] [Server API] Verbose: OS: Unix 4.1.5.86 (64bit: True)
    [01/12/16 09:27:21] [Server API] Verbose: Mono: True


    When running wireshark on the client, there's an exchange of exactly 6 packets between the client and server every time. Let me know if you need more detailed info of any of these packets or would like me to send the capture directly to you.
    [​IMG]

    tcpdump on server. again, let me know if you want the whole capture and I can send it directly to you.
    [​IMG]
     
    • Useful Useful x 1
    #12 LostCharacter, Jan 12, 2016
    Last edited: Jan 12, 2016
  13. Xentrox

    Xentrox Level 0

    Joined:
    Jan 12, 2016
    Messages:
    1
    I've been getting this Error, I can see my PC trying to connect to the server afterwards, with a "found server" message, and no further progress, im running Ubuntu 15.04:

    "
    UpdateManager Exception: System.Net.WebException: The request timed out
    at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) <0x417a10e0 + 0x0018f> in <filename unknown>:0
    at System.Net.HttpWebRequest.GetResponse () <0x4179b980 + 0x00053> in <filename unknown>:0
    at TShockAPI.Utils.GetResponseNoException (System.Net.HttpWebRequest req) <0x4179b6f0 + 0x0004e> in <filename unknown>:0
    "
     
  14. Wolfje

    TShock Admin TShock Mod Zero Day Plugin Author

    Joined:
    Jul 2, 2013
    Messages:
    191
    Hi,

    Thanks for the information. This is the most detail that I have ever had on this problem. The first 4 packets (SYN/ACK) is the TCP handshake and has no content. The last packet is a RST which tells us the server has forcibly closed the connection.

    PSH|ACK has a content of 15 bytes, which leads me to think that it is the first connection packet. I'm willing to bet that this packet has the content
    * 0x01 0x00 0x12 TerrariaXXX
    where XXX is the protocol version. This is 15 bytes in length which matches up with your trace, which tells me the server is closing your connection before anything takes place, just have to find out why.
     
  15. LostCharacter

    LostCharacter Level 0

    Joined:
    Jan 11, 2016
    Messages:
    4
    Hey Wolfje, thanks for the feedback. I did neglect to mention that the RST packet came in after a few minutes of sitting idle. So, it wasn't happening immediately after the previous packet. Dunno if that helps at all, but I figure every bit helps.
     
  16. LostCharacter

    LostCharacter Level 0

    Joined:
    Jan 11, 2016
    Messages:
    4
    I think I have a fix.

    I reverted back to an older version of Mono (4.0.5.1), and it appears to be working now. I'm not sure what the root cause is, and I'm also going to try to find the newest version of Mono that works, but at least it's running now. I still have yet to see if playing for a while with the older version of mono causes any issues.

    If you had the same problem as me, are running Ubuntu/Debian, and would like to revert back to an older version of mono, do this:
    sudo apt-get remove mono-complete
    sudo apt-get remove libmono-*
    sudo nano /etc/apt/sources.list.d/mono-xamarin.list

    Change the file contents to this:
    deb http://download.mono-project.com/repo/debian wheezy/snapshots/4.0.5.1/. main
    deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main

    CTRL+O (saves)
    CTRL+X (closes nano)

    sudo apt-get update
    sudo apt-get install mono-complete

    Now try running the server.

    Hope that helps! Feel free to post here or PM me if you have an issue.
     
    • Informative Informative x 1
    • Useful Useful x 1
  17. serrukh

    serrukh Level 0

    Joined:
    Jan 14, 2016
    Messages:
    3
    Thank you for your help, problem solved.
     
  18. LostCharacter

    LostCharacter Level 0

    Joined:
    Jan 11, 2016
    Messages:
    4
    Glad I could help, Serrukh.

    A note - it looks like 4.0.5.1 is the latest version of Mono that will work. According to Wolfje in the Slack chat, the core issue is that Mono v4.2.0 dropped support for the Boehm library that Tshock relies on.

    Reverting to an older version of Mono will also fix the issue some people have where the tshock console does not respond to input.
     
  19. Wolfje

    TShock Admin TShock Mod Zero Day Plugin Author

    Joined:
    Jul 2, 2013
    Messages:
    191
    To all, that don't have the option of downgrading mono, please use the latest Bamboo BETA build featured here and let me know your results. This should work on most versions of mono.

    Cheers
     
  20. HansC

    HansC Level 0

    Joined:
    Jan 17, 2016
    Messages:
    3
    I'm still stuck with build 583.

    Code:
    Mono JIT compiler version 4.2.1 (Debian 4.2.1.102+dfsg2-5)
    Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. [URL='http://www.mono-project.com']www.mono-project.com[/URL]
            TLS:           __thread
            SIGSEGV:       altstack
            Notifications: epoll
            Architecture:  amd64
            Disabled:      none
            Misc:          softdebug
            LLVM:          supported, not enabled.
            GC:            sgen