не идут данные на Веб-сервер

Стартовая страница Форумы Ошибки в работе Ошибки Веб не идут данные на Веб-сервер

Помечено: 

  • В этой теме 10 ответов, 4 участника, последнее обновление 3 года назад сделано Mikhail.
Просмотр 11 сообщений - с 1 по 11 (из 11 всего)
  • Автор
    Сообщения
  • #18763
    advirds
    Участник

    Добрый день! Scada Web не получает данные с сервера.
    Авторизацию, судя по логам проходит корректно, но данные не обновляются.
    В консоли браузера при этом ошибок нет.
    Логи Scada Web говорят следующее:
    https://ibb.co/NF65RRj

    #18764
    manjey73
    Участник

    Firewall отключите для проверки. Еще может быть роутер блокирует пакеты.

    #18765
    advirds
    Участник

    Все находится на одном локальном сервере, фаерволы я уже на автомате на каждой машине зарубаю принципиально.
    Удивительно то, что оно заработало. Понятия не имею почему(и у меня от этого волосы дыбом), но заработало.

    #18802
    Mikhail
    Модератор

    Если всё на одном сервере, то вместо конкретного IP укажите в настройках соединения localhost
    Судя по логам, связь между приложениями была, но очень нестабильная.

    #18834
    Andrey42
    Участник

    Проблема та-же — не работает Веб.
    Лог с момента закачки проекта:
    2021-03-19 09:57:31 <debianscada><www-data><ACT> Refresh the tables of the configuration database
    2021-03-19 09:57:32 <debianscada><www-data><ACT> Fill input channels properties
    2021-03-19 09:57:32 <debianscada><www-data><ACT> Fill output channels properties
    2021-03-19 09:57:32 <debianscada><www-data><ACT> Fill input channel statuses properties
    2021-03-19 09:57:44 <debianscada><www-data><ERR> Incorrect SCADA-Server response to file modification date and time request
    2021-03-19 09:57:44 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:44 <debianscada><www-data><EXC> Error receiving date and time of file [Hr]/h210319.dat modification from SCADA-Server: Unable to write data to the transport connection: The socket has been shut down.
    2021-03-19 09:57:44 <debianscada><www-data><ACT> Disconnect from SCADA-Server
    2021-03-19 09:57:45 <debianscada><www-data><ACT> Connect to SCADA-Server «localhost»
    2021-03-19 09:57:45 <debianscada><www-data><EXC> Error connecting to SCADA-Server: Connection refused
    2021-03-19 09:57:45 <debianscada><www-data><ACT> Disconnect from SCADA-Server
    2021-03-19 09:57:45 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:46 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:46 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:47 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:47 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:48 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:48 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:49 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:49 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:50 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:50 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:51 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:51 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:52 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:52 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:53 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:53 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:54 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:54 <debianscada><www-data><ERR> Unable to connect to SCADA-Server. Try again.
    2021-03-19 09:57:54 <debianscada><www-data><ERR> Unable to receive the current data file modification time.
    2021-03-19 09:57:55 <debianscada><www-data><ACT> Connect to SCADA-Server «localhost»
    2021-03-19 09:58:02 <debianscada><www-data><EXC> Error getting view with ID=1 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:02 <debianscada><www-data><EXC> Error getting view with ID=1 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:04 <debianscada><www-data><EXC> Error getting view with ID=2 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x000f7] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:04 <debianscada><www-data><EXC> Error getting view with ID=2 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x000f7] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:07 <debianscada><www-data><EXC> Error getting view with ID=17 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:11 <debianscada><www-data><EXC> Error getting view with ID=17 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:11 <debianscada><www-data><EXC> Error getting view with ID=17 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:12 <debianscada><www-data><EXC> Error getting view with ID=17 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:14 <debianscada><www-data><ACT> Logout: admin. IP address: 192.168.0.67
    2021-03-19 09:58:20 <debianscada><www-data><ERR> Error loading web application settings: File /var/www/html/scada/ScadaWeb/config/WebSettings.xml not found.
    2021-03-19 09:58:20 <debianscada><www-data><ACT> Login: admin (Administrator). IP address: 192.168.0.67
    2021-03-19 09:58:20 <debianscada><www-data><ACT> User information has been updated. IP address: 192.168.0.67. Session: A5773303A726962DCB45B961
    2021-03-19 09:58:20 <debianscada><www-data><ACT> Retrieve components from the installed plugins
    2021-03-19 09:58:21 <debianscada><www-data><EXC> Error getting view with ID=1 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:21 <debianscada><www-data><EXC> Error getting view with ID=1 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:23 <debianscada><www-data><EXC> Error getting view with ID=17 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    2021-03-19 09:58:23 <debianscada><www-data><EXC> Error getting view with ID=17 from the cache or from the server: Unable to receive view file modification time.:
    Scada.ScadaException: Unable to receive view file modification time.
    at Scada.Client.ViewCache.LoadView (System.Type viewType, System.Int32 viewID, System.DateTime viewAge, Scada.Client.BaseView& view, System.DateTime& newViewAge) [0x0004c] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0
    at Scada.Client.ViewCache.GetView (System.Type viewType, System.Int32 viewID, System.Boolean throwOnError) [0x00064] in <d7fcfa6bd97240beb9c8d775ca9988d2>:0

    Браузер спотыкается на:
    loadView: function (viewID, viewUrl, opt_from_history) {
    console.log(scada.utils.getCurTime() + » Load view » + viewID + » by » + viewUrl);

    а дальше:

    logSuccessfulRequest: function (operation, opt_data) {
    console.log(this.getCurTime() + » Request ‘» + operation + «‘ successful»);

    #18845
    Mikhail
    Модератор

    Правильно ли я понимаю, что веб-приложение иногда отображает представление нормально, а иногда начинает выдавать ошибки? Или ошибки выдаются в 100% случаев?

    Что при этом в логе сервера? Видит ли он попытки получить данные?

    #18878
    Andrey42
    Участник

    В браузере постоянная ошибка.
    Сервер данные видит кроме импорта из БД, не настроен ODBC.

    2021-03-22 08:10:59 <debianscada><root><ACT> Служба ScadaServerService 5.1.4.1 запущена
    2021-03-22 08:11:00 <debianscada><root><ACT> Загружен модуль из файла /opt/scada/ScadaServer/Mod/ModDBExport.dll
    2021-03-22 08:11:00 <debianscada><root><ACT> Проверка существования директорий данных выполнена успешно
    2021-03-22 08:11:00 <debianscada><root><ACT> Проверка существования файлов базы конфигурации выполнена успешно
    2021-03-22 08:11:01 <debianscada><root><ACT> Входные каналы считаны из базы конфигурации. Количество активных каналов: 495
    2021-03-22 08:11:01 <debianscada><root><ACT> Каналы управления считаны из базы конфигурации
    2021-03-22 08:11:01 <debianscada><root><ACT> Пользователи считаны из базы конфигурации
    2021-03-22 08:11:01 <debianscada><root><ACT> Формулы считаны из базы конфигурации
    2021-03-22 08:11:04 <debianscada><root><ACT> Исходный код формул калькулятора откомпилирован
    2021-03-22 08:11:05 <debianscada><root><ACT> Прослушиватель соединений запущен
    2021-03-22 08:11:05 <debianscada><root><ACT> Запуск работы сервера
    2021-03-22 08:11:05 <debianscada><root><ACT> Текущий срез загружен
    2021-03-22 08:11:13 <debianscada><root><ACT> Соединение с клиентом 127.0.0.1
    2021-03-22 08:11:13 <debianscada><root><ACT> Пользователь ScadaComm успешно аутентифицирован

    #18885
    Mikhail
    Модератор

    ODBC работает исключительно на Windows. Уточните, какая у Вас ошибка выдаётся в браузере?

    #18888
    Andrey42
    Участник

    Разобрался в чем дело. Если в пути к файлу или имени есть кирилица то не работает, если по латинице то все работает.

    VP\TABLE\Param.tbl — все хорошо
    VP\ТАБЛИЦЫ\Param.tbl — все плохо

    Подправлю в интерфейсе и все будет Gut.

    Вообще DBImport в линуксе с виндовской MSSQL работает ?

    #18895
    manjey73
    Участник

    Andrey42 библиотека импорта написана на C# и работает под Mono в Linux.

    Если косяков по данной части в Mono нет, то будет работать. Сервер то у вас в другом месте…

    #18903
    Mikhail
    Модератор

    Да, Linux не понимает русскою кодировку из Windows. Мы перейдём на UTF-8 при обновлении протокола обмена между приложениями, тогда подобная проблема решится.

Просмотр 11 сообщений - с 1 по 11 (из 11 всего)
  • Вы должны авторизироваться для ответа в этой теме.