Рейтинг темы:
  • 0 Голос(ов) - 0 в среднем
  • 1
  • 2
  • 3
  • 4
  • 5
Ошибки в GameServer
#1
Всем привет, кто может помочь,при запуске GS выходит следующая ошибка.
Код:
==============================================================-[ Boot Manager ]
BootManager: Initializing Logging.
BootManager: Logging Initialized.
BootManager: Creating Boot Folders and Files.
BootManager: All Directories and Files Created!
BootManager: Initializing Configs.
=====================================================-[ Network Configuration ]
Loading: ./config/network/network.properties
Loading: ./config/network/hexid.txt
Loading: ./config/network/security.properties
========================================================-[ Main Configuration ]
Loading: ./config/main/datetime.properties
Loading: ./config/main/item_auction.properties
Loading: ./config/main/gameserver.properties
Loading: ./config/main/respawns.properties
Loading: ./config/main/regeneration.properties
Loading: ./config/main/petitions.properties
Loading: ./config/main/altgame.properties
Loading: ./config/main/custom.properties
Loading: ./config/main/grandboss.properties
Loading: ./config/main/clans.properties
Loading: ./config/main/entities.properties
Loading: ./config/main/communityboard.properties
Loading: ./config/main/nicks.properties
Loading: ./config/main/drops.properties
Loading: ./config/main/enchant.properties
Loading: ./config/main/party.properties
Loading: ./config/main/pcbang.properties
Loading: ./config/main/options.properties
Loading: ./config/main/other_settings.properties
Loading: ./config/main/geodata.properties.
Loading: ./config/main/graciaseeds.properties.
Loading: ./config/main/warehouse.properties
Loading: ./config/main/permissions.properties
Loading: ./config/main/pvp_settings.properties
Loading: ./config/main/rates.properties
Loading: ./config/main/skills.properties
Loading: ./config/main/inventory.properties
Loading: ./config/main/kamaloka.properties
Loading: ./config/main/pvtstores.properties
Loading: ./config/main/manor.properties
Loading: ./config/main/equipment.properties
Loading: ./config/main/grid.properties
Loading: ./config/main/id_factory.properties
Loading: ./config/main/vitality.properties
Loading: ./config/main/fantasyisle.properties.
======================================================-[ Events Configuration ]
Loading: ./config/main/events/seven_signs.properties
Loading: ./config/main/events/castle_siege.properties
Loading: ./config/main/events/olympiad.properties
Loading: ./config/main/events/lottery.properties
Loading: ./config/main/events/fortsiege.properties
Loading: ./config/main/events/territorywar.properties
========================================================-[ Chat Configuration ]
Loading: ./config/chat/irc.properties
Loading: ./config/chat/chat.properties
=====================================================-[ Filters Configuration ]
Loading: ./config/filters/chat_filter.properties
==============================================-[ Administration Configuration ]
Loading: ./config/administration/gm_access.properties
Loading: ./config/administration/elayne.properties
===================================================-[ Developer Configuration ]
Loading: ./config/administration/developer.properties
========================================================-[ Mods Configuration ]
Loading: ./config/mods/banking.properties
Loading: ./config/mods/champion_mobs.properties
Loading: ./config/mods/jail.properties
Loading: ./config/mods/announcer.properties
Loading: ./config/mods/level_changer.properties
Loading: ./config/mods/craftmanager.properties
Loading: ./config/mods/wedding.properties
Loading: ./config/mods/fun_events.properties
Loading: ./config/mods/classmaster.properties
Loading: ./config/mods/enterprise.properties
Loading: ./config/network/floodprotector.properties
=================================================-[ Versionning Configuration ]
Loading: ./config/versionning/datapack-version.properties
Loading: ./config/versionning/build-time.properties.
Loading: ./config/versionning/build-version.properties.
==============================================================-[ Boot Manager ]
BootManager: Config Sucessffully Loaded.
BootManager: Preparations Done. Staring GameServer!
==============================================================-[ Preparations ]
==================================================================-[ Database ]
Exception in thread "main" com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.Util.getInstance(Util.java:386)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1014)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919)
    at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2314)
    at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2235)
    at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:813)
    at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:399)
    at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:334)
    at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:443)
    at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:141)
    at com.mysql.jdbc.jdbc2.optional.MysqlDataSource.getConnection(MysqlDataSource.java:111)
    at com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource.getPooledConnection(MysqlConnectionPoolDataSource.java:62)
    at org.dbpool.MiniConnectionPoolManager.getConnection3(MiniConnectionPoolManager.java:197)
    at org.dbpool.MiniConnectionPoolManager.getConnection2(MiniConnectionPoolManager.java:175)
    at org.dbpool.MiniConnectionPoolManager.getConnection(MiniConnectionPoolManager.java:152)
    at net.l2emuproject.L2DatabaseFactory.initDb(L2DatabaseFactory.java:124)
    at net.l2emuproject.L2DatabaseFactory.<init>(L2DatabaseFactory.java:54)
    at net.l2emuproject.L2DatabaseFactory.getInstance(L2DatabaseFactory.java:98)
    at net.l2emuproject.gameserver.L2GameServer.<init>(L2GameServer.java:192)
    at net.l2emuproject.gameserver.util.BootManager.<init>(BootManager.java:70)
    at net.l2emuproject.gameserver.util.BootManager.main(BootManager.java:42)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1117)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:350)
    at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2408)
    at com.mysql.jdbc.ConnectionImpl.connectWithRetries(ConnectionImpl.java:2253)
    ... 23 more
Caused by: java.net.ConnectException: Connection refused
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    at java.net.Socket.connect(Socket.java:579)
    at java.net.Socket.connect(Socket.java:528)
    at java.net.Socket.<init>(Socket.java:425)
    at java.net.Socket.<init>(Socket.java:241)
    at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:259)
    at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
    ... 25 more
Дело в том что все в базе норм, т.к. у меня на Windows запускается без проблем, потом перемещаю базу (копирую) на Linux, выходит эта ошибка.
Вот конфиг GS
Код:
# ==================    #==================#
# L2Emu Project Pack    # Network Settings #
# ==================    #==================#

# ------------------
# Here you can Setup:
# ------------------
# - General network Connection
# - Telnet
# - Database Connection
# - HTML cache

# ------------------------------------------------------------------------------------------------- #
# Usually you have to change the ExternalHostname option to                                         #
# - 127.0.0.1 (if you want to play alone / testing purpose)                                         #
# - LAN IP* (if you want to play from another computer in the network)                              #
# - WAN IP** (if you want to play with friends over internet)                                       #
# - Support => http://l2emu-enterprise.net                                                          #
# - If you want to get your LAN IP, simply choose "Start" => "Run..." then type "cmd" => "ipconfig" #
# - If you want to get you WAN IP, visit http://www.whatismyip.com  or http://www.showip.com        #
# ------------------------------------------------------------------------------------------------- #

# ---------------------------------
# Section: Network Connection Setup
# ---------------------------------
# Bind ip of the gameserver, use 0.0.0.0 to bind on all available IPs
# This is The IP/Port Gameserver will Assume and Use.
# ИП и порт на который биндится гейм
GameServerHostName = 0.0.0.0
GameServerPort = 7777

# this is the Loginserver host and port that this gameserver will try to connect to.
# Порт логина, для коннекта гейма
LoginPort = 9014
LoginHost = 31.135.208.98

# This is transmitted to the clients connecting from an external network,
# so it has to be a public IP or resolvable hostname.
# Основной внешний ИП
ExternalHostname = 31.135.208.98

# This is transmitted to the client from the same network,
# so it has to be a local IP or resolvable hostname
# Основной внутренний ИП
InternalHostname = 31.135.208.98

# ------------------------------------
# Section: Subnets & Advanced  Routing
# ------------------------------------
# Define optional networks and router IPs
#
# Format:
#
# Subnet = host, net/mask; host, net/mask, net/mask
#
#          host - IP address (200.100.200.100) or
#                 fully qualified domain name (example.org)
#
#          net/mask - mask 192.168.0.0/16 or 192.168.0.0/255.255.0.0
#                     would be 192.168.*.*
#
# External - external hostname, you defined in server.properties
# Internal - internal hostname, you defined in server.properties
#
# Example:
# Subnet = 169.254.1.100, 169.254.0.0/16, 111.222.333.0/255.255.255.0
# Настройки подсетей
InternalNetworks =
OptionalNetworks =

Subnet = Internal, 127.0.0.1/32, 192.168.0.0/16, 10.0.0.0/8, 172.16.0.0/12
Subnet = External, 0.0.0.0/0

# ---------------
# Section: Telnet
# ---------------
# Enables /Disables Telnet Server.
# Включить телнет
EnableTelnet = false

# This is the port telnet server will bind to
# Порт телнета
# default 23, telnet port.
StatusPort = 23

# If the following is not set, a random password is generated on server startup.
# Пароль для соединение по телнету
# default l2emuproject, fell free to change it.
StatusPW = l2emuentproject

# Use alternative telnet, requiring to do a real login with a GM so your GM-name can be used for messaged instead of "telnet".
# Альтернативный логин телнета, каждый ГМ использует свой игровой логин и пароль
AltTelnet = true

# if a password is not set, telnet server will generate a random one, so you define the size of it.
# Размер пароля при генерации, если пустой
TelnetPasswordLength = 10

# Hosts must be resolvable to an IP.
# define here the IPs allowed to connect to your server via Telnet.
# The format is as follows:
# ListOfHosts = 0.0.0.0,host,0.0.0.1,host2,host3,host4,0.0.0.3
# NOTE: Make sure there are no spaces between hosts/ips !
# Имена ИП
ListOfHosts = 127.0.0.1,localhost

# ----------------------------
# Section: Database Connection
# ----------------------------
# Хост базы данных
DatabaseHost = 31.135.208.98

# Порт базы данных
DatabasePort = 3306

# Имя базы данных
DatabaseName = l2emudb

# your database login (by default MySQL uses = root, Warning: Not a Safe Setting! try to use your own login)
# Логин для БД
Login = l2

# your database password (by default MySQL uses = root, Warning: Not a Safe Setting! try to use your own pass)
# Пароль для БД
Password = 123

# define here how many connections are allowed at the same time.
# Максимальное кол-во коннектов в сереверу БД
MaximumDbConnections = 50

# Validate all connection before use
# is slowed then not vallidate
# Проверять, прошло ли соединение к БД
# Default false
DatabaseValidateConnection = false

# -------------------
# Section: HTML Cache
# -------------------
# Set the html cache's lazy loading true or false
# (Load html's into cache only on first time requested)
# Кеш ХТМЛ
LazyCache = true

P.S. Все настройки идентичны (за исключение логина и пароля) конфига с Windows.
Ответ
#2
http://stackoverflow.com/a/10772407

Я, конечно, могу перевести, что там написано, но..
Ответ


Возможно похожие темы ...
Тема Автор Ответы Просмотры Последний пост
  Ошибки при исправлении через Diff sullen.nv 1 1,391 06-18-2018, 03:06 PM
Последний пост: 4ipolino
  Консоль GameServer на Ubuntu a6y 4 2,153 10-19-2017, 01:25 AM
Последний пост: a6y
  Ошибки ЛС иГС Гп2 1553 Ему TFH 2 1,592 08-08-2017, 08:26 PM
Последний пост: TFH
  Ошибки при создании персонажа Zanoza 4 2,531 07-01-2016, 04:58 PM
Последний пост: Zanoza
  Проблемы с Гео при запуске GameServer Scream 17 4,446 04-04-2016, 08:19 AM
Последний пост: HiredKiller
  Ошибки при запуске сервера L2C4 smurfik 11 3,956 01-19-2016, 02:12 PM
Последний пост: smurfik
  Ошибки виртуальной машины SoniPro 0 1,465 08-20-2015, 11:47 AM
Последний пост: SoniPro
  Установка сервера High Five, ошибка GameServer MalPorro 8 2,628 07-16-2014, 06:22 PM
Последний пост: MalPorro
  Проблема GameServer hexOr 11 2,601 06-28-2014, 09:16 PM
Последний пост: desolator
  Ошибки при компиляции исходников Lindvior sullen.nv 6 3,287 01-22-2014, 10:20 PM
Последний пост: WoWan-SM

Перейти к форуму:


Пользователи, просматривающие эту тему: 1 Гость(ей)