ruslabigboy:
Доброго времени суток!
Помогите новичку в этом софте, пожалуйста.
Скачал дистрибутив из шапки, установил. Все встало, но после запуска - строка сервера - строка подключения горит красным, не подключается. При попытке подключиться из браузера через строку:
http://localhost:8080/resto/ пишет "Не удалось осуществить вход в систему. Причина: [Сервер запускается, Bad credentials]".
Через бэк- вход бесконечный...
Кусочек лога Startup:
2018-06-02 14:56:06,221 INFO <><><>[Resto Executor](rdu.UpgradeManager) Resto database url: jdbc:jtds:sqlserver://./Resto;instance=RESTO;user=resto;password=resto#test;namedPipe=true;bufferMaxMemory=16384;bufferMinPackets=64;lobBuffer=1048576
2018-06-02 14:56:06,240 INFO <><><>[Resto Executor](rdu.UpgradeManager) SQL Server database found: true
2018-06-02 14:56:06,240 INFO <><><>[Resto Executor](rdu.UpgradeManager) SQL Server database found: Resto
2018-06-02 14:56:06,515 INFO <><><>[Resto Executor](rdu.UpgradeManager) Found empty database Resto
2018-06-02 14:56:06,515 INFO <><><>[Resto Executor](rdu.UpgradeManager) Demo database zip file not found: C:\Program Files\iiko\iikoRMS\Server\DemoDatabases\DemoDatabase.zip
2018-06-02 14:56:06,534 INFO <><><>[Resto Executor](rdu.UpgradeManager) Demo database bak file not found: C:\Program Files\iiko\iikoRMS\Server\DatabaseData\Resto.bak
2018-06-02 14:56:06,587 DEBUG <><><>[Resto Executor](rdm.SqlServerHelper) Db is already in ReadCommittedSnapshot mode.
2018-06-02 14:56:06,591 DEBUG <><><>[Resto Executor](rdm.SqlServerHelper) auto_close mode disabled.
2018-06-02 14:56:06,591 INFO <><><>[Resto Executor](rdm.SqlBackupHelper) Setting recovery model of database [Resto] to FULL
2018-06-02 14:56:07,602 DEBUG <><><>[Resto Executor](rd.DBUtil) Adding 0 of 0 SQLException.getNextException() results as suppressed of java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__UpgradeS__E3FC1EAA156F6ABB'. Cannot insert duplicate key in object 'dbo.UpgradeScripts'. The duplicate key value is (SetLastModifyNodeToEntityRecord).
2018-06-02 14:56:07,602 WARN <><><>[Resto Executor](rdu.UpgradeManager) Database connection error. Next try in 5000ms.
resto.RestoException: Cannot execute statement:
кусочек лога error:
2018-06-02 14:57:58,236 WARN <><><>[Resto Executor](rdu.UpgradeManager) Database connection error. Next try in 5000ms.
resto.RestoException: Cannot execute statement:
insert into UpgradeScripts (executedscript, executiondate, buildnumber) values ('SetLastModifyNodeToEntityRecord', '2018-06-02 14:57:58.229', '6.0.2026.0 built on 15 May 2018')
at resto.db.DBUtil.handleAndRethrowSqlException(DBUtil.java:153)
at resto.db.DBUtil.prepareAndExecute(DBUtil.java:330)
at resto.db.upgrade.UpgradeManager.insertScriptInfo(UpgradeManager.java:713)
at resto.db.upgrade.UpgradeManager.initializeUpgradeScripts(UpgradeManager.java:230)
at resto.db.upgrade.UpgradeManager.initializeDbAndUpgradeScripts(UpgradeManager.java:378)
at resto.db.upgrade.UpgradeManager.createOrUpgradeDatabase(UpgradeManager.java:271)
at resto.RestoRuntimeManager.doStart(RestoRuntimeManager.java:419)
at resto.RestoRuntimeManager.lambda$doStartup$36(RestoRuntimeManager.java:345)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at resto.core.SingleThreadedRestoExecutor.execUnsafe(SingleThreadedRestoExecutor.java:281)
at resto.core.SingleThreadedRestoExecutor.execUnsafe(SingleThreadedRestoExecutor.java:267)
at resto.RestoRuntimeManager.doStartup(RestoRuntimeManager.java:345)
at resto.RestoRuntimeManager.lambda$startup$35(RestoRuntimeManager.java:329)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at resto.core.InterruptAwareCallable.call(InterruptAwareCallable.java:53)
at resto.core.RestoExecutorCallable.call(RestoExecutorCallable.java:54)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at resto.core.SingleThreadedRestoExecutor$ExecutorRunnable.doTask(SingleThreadedRestoExecutor.java:323)
at resto.core.SingleThreadedRestoExecutor$ExecutorRunnable.run(SingleThreadedRestoExecutor.java:338)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.sql.SQLException: Violation of PRIMARY KEY constraint 'PK__UpgradeS__E3FC1EAA156F6ABB'. Cannot insert duplicate key in object 'dbo.UpgradeScripts'. The duplicate key value is (SetLastModifyNodeToEntityRecord).
at net.sourceforge.jtds.jdbc.SQLDiagnostic.addDiagnostic(SQLDiagnostic.java:372)
at net.sourceforge.jtds.jdbc.TdsCore.tdsErrorToken(TdsCore.java:2988)
at net.sourceforge.jtds.jdbc.TdsCore.nextToken(TdsCore.java:2421)
at net.sourceforge.jtds.jdbc.TdsCore.getMoreResults(TdsCore.java:671)
at net.sourceforge.jtds.jdbc.JtdsStatement.processResults(JtdsStatement.java:613)
at net.sourceforge.jtds.jdbc.JtdsStatement.executeSQL(JtdsStatement.java:572)
at net.sourceforge.jtds.jdbc.JtdsPreparedStatement.execute(JtdsPreparedStatement.java:784)
at resto.db.DBUtil.prepareAndExecute(DBUtil.java:326)
... 18 more