et-nik / gameap

Game Admin Panel (GameAP) is the opensource game servers control panel.
https://gameap.com
102 stars 23 forks source link

Server editing page cleaned after loading #37

Closed r4sas closed 4 years ago

r4sas commented 4 years ago

Не смотрел по коммитам что изменялось в JS, но после перехода на транк с августовских (мимо, не верно расчитал unix timestamp) коммитов полетела страница "Администрирование" (admin/servers/<id>/edit).

image

После полной загрузки страницы какой то код полностью удаляет блок #app заменяя на <!---->. Проверялось на последней опере и в хромиуме.

et-nik commented 4 years ago

Это произошло после обновления панели?

r4sas commented 4 years ago

Да, после перехода на транк (git pull). До этого я сидел на 349ec5fd8fee266c86516e534a0ddf4d1e432b4b.

et-nik commented 4 years ago

Нужно выполнить процедуры по обновлению панели. Выполните следующие действия:

cd /var/www/gameap
git pull
composer update --no-dev
npm update
npm run prod
./artisan migrate

Если composer отсутствует, то установите его командой:

curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer

Если npm отсутствует, то установите его:

curl -sL https://deb.nodesource.com/setup_10.x | bash - &> /dev/null
apt install nodejs
r4sas commented 4 years ago

Всё это уже проделано.

et-nik commented 4 years ago

Всё выполнилось без ошибок? Очень похоже на то, что JS не собрался и отсутствуют нужные версии пакетов.

et-nik commented 4 years ago

Как вариант, попробуйте воспользовать скриптом установки, он умеет делать апгрейт панели:

curl -sLO http://packages.gameap.ru/installer.sh && bash installer.sh --upgrade --github
r4sas commented 4 years ago

Вроде как без ошибок:

log ``` [bash]:# sudo -u www-data composer update --no-dev Loading composer repositories with package information Updating dependencies Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead. Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead. Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover Discovered Package: fideloper/proxy Discovered Package: gameap/ftp-module Discovered Package: gameap/gameap-file-manager Discovered Package: intervention/image Discovered Package: laravel/passport Discovered Package: laravel/tinker Discovered Package: laravelcollective/html Discovered Package: mavinoo/laravel-batch Discovered Package: nesbot/carbon Discovered Package: nwidart/laravel-modules Discovered Package: silber/bouncer Discovered Package: spatie/laravel-query-builder Package manifest generated successfully. [bash]:# sudo -u www-data npm update [bash]:# sudo -u www-data npm run prod > @ prod > npm run production > @ production > cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 98% after emitting SizeLimitsPlugin DONE Compiled successfully in 41381ms 2:18:28 PM Asset Size Chunks Chunk Names /css/app.css 211 KiB 0 [emitted] /js/app /js/app.js 542 KiB 0 [emitted] [big] /js/app fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?57dcda6f368ea90179f75cbdae96c263 130 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.svg?9d67fa1429375bd2a899a17eb77d0342 699 KiB [emitted] [big] fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf?9ec698d1a597bff5df337094b71ddaaf 130 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?067595ad77ecc0db9c81c8905a7eef32 74.8 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?b564da88bbf0c4aa446fa19653713cd1 87.7 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot?3351f435b3c9037fd88aeb04dc1e43bc 33.6 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.svg?5d0861781aeef6c82fda3a3076954a1b 141 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf?a0e3ac82940c1998c5977fd4bc1f5ef6 33.3 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2?4165c2688309cbfb1b877caf8f75afb5 13.3 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff?73cf49a2232c06c920b7a34e36bfb58c 16.4 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot?89e02bae13c9131c7468b1e729339ac1 190 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?0724bb8b89ab6b8b9b7df917b17be0b7 829 KiB [emitted] [big] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?75f38a159982b6bd1704891332d95fa7 189 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2?55eb2a60e8181f0e68b558c991973bf0 74.3 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?cdfec5cf5e9840889790bcf2c4042583 96.7 KiB [emitted] js/chunks/components/game-mod-selector.js?da9f971e13c9d16026b4 5.82 KiB 1 [emitted] [immutable] components/game-mod-selector js/chunks/components/input-many-list.js?e781188a4c84395b3846 2.71 KiB 2 [emitted] [immutable] components/input-many-list js/chunks/components/input-text-list.js?b62eabd83ec3e04ad232 1.26 KiB 3 [emitted] [immutable] components/input-text-list js/chunks/components/server-console.js?0e23ec87b356f0f54d87 2.45 KiB 4 [emitted] [immutable] components/server-console js/chunks/components/server-status.js?90f311e1743110a9120a 617 bytes 5 [emitted] [immutable] components/server-status js/chunks/components/smart-port-selector.js?3ea7fde7e0e5a6e65e61 4.67 KiB 6 [emitted] [immutable] components/smart-port-selector js/chunks/components/task-output.js?0b096229013b07b861be 760 bytes 7 [emitted] [immutable] components/task-output js/chunks/components/user-server-privileges.js?bd8aa77da50480a2aeb3 5.83 KiB 8 [emitted] [immutable] components/user-server-privileges js/chunks/vendors~js/file-manager.js?f80adc414c3d3a4e85ac 695 KiB 9 [emitted] [immutable] [big] vendors~js/file-manager [bash]:# sudo -u www-data ./artisan migrate Nothing to migrate. [bash]:# ```
et-nik commented 4 years ago

Да, действительно, ошибок нет. Попробуйте удалить папку node_modules и vendor, а затем выполнить команды:

composer update --no-dev

npm update
npm run prod
r4sas commented 4 years ago

Никаких изменений...

log ``` [bash]:# sudo -u www-data composer update --no-dev Loading composer repositories with package information Updating dependencies Package operations: 93 installs, 0 updates, 0 removals - Installing joshbrw/laravel-module-installer (v0.1.4): Downloading (100%) - Installing symfony/polyfill-ctype (v1.14.0): Downloading (100%) - Installing phpoption/phpoption (1.7.2): Downloading (100%) - Installing vlucas/phpdotenv (v3.6.1): Downloading (100%) - Installing symfony/css-selector (v5.0.5): Downloading (100%) - Installing tijsverkoyen/css-to-inline-styles (2.2.2): Downloading (100%) - Installing symfony/polyfill-php72 (v1.14.0): Downloading (100%) - Installing symfony/polyfill-mbstring (v1.14.0): Downloading (100%) - Installing symfony/var-dumper (v4.4.5): Downloading (100%) - Installing symfony/routing (v4.4.5): Downloading (100%) - Installing symfony/process (v4.4.5): Downloading (100%) - Installing psr/log (1.1.2): Downloading (100%) - Installing symfony/polyfill-php73 (v1.14.0): Downloading (100%) - Installing symfony/polyfill-intl-idn (v1.14.0): Downloading (100%) - Installing symfony/mime (v5.0.5): Downloading (100%) - Installing symfony/http-foundation (v4.4.5): Downloading (100%) - Installing symfony/event-dispatcher-contracts (v1.1.7): Downloading (100%) - Installing psr/container (1.0.0): Downloading (100%) - Installing symfony/event-dispatcher (v4.4.5): Downloading (100%) - Installing symfony/debug (v4.4.5): Downloading (100%) - Installing symfony/error-handler (v4.4.5): Downloading (100%) - Installing symfony/http-kernel (v4.4.5): Downloading (100%) - Installing symfony/polyfill-util (v1.14.0): Downloading (100%) - Installing symfony/polyfill-php56 (v1.14.0): Downloading (100%) - Installing symfony/finder (v4.4.5): Downloading (100%) - Installing symfony/service-contracts (v2.0.1): Downloading (100%) - Installing symfony/console (v4.4.5): Downloading (100%) - Installing symfony/polyfill-iconv (v1.14.0): Downloading (100%) - Installing doctrine/lexer (1.2.0): Downloading (100%) - Installing egulias/email-validator (2.1.17): Downloading (100%) - Installing swiftmailer/swiftmailer (v6.2.3): Downloading (100%) - Installing paragonie/random_compat (v9.99.99): Downloading (100%) - Installing ramsey/uuid (3.9.3): Downloading (100%) - Installing psr/simple-cache (1.0.1): Downloading (100%) - Installing opis/closure (3.5.1): Downloading (100%) - Installing symfony/translation-contracts (v2.0.1): Downloading (100%) - Installing symfony/translation (v4.4.5): Downloading (100%) - Installing nesbot/carbon (2.31.0): Downloading (100%) - Installing monolog/monolog (1.25.3): Downloading (100%) - Installing league/flysystem (1.0.65): Downloading (100%) - Installing erusev/parsedown (1.7.4): Downloading (100%) - Installing dragonmantank/cron-expression (v2.3.0): Downloading (100%) - Installing doctrine/inflector (1.3.1): Downloading (100%) - Installing laravel/framework (v5.8.37): Downloading (100%) - Installing nikic/php-parser (v4.3.0): Downloading (100%) - Installing jeremeamia/superclosure (2.4.0): Downloading (100%) - Installing ralouphie/getallheaders (3.0.3): Downloading (100%) - Installing psr/http-message (1.0.1): Downloading (100%) - Installing guzzlehttp/psr7 (1.6.1): Downloading (100%) - Installing intervention/image (2.5.1): Downloading (100%) - Installing intervention/imagecache (2.4.1): Downloading (100%) - Installing gameap/gameap-file-manager (dev-master b1628f2): Downloading (100%) - Installing infyomlabs/generator-builder (dev-master 9e3bfdb): Downloading (100%) - Installing knik/binn (0.2.2): Downloading (100%) - Installing knik/gameap-daemon-client (0.3.4): Downloading (100%) - Installing knik/flysystem-gameap (dev-master ba0ca4e): Downloading (100%) - Installing sop/crypto-encoding (0.2.0): Downloading (100%) - Installing sop/asn1 (3.4.3): Downloading (100%) - Installing sop/crypto-types (0.2.1): Downloading (100%) - Installing sop/crypto-bridge (0.2.0): Downloading (100%) - Installing sop/x501 (0.5.0): Downloading (100%) - Installing knik/x509 (0.6.2): Downloading (100%) - Installing mavinoo/laravel-batch (dev-master 11be46e): Downloading (100%) - Installing silber/bouncer (v1.0.0-rc.6): Downloading (100%) - Installing fideloper/proxy (4.3.0): Downloading (100%) - Installing fzaninotto/faker (v1.9.1): Downloading (100%) - Installing gameap/ftp-module (1.3.1): Downloading (100%) - Installing knik/gameq (v3.0.16): Downloading (100%) - Installing psr/http-factory (1.0.1): Downloading (100%) - Installing zendframework/zend-diactoros (2.2.1): Downloading (100%) - Installing symfony/psr-http-message-bridge (v1.3.0): Downloading (100%) - Installing phpseclib/phpseclib (2.0.25): Downloading (100%) - Installing defuse/php-encryption (v2.2.1): Downloading (100%) - Installing lcobucci/jwt (3.3.1): Downloading (100%) - Installing league/event (2.2.0): Downloading (100%) - Installing league/oauth2-server (7.4.0): Downloading (100%) - Installing guzzlehttp/promises (v1.3.1): Downloading (100%) - Installing guzzlehttp/guzzle (6.5.2): Downloading (100%) - Installing firebase/php-jwt (v5.1.0): Downloading (100%) - Installing laravel/passport (v7.5.1): Downloading (100%) - Installing jakub-onderka/php-console-color (v0.2): Downloading (100%) - Installing jakub-onderka/php-console-highlighter (v0.4): Downloading (100%) - Installing dnoegel/php-xdg-base-dir (v0.1.1): Downloading (100%) - Installing psy/psysh (v0.9.12): Downloading (100%) - Installing laravel/tinker (v1.0.10): Downloading (100%) - Installing laravelcollective/html (v5.8.1): Downloading (100%) - Installing phpseclib/bcmath_compat (1.0.4): Downloading (100%) - Installing moontoast/math (1.2.1): Downloading (100%) - Installing nwidart/laravel-modules (5.1.0): Downloading (100%) - Installing spatie/laravel-query-builder (1.17.5): Downloading (100%) - Installing doctrine/event-manager (1.1.0): Downloading (100%) - Installing doctrine/cache (1.10.0): Downloading (100%) - Installing doctrine/dbal (v2.10.1): Downloading (100%) Package zendframework/zend-diactoros is abandoned, you should avoid using it. Use laminas/laminas-diactoros instead. Package moontoast/math is abandoned, you should avoid using it. Use brick/math instead. Writing lock file Generating optimized autoload files > Illuminate\Foundation\ComposerScripts::postAutoloadDump > @php artisan package:discover Discovered Package: fideloper/proxy Discovered Package: gameap/ftp-module Discovered Package: gameap/gameap-file-manager Discovered Package: intervention/image Discovered Package: laravel/passport Discovered Package: laravel/tinker Discovered Package: laravelcollective/html Discovered Package: mavinoo/laravel-batch Discovered Package: nesbot/carbon Discovered Package: nwidart/laravel-modules Discovered Package: silber/bouncer Discovered Package: spatie/laravel-query-builder Package manifest generated successfully. [bash]:# sudo -u www-data npm update npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1 > core-js@3.6.4 postinstall /node_modules/core-js > node -e "try{require('./postinstall')}catch(e){}" Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library! The project needs your help! Please consider supporting of core-js on Open Collective or Patreon: > https://opencollective.com/core-js > https://www.patreon.com/zloirock Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.11: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: abbrev@1.1.1 (node_modules/fsevents/node_modules/abbrev): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/abbrev' -> '/node_modules/fsevents/node_modules/.abbrev.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ansi-regex@2.1.1 (node_modules/fsevents/node_modules/ansi-regex): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/ansi-regex' -> '/node_modules/fsevents/node_modules/.ansi-regex.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: aproba@1.2.0 (node_modules/fsevents/node_modules/aproba): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/aproba' -> '/node_modules/fsevents/node_modules/.aproba.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: balanced-match@1.0.0 (node_modules/fsevents/node_modules/balanced-match): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/balanced-match' -> '/node_modules/fsevents/node_modules/.balanced-match.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: chownr@1.1.3 (node_modules/fsevents/node_modules/chownr): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/chownr' -> '/node_modules/fsevents/node_modules/.chownr.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: code-point-at@1.1.0 (node_modules/fsevents/node_modules/code-point-at): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/code-point-at' -> '/node_modules/fsevents/node_modules/.code-point-at.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: concat-map@0.0.1 (node_modules/fsevents/node_modules/concat-map): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/concat-map' -> '/node_modules/fsevents/node_modules/.concat-map.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: console-control-strings@1.1.0 (node_modules/fsevents/node_modules/console-control-strings): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/console-control-strings' -> '/node_modules/fsevents/node_modules/.console-control-strings.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: core-util-is@1.0.2 (node_modules/fsevents/node_modules/core-util-is): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/core-util-is' -> '/node_modules/fsevents/node_modules/.core-util-is.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: deep-extend@0.6.0 (node_modules/fsevents/node_modules/deep-extend): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/deep-extend' -> '/node_modules/fsevents/node_modules/.deep-extend.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: delegates@1.0.0 (node_modules/fsevents/node_modules/delegates): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/delegates' -> '/node_modules/fsevents/node_modules/.delegates.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: detect-libc@1.0.3 (node_modules/fsevents/node_modules/detect-libc): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/detect-libc' -> '/node_modules/fsevents/node_modules/.detect-libc.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fs.realpath@1.0.0 (node_modules/fsevents/node_modules/fs.realpath): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/fs.realpath' -> '/node_modules/fsevents/node_modules/.fs.realpath.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: has-unicode@2.0.1 (node_modules/fsevents/node_modules/has-unicode): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/has-unicode' -> '/node_modules/fsevents/node_modules/.has-unicode.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: inherits@2.0.4 (node_modules/fsevents/node_modules/inherits): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/inherits' -> '/node_modules/fsevents/node_modules/.inherits.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ini@1.3.5 (node_modules/fsevents/node_modules/ini): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/ini' -> '/node_modules/fsevents/node_modules/.ini.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: isarray@1.0.0 (node_modules/fsevents/node_modules/isarray): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/isarray' -> '/node_modules/fsevents/node_modules/.isarray.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@0.0.8 (node_modules/fsevents/node_modules/minimist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/minimist' -> '/node_modules/fsevents/node_modules/.minimist.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: ms@2.1.2 (node_modules/fsevents/node_modules/ms): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/ms' -> '/node_modules/fsevents/node_modules/.ms.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: npm-normalize-package-bin@1.0.1 (node_modules/fsevents/node_modules/npm-normalize-package-bin): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/npm-normalize-package-bin' -> '/node_modules/fsevents/node_modules/.npm-normalize-package-bin.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: number-is-nan@1.0.1 (node_modules/fsevents/node_modules/number-is-nan): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/number-is-nan' -> '/node_modules/fsevents/node_modules/.number-is-nan.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: object-assign@4.1.1 (node_modules/fsevents/node_modules/object-assign): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/object-assign' -> '/node_modules/fsevents/node_modules/.object-assign.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-homedir@1.0.2 (node_modules/fsevents/node_modules/os-homedir): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/os-homedir' -> '/node_modules/fsevents/node_modules/.os-homedir.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: os-tmpdir@1.0.2 (node_modules/fsevents/node_modules/os-tmpdir): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/os-tmpdir' -> '/node_modules/fsevents/node_modules/.os-tmpdir.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: path-is-absolute@1.0.1 (node_modules/fsevents/node_modules/path-is-absolute): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/path-is-absolute' -> '/node_modules/fsevents/node_modules/.path-is-absolute.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: process-nextick-args@2.0.1 (node_modules/fsevents/node_modules/process-nextick-args): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/process-nextick-args' -> '/node_modules/fsevents/node_modules/.process-nextick-args.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: minimist@1.2.0 (node_modules/fsevents/node_modules/rc/node_modules/minimist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/rc/node_modules/minimist' -> '/node_modules/fsevents/node_modules/rc/node_modules/.minimist.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safe-buffer@5.1.2 (node_modules/fsevents/node_modules/safe-buffer): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/safe-buffer' -> '/node_modules/fsevents/node_modules/.safe-buffer.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: safer-buffer@2.1.2 (node_modules/fsevents/node_modules/safer-buffer): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/safer-buffer' -> '/node_modules/fsevents/node_modules/.safer-buffer.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sax@1.2.4 (node_modules/fsevents/node_modules/sax): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/sax' -> '/node_modules/fsevents/node_modules/.sax.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: semver@5.7.1 (node_modules/fsevents/node_modules/semver): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/semver' -> '/node_modules/fsevents/node_modules/.semver.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: set-blocking@2.0.0 (node_modules/fsevents/node_modules/set-blocking): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/set-blocking' -> '/node_modules/fsevents/node_modules/.set-blocking.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: signal-exit@3.0.2 (node_modules/fsevents/node_modules/signal-exit): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/signal-exit' -> '/node_modules/fsevents/node_modules/.signal-exit.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: strip-json-comments@2.0.1 (node_modules/fsevents/node_modules/strip-json-comments): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/strip-json-comments' -> '/node_modules/fsevents/node_modules/.strip-json-comments.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: util-deprecate@1.0.2 (node_modules/fsevents/node_modules/util-deprecate): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/util-deprecate' -> '/node_modules/fsevents/node_modules/.util-deprecate.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: wrappy@1.0.2 (node_modules/fsevents/node_modules/wrappy): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/wrappy' -> '/node_modules/fsevents/node_modules/.wrappy.DELETE' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: yallist@3.1.1 (node_modules/fsevents/node_modules/yallist): npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename '/node_modules/fsevents/node_modules/yallist' -> '/node_modules/fsevents/node_modules/.yallist.DELETE' + cross-env@5.2.1 + lodash@4.17.15 + bootbox@5.4.0 + axios@0.19.2 + bootstrap-select@1.13.12 + laravel-mix@4.1.4 + jquery@3.4.1 + bootstrap@4.4.1 + gameap-file-manager@2.0.14 + @fortawesome/fontawesome-free@5.12.1 + vue@2.6.11 + sass-loader@7.3.1 + sass@1.26.3 + popper.js@1.16.1 + vue-select@2.6.4 added 1033 packages from 1370 contributors and audited 17736 packages in 71.192s 30 packages are looking for funding run `npm fund` for details found 1 moderate severity vulnerability run `npm audit fix` to fix them, or `npm audit` for details [bash]:# sudo -u www-data npm run prod > @ prod > npm run production > @ production > cross-env NODE_ENV=production node_modules/webpack/bin/webpack.js --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js 98% after emitting SizeLimitsPlugin DONE Compiled successfully in 78872ms 2:30:21 PM Asset Size Chunks Chunk Names /css/app.css 211 KiB 0 [emitted] /js/app /js/app.js 542 KiB 0 [emitted] [big] /js/app fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.eot?57dcda6f368ea90179f75cbdae96c263 130 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.svg?9d67fa1429375bd2a899a17eb77d0342 699 KiB [emitted] [big] fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf?9ec698d1a597bff5df337094b71ddaaf 130 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?067595ad77ecc0db9c81c8905a7eef32 74.8 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff?b564da88bbf0c4aa446fa19653713cd1 87.7 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.eot?3351f435b3c9037fd88aeb04dc1e43bc 33.6 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.svg?5d0861781aeef6c82fda3a3076954a1b 141 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf?a0e3ac82940c1998c5977fd4bc1f5ef6 33.3 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2?4165c2688309cbfb1b877caf8f75afb5 13.3 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff?73cf49a2232c06c920b7a34e36bfb58c 16.4 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.eot?89e02bae13c9131c7468b1e729339ac1 190 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.svg?0724bb8b89ab6b8b9b7df917b17be0b7 829 KiB [emitted] [big] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?75f38a159982b6bd1704891332d95fa7 189 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2?55eb2a60e8181f0e68b558c991973bf0 74.3 KiB [emitted] fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff?cdfec5cf5e9840889790bcf2c4042583 96.7 KiB [emitted] js/chunks/components/game-mod-selector.js?da9f971e13c9d16026b4 5.82 KiB 1 [emitted] [immutable] components/game-mod-selector js/chunks/components/input-many-list.js?e781188a4c84395b3846 2.71 KiB 2 [emitted] [immutable] components/input-many-list js/chunks/components/input-text-list.js?b62eabd83ec3e04ad232 1.26 KiB 3 [emitted] [immutable] components/input-text-list js/chunks/components/server-console.js?0e23ec87b356f0f54d87 2.45 KiB 4 [emitted] [immutable] components/server-console js/chunks/components/server-status.js?90f311e1743110a9120a 617 bytes 5 [emitted] [immutable] components/server-status js/chunks/components/smart-port-selector.js?3ea7fde7e0e5a6e65e61 4.67 KiB 6 [emitted] [immutable] components/smart-port-selector js/chunks/components/task-output.js?0b096229013b07b861be 760 bytes 7 [emitted] [immutable] components/task-output js/chunks/components/user-server-privileges.js?bd8aa77da50480a2aeb3 5.83 KiB 8 [emitted] [immutable] components/user-server-privileges js/chunks/vendors~js/file-manager.js?f80adc414c3d3a4e85ac 695 KiB 9 [emitted] [immutable] [big] vendors~js/file-manager [bash]:# ```
et-nik commented 4 years ago

Ещё как вариант, скачайте отсюда уже собранную панель http://packages.gameap.ru/gameap/gameap-3.0.0-beta.tar.gz

Из архива скопируйте содержимое каталога /gameap/public/js/ в каталог /var/www/gameap/public/js на сервере, где стоит панель.

Также скопируйте из архива содержимое /gameap/vendor в /var/www/gameap/vendor

et-nik commented 4 years ago

Да, после перехода на транк (git pull). До этого я сидел на 349ec5f.

А на которой сидели, ставили с нуля или тоже обновляли с предыдущей версии?

et-nik commented 4 years ago

А ещё попробуйте кеш браузера сбросить. Возможно браузер использует app.js из кеша, а не обновлённый.

r4sas commented 4 years ago

Изначально была установлена с нуля и один раз обновлена с 69169b5ad59d35293e69f5e417297e15c39bfb02 на 349ec5fd8fee266c86516e534a0ddf4d1e432b4b когда мы исправили Query для CS 1.6.

r4sas commented 4 years ago

А ещё попробуйте кеш браузера сбросить. Возможно браузер использует app.js из кеша, а не обновлённый.

Кеш сбрасывается, использую галку "Disable Cache" в DevTools на вкладке Network.

Ещё как вариант, скачайте отсюда уже собранную панель

Аналогично. Даже размеры js одинаковы.

et-nik commented 4 years ago

Очень странно. А в Chrome Dev Console есть какие-нибудь ошибки?

r4sas commented 4 years ago

Ни в опере, ни в хроме нет никаких ошибок.

r4sas commented 4 years ago

Как то так... image

et-nik commented 4 years ago

Очень странно. Попробуйте собрать JS для DEV окружения и посмотреть консоль вновь:

npm run dev
r4sas commented 4 years ago

Во, а так уже понятнее...

[Vue warn]: Error compiling template:

The value for a v-bind expression cannot be empty. Found in "v-bind:initial-query-port"

[Vue warn]: Error compiling template:

The value for a v-bind expression cannot be empty. Found in "v-bind:initial-rcon-port"
et-nik commented 4 years ago

@r4sas Можете выполнить следующие действия и написать сюда данные?

Откройте исходный код страницы admin/servers/<id>/edit, найдите там тег smart-port-selector, скопируйте всё его содержимое и напишите здесь.

Пример:

<smart-port-selector
    initial-server-ip="127.0.0.1"
    :initial-server-port="25776"
    :initial-query-port="25927"
    :initial-rcon-port="26974">
</smart-port-selector>
et-nik commented 4 years ago

Спасибо большое за информацию. Проблема была в пустых значениях query-port и rcon-port. Если у сервера они не были заданы, то компонент smart-port-selector не мог работать корректно.

Проблема устранена. Вам нужно вновь обновить панель, следуя вот этим инструкциям: https://github.com/et-nik/gameap/issues/37#issuecomment-599196467, либо https://github.com/et-nik/gameap/issues/37#issuecomment-599197184

r4sas commented 4 years ago

Спасибо, теперь всё корректно открывается.