Learn about Centmin Mod LEMP Stack today
Register Now

Phpmyadmin doesn't auto update

Discussion in 'Other Centmin Mod Installed software' started by pamamolf, Oct 13, 2020.

  1. pamamolf

    pamamolf Premium Member Premium Member

    3,857
    378
    83
    May 31, 2014
    Ratings:
    +729
    Local Time:
    2:36 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Hello

    At my Phpmyadmin panel i can see that a new version is out :

    • Version information: 5.0.2, latest stable version: 5.0.3

    It seems that was not updated using the cron...

    Code:
    19 02 * * * /root/tools/phpmyadmin_update.sh >/dev/null 2>&1
    Running the command manually doesn't update it also....

    Any ideas?

    Thanks !
     
  2. eva2000

    eva2000 Administrator Staff Member

    45,406
    10,302
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,980
    Local Time:
    9:36 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    what does bash debug run output look like ? you can search and replace to mask the actual phpmyadmin domain and directory path from the output
    Code (Text):
    bash -x /root/tools/phpmyadmin_update.sh
    
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    3,857
    378
    83
    May 31, 2014
    Ratings:
    +729
    Local Time:
    2:36 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Code:
    + export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    + PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
    ++ date +%d%m%y-%H%M%S
    + DT=141020-212649
    + CENTMINLOGDIR=/root/centminlogs
    + '[' '!' -d /root/centminlogs ']'
    ++ date +%s.%N
    + starttime=1602710809.163285652
    + tee /root/centminlogs/centminmod_phpmyadmin_update-141020-212649.log
    + echo 'cd /usr/local/nginx/html/12345_mysqladmin1234'
    cd /usr/local/nginx/html/12345_mysqladmin1234
    + cd /usr/local/nginx/html/12345_mysqladmin1234
    + rm -rf composer.lock
    + echo 'git pull'
    git pull
    + git pull
    error: Your local changes to the following files would be overwritten by merge:
            libraries/classes/Plugins/Export/ExportXml.php
    Please, commit your changes or stash them before you can merge.
    Aborting
    Updating 9098471..e4ee6a3
    + rm -rf composer.phar
    + wget -cnv https://getcomposer.org/composer.phar -O composer.phar
    2020-10-14 21:26:53 URL:https://getcomposer.org/composer.phar [2170349/2170349] -> "composer.phar" [1]
    + echo y
    + php composer.phar update --no-dev
    Do not run Composer as root/super user! See https://getcomposer.org/root for details
    Loading composer repositories with package information
    Updating dependencies
    Lock file operations: 88 installs, 0 updates, 0 removals
      - Locking bacon/bacon-qr-code (2.0.2)
      - Locking codacy/coverage (1.4.3)
      - Locking composer/package-versions-deprecated (1.11.99)
      - Locking composer/xdebug-handler (1.4.3)
      - Locking dasprid/enum (1.0.3)
      - Locking doctrine/instantiator (1.3.1)
      - Locking gitonomy/gitlib (v1.2.2)
      - Locking google/recaptcha (1.2.4)
      - Locking jean85/pretty-package-versions (1.5.1)
      - Locking myclabs/deep-copy (1.10.1)
      - Locking nette/bootstrap (v3.0.2)
      - Locking nette/di (v3.0.5)
      - Locking nette/finder (v2.5.2)
      - Locking nette/neon (v3.2.1)
      - Locking nette/php-generator (v3.4.1)
      - Locking nette/robot-loader (v3.3.1)
      - Locking nette/schema (v1.0.2)
      - Locking nette/utils (v3.1.3)
      - Locking nikic/php-parser (v4.10.2)
      - Locking paragonie/constant_time_encoding (v2.3.0)
      - Locking paragonie/random_compat (v9.99.99)
      - Locking phar-io/manifest (2.0.1)
      - Locking phar-io/version (3.0.2)
      - Locking php-webdriver/webdriver (1.8.3)
      - Locking phpdocumentor/reflection-common (2.2.0)
      - Locking phpdocumentor/reflection-docblock (5.1.0)
      - Locking phpdocumentor/type-resolver (1.4.0)
      - Locking phpmyadmin/coding-standard (1.0)
      - Locking phpmyadmin/motranslator (4.0)
      - Locking phpmyadmin/shapefile (2.1)
      - Locking phpmyadmin/sql-parser (5.4.0)
      - Locking phpmyadmin/twig-i18n-extension (v2.0.0)
      - Locking phpseclib/phpseclib (2.0.29)
      - Locking phpspec/prophecy (1.11.1)
      - Locking phpstan/phpdoc-parser (0.3.5)
      - Locking phpstan/phpstan (0.11.20)
      - Locking phpunit/php-code-coverage (9.2.0)
      - Locking phpunit/php-file-iterator (3.0.5)
      - Locking phpunit/php-invoker (3.1.1)
      - Locking phpunit/php-text-template (2.0.3)
      - Locking phpunit/php-timer (5.0.2)
      - Locking phpunit/phpunit (9.4.0)
      - Locking pragmarx/google2fa (v6.0.1)
      - Locking pragmarx/google2fa-qrcode (v1.0.3)
      - Locking psr/cache (1.0.1)
      - Locking psr/container (1.0.0)
      - Locking psr/log (1.1.3)
      - Locking samyoul/u2f-php-server (v1.1.4)
      - Locking sebastian/cli-parser (1.0.1)
      - Locking sebastian/code-unit (1.0.7)
      - Locking sebastian/code-unit-reverse-lookup (2.0.3)
      - Locking sebastian/comparator (4.0.5)
      - Locking sebastian/complexity (2.0.1)
      - Locking sebastian/diff (4.0.3)
      - Locking sebastian/environment (5.1.3)
      - Locking sebastian/exporter (4.0.3)
      - Locking sebastian/global-state (5.0.1)
      - Locking sebastian/lines-of-code (1.0.1)
      - Locking sebastian/object-enumerator (4.0.3)
      - Locking sebastian/object-reflector (2.0.3)
      - Locking sebastian/recursion-context (4.0.3)
      - Locking sebastian/resource-operations (3.0.3)
      - Locking sebastian/type (2.3.0)
      - Locking sebastian/version (3.0.2)
      - Locking squizlabs/php_codesniffer (3.5.6)
      - Locking symfony/cache (v5.1.7)
      - Locking symfony/cache-contracts (v2.2.0)
      - Locking symfony/config (v4.4.15)
      - Locking symfony/console (v4.4.15)
      - Locking symfony/dependency-injection (v4.4.15)
      - Locking symfony/expression-language (v4.4.15)
      - Locking symfony/filesystem (v5.1.7)
      - Locking symfony/finder (v4.4.15)
      - Locking symfony/polyfill-ctype (v1.18.1)
      - Locking symfony/polyfill-mbstring (v1.18.1)
      - Locking symfony/polyfill-php56 (v1.18.1)
      - Locking symfony/polyfill-php73 (v1.18.1)
      - Locking symfony/polyfill-php80 (v1.18.1)
      - Locking symfony/polyfill-util (v1.18.1)
      - Locking symfony/process (v5.1.7)
      - Locking symfony/service-contracts (v2.2.0)
      - Locking symfony/var-exporter (v5.1.7)
      - Locking symfony/yaml (v4.4.15)
      - Locking tecnickcom/tcpdf (6.3.5)
      - Locking theseer/tokenizer (1.2.0)
      - Locking twig/twig (v2.13.1)
      - Locking webmozart/assert (1.8.0)
      - Locking williamdes/mariadb-mysql-kbs (1.2.11)
    Writing lock file
    Installing dependencies from lock file
    Nothing to install, update or remove
    18 package suggestions were added by new dependencies, use `composer suggest` to see details.
    Package codacy/coverage is abandoned, you should avoid using it. No replacement was suggested.
    Generating autoload files
    14 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    ++ which npm
    + '[' '!' -f /bin/npm ']'
    + '[' '!' -f /usr/bin/yarn ']'
    + '[' '!' -f /usr/local/nginx/html/12345_mysqladmin1234/themes/pmahomme/css/theme.css ']'
    + '[' -f /usr/local/nginx/html/12345_mysqladmin1234/themes/pmahomme/css/theme.css ']'
    + yarn run --silent css-compile --quiet --style=compressed
    + chown nginx:nginx /usr/local/nginx/html/12345_mysqladmin1234
    + chown -R nginx:nginx /usr/local/nginx/html/112345_mysqladmin1234
    ++ date +%s.%N
    + endtime=1602710820.525755669
    ++ bc
    ++ echo 'scale=2;1602710820.525755669 - 1602710809.163285652'
    + INSTALLTIME=11.362470017
    + echo ''
    + echo 'Total phpmyadmin Update Time: 11.362470017 seconds'
     
  4. eva2000

    eva2000 Administrator Staff Member

    45,406
    10,302
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,980
    Local Time:
    9:36 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    seems to be this part

    if you edit /root/tools/phpmyadmin_update.sh lines from
    Code (Text):
    echo "git pull"
    git pull
    

    to
    Code (Text):
    echo "git stash"
    git stash
    echo "git pull"
    git pull
    

    and run /root/tools/phpmyadmin_update.sh does it work ?
     
  5. pamamolf

    pamamolf Premium Member Premium Member

    3,857
    378
    83
    May 31, 2014
    Ratings:
    +729
    Local Time:
    2:36 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    Yes that fixed the problem :)

    Thank you !
     
  6. eva2000

    eva2000 Administrator Staff Member

    45,406
    10,302
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,980
    Local Time:
    9:36 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    ah updating phpmyadmin.sh today with fix then and adding auto check fix for centmin.sh menu runs

    probably will be end of day before commit the update
     
  7. eva2000

    eva2000 Administrator Staff Member

    45,406
    10,302
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +15,980
    Local Time:
    9:36 AM
    Nginx 1.19.x
    MariaDB 5.5/10.x
    Actually updated updated phpmyadmin.sh and 123.09beta01 with fix, so download latest phpmyadmin.sh for new installs or run cmupdate and then run and exit centmin.sh menu once. Verify fix in /root/tools/phpmyadmin_update.sh generated by phpmyadmin.sh check for the 2 above git stash lines
     
  8. pamamolf

    pamamolf Premium Member Premium Member

    3,857
    378
    83
    May 31, 2014
    Ratings:
    +729
    Local Time:
    2:36 AM
    Nginx-1.17.x
    MariaDB 10.3.x
    All working great now !

    Thank you