Marquis 4 Опубликовано 23 марта, 2015 (изменено) Всем привет. Сервер запустил, работает и геим сервер и логин сервер. Столкнулся с проблемой при создании аккаунтов root@licensepashk:/home/login# ./account_manager.sh =================================================-[ LoginServer Configuration ] Loading: ./config/main/network.properties. Loading: ./config/main/security.properties. Loading: ./config/main/ban.properties. Loading: ./config/main/loginserver.properties. =================================================-[ LoginServer DataBase Load ] [INFO 2015-03-23 16:03:05]: L2DatabaseFactory: Connected to database server [INFO 2015-03-23 16:03:05]: LoginManager initiating [INFO 2015-03-23 16:03:07]: Cached 10 KeyPairs for RSA communication [INFO 2015-03-23 16:03:07]: Stored 20 keys for Blowfish communication Please choose an option: 1 - Create new account or update existing one (change pass and access level). 2 - Change access level. 3 - Delete existing account. 4 - List accounts & access levels. 5 - Exit. Your choice: 1 Username: marquis Password: 123456 Access level: 127 [WARN 2015-03-23 16:03:32]: LoginManager: Unable to retrive account com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 26,008 milliseconds ago. The last packet sent successfully to the server was 8 milliseconds ago. 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:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1119) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3057) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2943) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3486) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2693) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2102) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2261) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) at ru.catssoftware.loginserver.manager.LoginManager.getAccount(LoginManager.java:413) at ru.catssoftware.loginserver.manager.LoginManager.addOrUpdateAccount(LoginManager.java:669) at ru.catssoftware.accountmanager.AccountManager.displayMenu(AccountManager.java:105) at ru.catssoftware.accountmanager.AccountManager.main(AccountManager.java:71) Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2502) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2954) ... 13 more [ERROR 2015-03-23 16:03:32]: LoginManager: Unable to modify account com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed by the driver. 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:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1012) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:986) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:981) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1201) at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1188) at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4273) at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4239) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313) at ru.catssoftware.loginserver.manager.LoginManager.addOrUpdateAccount(LoginManager.java:602) at ru.catssoftware.loginserver.manager.LoginManager.addOrUpdateAccount(LoginManager.java:691) at ru.catssoftware.accountmanager.AccountManager.displayMenu(AccountManager.java:105) at ru.catssoftware.accountmanager.AccountManager.main(AccountManager.java:71) Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 26,008 milliseconds ago. The last packet sent successfully to the server was 8 milliseconds ago. 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:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1119) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3057) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2943) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3486) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2693) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2102) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2261) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) at ru.catssoftware.loginserver.manager.LoginManager.getAccount(LoginManager.java:413) at ru.catssoftware.loginserver.manager.LoginManager.addOrUpdateAccount(LoginManager.java:669) ... 2 more Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2502) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2954) ... 13 more Please choose an option: 1 - Create new account or update existing one (change pass and access level). 2 - Change access level. 3 - Delete existing account. 4 - List accounts & access levels. 5 - Exit. Your choice: При включении авторег. Вот что выдает мне stdout.log [INFO 2015-03-23 16:08:21]: Address 188.244.154.4 banned [FATAL 2015-03-23 16:08:29]: Could not load allowedIp: com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed by the driver. at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source) 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:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1012) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:986) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:981) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1201) at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1188) at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4273) at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4239) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313) at ru.catssoftware.loginserver.manager.LoginManager.getAllowedIP(LoginManager.java:634) at ru.catssoftware.loginserver.manager.LoginManager.tryAuthLogin(LoginManager.java:243) at ru.catssoftware.loginserver.clientpackets.RequestAuthLogin.run(RequestAuthLogin.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 120,010 milliseconds ago. The last packet sent successfully to the server was 9 milliseconds ago. 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:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1119) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3057) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2943) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3486) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2693) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2102) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2261) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) at ru.catssoftware.loginserver.manager.LoginManager$ConnectionCheck.run(LoginManager.java:89) Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2502) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2954) ... 10 more [WARN 2015-03-23 16:08:29]: LoginManager: Unable to retrive account com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: No operations allowed after connection closed.Connection was implicitly closed by the driver. at sun.reflect.GeneratedConstructorAccessor1.newInstance(Unknown Source) 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:406) at com.mysql.jdbc.Util.getInstance(Util.java:381) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1012) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:986) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:981) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:926) at com.mysql.jdbc.ConnectionImpl.throwConnectionClosedException(ConnectionImpl.java:1201) at com.mysql.jdbc.ConnectionImpl.checkClosed(ConnectionImpl.java:1188) at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4273) at com.mysql.jdbc.ConnectionImpl.prepareStatement(ConnectionImpl.java:4239) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313) at ru.catssoftware.loginserver.manager.LoginManager.getAccount(LoginManager.java:411) at ru.catssoftware.loginserver.manager.LoginManager.loginValid(LoginManager.java:491) at ru.catssoftware.loginserver.manager.LoginManager.loginValid(LoginManager.java:465) at ru.catssoftware.loginserver.manager.LoginManager.tryAuthLogin(LoginManager.java:254) at ru.catssoftware.loginserver.clientpackets.RequestAuthLogin.run(RequestAuthLogin.java:110) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure The last packet successfully received from the server was 120,010 milliseconds ago. The last packet sent successfully to the server was 9 milliseconds ago. 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:406) at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1119) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3057) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2943) at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3486) at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1959) at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2113) at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2693) at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2102) at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2261) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) at org.apache.commons.dbcp.DelegatingPreparedStatement.executeQuery(DelegatingPreparedStatement.java:96) at ru.catssoftware.loginserver.manager.LoginManager$ConnectionCheck.run(LoginManager.java:89) Caused by: java.io.EOFException: Can not read response from server. Expected to read 4 bytes, read 0 bytes before connection was unexpectedly lost. at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2502) at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2954) ... 10 more [INFO 2015-03-23 16:08:29]: Address 188.244.154.2 banned Изменено 23 марта, 2015 пользователем Marquis Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Marquis 4 Опубликовано 23 марта, 2015 Содержимое account_manager.sh #!/bin/sh java -Djava.util.logging.config.file=console.cfg -cp ../libs/*:./login.jar ru.catssoftware.accountmanager.AccountManager Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
ffffffffffffffffff 643 Опубликовано 23 марта, 2015 Скинь содержимое этих конфигов Loading: ./config/main/network.properties. Loading: ./config/main/security.properties. Loading: ./config/main/ban.properties. Loading: ./config/main/loginserver.properties. Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Marquis 4 Опубликовано 23 марта, 2015 (изменено) Скинь содержимое этих конфигов Loading: ./config/main/network.properties. Loading: ./config/main/security.properties. Loading: ./config/main/ban.properties. Loading: ./config/main/loginserver.properties. проблема не в кадировке. Изменено 23 марта, 2015 пользователем Marquis Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Meeero 38 Опубликовано 23 марта, 2015 Communications link failureБаза упала, не? Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Marquis 4 Опубликовано 23 марта, 2015 Communications link failure База упала, не? Есть подозрения, что в масикле какие-то ограничения на подключение.. Не уверен.. но как проверить хз))) Так то база вроде работает... Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Ira3451 11 Опубликовано 23 марта, 2015 А на windows как работал account_manager.bat? С этими ошибками или без? Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Marquis 4 Опубликовано 23 марта, 2015 А на windows как работал account_manager.bat? С этими ошибками или без? Такая же чушь.. Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Ira3451 11 Опубликовано 23 марта, 2015 У меня все норм тут с этой сборкой, могу поделиться сборочкой чистой. Только там проблемный loop.sh а все остальные файлы можно смело менять и думаю вопрос можно закрыть. Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Ira3451 11 Опубликовано 23 марта, 2015 Вот держите ссылку попробуйте поменять файлы но loop.sh должен быть ваш. L2jLovely-rev15.zip Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты
Marquis 4 Опубликовано 23 марта, 2015 Сайт содержит нежелательное ПО Сайт r4.fayloobmennik.net может установить на ваше устройство вредоносное ПО, которое будет мешать работе браузера (например, меняя стартовую страницу или показывая дополнительную рекламу на сайтах). 1 Поделиться сообщением Ссылка на сообщение Поделиться на другие сайты