Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

Reply
 
Thread Tools Display Modes
  #1  
Old 07-07-2015, 05:53 PM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 87
Default Debian 8.x SSH issue

I committed a linux sin and ran an update without paying attention. I can now not get MySQL Workbench or any other database tool to connect to the server and I'm convinced it's SSH-related. I'm getting the following errors when I go to connect. I'm positive something in the upgrade changed how it works. I was on Debian 7.x prior.

Quote:
Authentication error, unhandled exception caught in tunnel manager, please refer to logs for details
Followed by.

Quote:
Failed to Connect to MySQL at 127.0.0.1:3306 through SSH tunnel at xxx.xxx.xxx.xxx:22 with user root
The server is still up (Loremaster), and players are on it. I just can't get to the DB.
Reply With Quote
  #2  
Old 07-07-2015, 06:09 PM
demonstar55
Demi-God
 
Join Date: Apr 2008
Location: MA
Posts: 1,165
Default

With the "user root" part is that referring to the MySQL user or SSH user? It's possible SSH has logging in as root disabled by default.
Reply With Quote
  #3  
Old 07-07-2015, 07:25 PM
jpyou127's Avatar
jpyou127
Discordant
 
Join Date: Nov 2005
Posts: 270
Default

Rerun the mysql command to allow root permission for 127.0.0.1?
Reply With Quote
  #4  
Old 07-11-2015, 12:31 AM
Shin Noir's Avatar
Shin Noir
Legendary Member
 
Join Date: Apr 2002
Location: Seattle, WA
Posts: 502
Default

You also may want to look at.. logs like it notes?
__________________

~Shin Noir
DungeonEQ.com
Reply With Quote
  #5  
Old 07-11-2015, 01:09 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

I installed the newest Debian at work yesterday. For me to log in as root via SSH, you had to edit the ini file. You could log in as a different user and then su to root.

http://linuxconfig.org/enable-ssh-ro...n-linux-server
Reply With Quote
  #6  
Old 07-14-2015, 07:23 AM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 87
Default

Quote:
Originally Posted by provocating View Post
I installed the newest Debian at work yesterday. For me to log in as root via SSH, you had to edit the ini file. You could log in as a different user and then su to root.

http://linuxconfig.org/enable-ssh-ro...n-linux-server
Thanks. I'll check this out.
Reply With Quote
  #7  
Old 07-14-2015, 07:47 AM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 87
Default

What am I doing wrong now? I can get to the mysql CLI via the server, but no access via workbench.

Reply With Quote
  #8  
Old 07-14-2015, 09:01 AM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

It says through SSH tunnel, is SSH running and can you SSH to localhost?
Reply With Quote
  #9  
Old 07-14-2015, 09:03 AM
image
Demi-God
 
Join Date: Jan 2002
Posts: 1,290
Default

OS error code 61: No data available

you need to make sure mysql is even running (are you accessing it locally or remotely from this app, need to check what IP is appropriate and the port).. we can't connect to it.
__________________
www.eq2emu.com
EQ2Emu Developer
Former EQEMu Developer / GuildWars / Zek Seasons Servers
Member of the "I hate devn00b" club.
Reply With Quote
  #10  
Old 07-14-2015, 09:09 AM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 87
Default

Yes, SSH is running. It's how I normally connect via terminal to my server. That's why it's frustrating to me. My server is a VPS, so I am connecting remotely.
Reply With Quote
  #11  
Old 07-14-2015, 09:54 AM
N0ctrnl's Avatar
N0ctrnl
Discordant
 
Join Date: Jan 2007
Posts: 443
Default

A dumb question, but you're not trying to connect to 127.0.0.1 from your local machine without a tunnel or anything else setup, are you? 127.0.0.1 is localhost (loopback device), so unless you already have a tunnel forwarding port 3306 on your local box to 3306 on the remote, that's not going to work.
Reply With Quote
  #12  
Old 07-14-2015, 10:00 AM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 87
Default

No, the image I provided above purposely has my server (SSH) information covered up. The localhost is relative to the SSH host, which is the same server, albeit on port 3306 for MySQL. After provocating's suggestion, I can now get MySQL Workbench to connect to the server via SSH, but now the error pertaining to MySQL is my roadblock.

Edit to add: ls /etc/init.d shows that mysql is running.

Edit #2: nmap shows 3306 open as well on localhost.

Quote:
Starting Nmap 6.47 ( http://nmap.org ) at 2015-07-14 10:09 EDT
Nmap scan report for localhost (127.0.0.1)
Host is up (0.000077s latency).
PORT STATE SERVICE
3306/tcp open mysql
Reply With Quote
  #13  
Old 07-14-2015, 09:45 PM
provocating's Avatar
provocating
Demi-God
 
Join Date: Nov 2007
Posts: 2,175
Default

Use HeidiSQL from another computer, just for kicks. Also, did you give root access to log in to the server remotely? If you are trying to connect to that server remotely via root, that is a security risk and normally has to be changed.
Reply With Quote
  #14  
Old 07-15-2015, 08:57 AM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 87
Default

Quote:
Originally Posted by provocating View Post
Use HeidiSQL from another computer, just for kicks. Also, did you give root access to log in to the server remotely? If you are trying to connect to that server remotely via root, that is a security risk and normally has to be changed.
For now I am, until I can get this resolved. It won't be that way shortly. I appreciate the assistance. I'll try Heidi from my PC.
Reply With Quote
  #15  
Old 07-15-2015, 10:37 AM
Rikon's Avatar
Rikon
Sarnak
 
Join Date: May 2010
Location: US
Posts: 87
Default

Quote:
Originally Posted by provocating View Post
Use HeidiSQL from another computer, just for kicks. Also, did you give root access to log in to the server remotely? If you are trying to connect to that server remotely via root, that is a security risk and normally has to be changed.
Wow, works flawlessly with HeidiSQL. No idea why. I guess I'll be using this from here on out.

I really appreciate everyone who chimed. I was pulling my hair out!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:43 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3