Discover Centmin Mod today
Register Now

Phpmyadmin white page and one error

Discussion in 'Add Ons' started by pamamolf, Jun 5, 2023.

  1. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:57 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Please fill in any relevant information that applies to you:
    • CentOS Version: CentOS 7 64bit ?
    • Centmin Mod Version Installed: 130.00beta01
    • PHP Version Installed: 7.3.33

    Hello

    I was getting a white page on Phpmyadmin and i uninstall it using the command:

    Code:
    /root/tools/phpmyadmin_uninstall.sh
    Then i tried to install as usual and at the end i was getting a white page again....

    Usually after so many years when i had a white page or the css issue with Phpmyadmin after re installation it was ok.


    I just noticed at the end of the installation this error:

    Code:
    ./phpmyadmin.sh: line 895: exit#!/bin/bash: No such file or directory
    and to be more specific:

    Code:
    Total phpmyadmin Install Time: 40.591955764 seconds
    phpmyadmin install log located at:
    /root/centminlogs/centminmod_phpmyadmin_install_040623-194751.log
    ---------------------------------------------------------------
    ./phpmyadmin.sh: line 895: exit#!/bin/bash: No such file or directory
    Any ideas?

    Thanks in advance !
     
  2. eva2000

    eva2000 Administrator Staff Member

    54,068
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    1:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    tried

    Code (Text):
    /root/tools/phpmyadmin_uninstall.sh
    cd /usr/local/src/centminmod/addons
    rm -rf phpmyadmin.sh
    wget --no-check-certificate https://github.com/centminmod/phpmyadmin/raw/master/phpmyadmin.sh
    ./phpmyadmin.sh install
    
     
  3. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:57 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Yes that what I did…
     
  4. eva2000

    eva2000 Administrator Staff Member

    54,068
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    1:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    run phpmyadmin.sh install in bash debug mode and log it to /root/centminlogs/phpmyadmin-debug.log and then inspect it for clues. If you post the log be sure to mask sensitive info like IP address or hostnames etc.
    Code (Text):
    cd /usr/local/src/centminmod/addons
    bash -x phpmyadmin.sh install > /root/centminlogs/phpmyadmin-debug.log
    
     
  5. eva2000

    eva2000 Administrator Staff Member

    54,068
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    1:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    oh be sure to make script executeable with chmod
    Code (Text):
    /root/tools/phpmyadmin_uninstall.sh
    cd /usr/local/src/centminmod/addons
    rm -rf phpmyadmin.sh
    wget --no-check-certificate https://github.com/centminmod/phpmyadmin/raw/master/phpmyadmin.sh
    chmod +x phpmyadmin.sh
    ./phpmyadmin.sh install
    
     
  6. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:57 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    I follow your recommendation and i am still getting a white page. Tested in Incognito mode too...

    I noticed from the log file this error:

    Code:
    error autoprefixer@10.4.13: The engine "node" is incompatible with this module. Expected version "^10 || ^12 || >=14". Got "13.14.0"
    error Found incompatible module.
    Not sure if that's the issue...

    I am attaching also the log file....

    Thanks
     

    Attached Files:

  7. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:57 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Any ideas?
     
  8. eva2000

    eva2000 Administrator Staff Member

    54,068
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    1:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    How old is this Centmin Mod install? And how long ago did you first run phpmyadmin.sh ? Seems NodeJS version is older. What version of node do you have?
    Code (Text):
    node --version
    v16.20.0
    

    Try running addons/nodejs.sh install to update nodeJS version
    Code (Text):
    cmupdate
    /usr/local/src/centminmod/addons/nodejs.sh install
    

    then exit SSH session and re-run
    Code (Text):
    /root/tools/phpmyadmin_uninstall.sh
    cd /usr/local/src/centminmod/addons
    rm -rf phpmyadmin.sh
    wget --no-check-certificate https://github.com/centminmod/phpmyadmin/raw/master/phpmyadmin.sh
    chmod +x phpmyadmin.sh
    ./phpmyadmin.sh install
    
     
  9. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:57 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Yes it's an old setup... Not sure when exactly.

    Code:
    node --version
    v13.14.0
    
    I will follow your recommendation and i will let you know...

    Thanks !
     
  10. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:57 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    When i tried to install nodeJS using:

    Code:
    /usr/local/src/centminmod/addons/nodejs.sh install
    I got:

    Code:
    node.js install already detected
    
    if node.js was installed via this addon you can update node.js
    using below command to uninstall previous version:
    
     yum -y erase $(rpm -qa nodejs)
    
    then re-run this script to install node.js again
    As i don't remember how it was installed i run:

    Code:
     yum -y erase $(rpm -qa nodejs)
    and then i install it using:

    Code:
    /usr/local/src/centminmod/addons/nodejs.sh install
    ---------------------------
    Node.js Version: -n
    v16.20.0
    ---------------------------
    npm Version: -n
    9.7.1
    ---------------------------

    Then i follow your instructions for installing Phpmyadmin and i got again white page :(

    Then i checked the logs and i was able to see files missing from:

    Code:
    /usr/local/nginx/html/12345_mysqladmin12345/js/dist/
    I navigate to the path and it was empty and only one file .gitignore was there.

    Content of the file:

    Code:
    /*
    !/.gitignore
    I had also one more reference in the logs:

    Code:
    /usr/local/nginx/html/12345_mysqladmin12345/themes/pmahomme/css/theme.css
    Checking the path i found the file missing and a .gitignore filee was there.

    Content of the file:

    Code:
    /*.css
    /*.css.map

    Then i copy the missing files from another working installation and i apply the correct nginx:nginx permissions and all working great now !

    Don't know if you can apply a fix on the script to check for the empty dist folder and the missing theme.css....

    It seems that other users have issues with that specific folder and file.... don't know why...

    Maybe it can be caused by the update cron script as it works many times and then one day without adjusting anything is not working anymore?

    Thanks !!!!
     
  11. eva2000

    eva2000 Administrator Staff Member

    54,068
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    1:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    Very informative thanks! This one has always been a difficult one for me to re-produce the issue as not once have I actually been able to re-produce it.
     
  12. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:57 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Actually the folder:

    Code:
    /usr/local/nginx/html/12345_mysqladmin12345/themes/pmahomme/css/
    was empty as the dist folder too.

    So other files was missing too...

    On my working installation i have:

    Code:
    theme.css
    theme.css.map
    theme.rtl.css
    Don't know how that can be fixed.... A sync maybe ?

    I am pretty sure that the update script:

    /root/tools/phpmyadmin_update.sh

    somehow is emptying the dist and css folders.....

    Thanks !
     
  13. pamamolf

    pamamolf Premium Member Premium Member

    4,074
    427
    83
    May 31, 2014
    Ratings:
    +833
    Local Time:
    5:57 PM
    Nginx-1.25.x
    MariaDB 10.3.x
    Anyway to add a check for this issue and maybe sync or something ?
     
  14. eva2000

    eva2000 Administrator Staff Member

    54,068
    12,176
    113
    May 24, 2014
    Brisbane, Australia
    Ratings:
    +18,734
    Local Time:
    1:57 AM
    Nginx 1.27.x
    MariaDB 10.x/11.4+
    I made an update to phpmyadmin.sh and the phpmyadmin_update.sh so you can try that out via commands

    Code (Text):
    /root/tools/phpmyadmin_uninstall.sh
    cd /usr/local/src/centminmod/addons
    rm -rf phpmyadmin.sh
    wget --no-check-certificate https://github.com/centminmod/phpmyadmin/raw/master/phpmyadmin.sh
    chmod +x phpmyadmin.sh
    ./phpmyadmin.sh install
    


    Then after a few days, you can check the last centminmod_phpmyadmin_update log at /root/centminlogs for whether yarn created the CSS files with this command
    Code (Text):
    find /root/centminlogs/ -type f -name "centminmod_phpmyadmin_update*" -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f 2- | xargs grep -C20 "yarn"
    

    example output
    Code (Text):
    find /root/centminlogs/ -type f -name "centminmod_phpmyadmin_update*" -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f 2- | xargs grep -C20 "yarn"
    
      - Locking thecodingmachine/safe (v1.3.3)
      - Locking theseer/tokenizer (1.2.1)
      - Locking twig/twig (v3.6.1)
      - Locking vimeo/psalm (4.30.0)
      - Locking web-auth/cose-lib (v3.3.12)
      - Locking web-auth/metadata-service (v3.3.12)
      - Locking web-auth/webauthn-lib (v3.3.12)
      - Locking webmozart/assert (1.11.0)
      - Locking webmozart/path-util (2.3.0)
      - Locking williamdes/mariadb-mysql-kbs (v1.2.14)
    Writing lock file
    Installing dependencies from lock file
    Nothing to install, update or remove
    32 package suggestions were added by new dependencies, use `composer suggest` to see details.
    Package fgrosse/phpasn1 is abandoned, you should avoid using it. No replacement was suggested.
    Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.
    Generating autoload files
    17 packages you are using are looking for funding.
    Use the `composer fund` command to find out more!
    No security vulnerability advisories found
    yarn install v1.22.19
    [1/5] Validating package.json...
    [2/5] Resolving packages...
    success Already up-to-date.
    $ yarn run build
    yarn run v1.22.19
    $ yarn run css-compile --style=compressed && yarn run css-prefix && yarn run css-rtl && yarn run js-compile
    $ sass themes/pmahomme/scss:themes/pmahomme/css themes/original/scss:themes/original/css themes/metro/scss:themes/metro/css themes/bootstrap/scss:themes/bootstrap/css setup/scss:setup --style=compressed
    $ postcss themes/*/css/*.css setup/styles.css --use autoprefixer --replace
    $ yarn run rtlcss -c .rtlcssrc.json themes/bootstrap/css/theme.css && yarn run rtlcss -c .rtlcssrc.json themes/pmahomme/css/theme.css && yarn run rtlcss -c .rtlcssrc.json themes/original/css/theme.css && yarn run rtlcss -c .rtlcssrc.json themes/metro/css/theme.css && yarn run rtlcss -c .rtlcssrc.json themes/metro/css/blueeyes-theme.css && yarn run rtlcss -c .rtlcssrc.json themes/metro/css/mono-theme.css && yarn run rtlcss -c .rtlcssrc.json themes/metro/css/redmond-theme.css && yarn run rtlcss -c .rtlcssrc.json themes/metro/css/teal-theme.css
    $ /usr/local/nginx/html/13095_mysqladmin25705/node_modules/.bin/rtlcss -c .rtlcssrc.json themes/bootstrap/css/theme.css
    Saving:
    $ /usr/local/nginx/html/13095_mysqladmin25705/node_modules/.bin/rtlcss -c .rtlcssrc.json themes/pmahomme/css/theme.css
    Saving:
    $ /usr/local/nginx/html/13095_mysqladmin25705/node_modules/.bin/rtlcss -c .rtlcssrc.json themes/original/css/theme.css
    Saving:
    $ /usr/local/nginx/html/13095_mysqladmin25705/node_modules/.bin/rtlcss -c .rtlcssrc.json themes/metro/css/theme.css
    Saving:
    $ /usr/local/nginx/html/13095_mysqladmin25705/node_modules/.bin/rtlcss -c .rtlcssrc.json themes/metro/css/blueeyes-theme.css
    Saving:
    $ /usr/local/nginx/html/13095_mysqladmin25705/node_modules/.bin/rtlcss -c .rtlcssrc.json themes/metro/css/mono-theme.css
    Saving:
    $ /usr/local/nginx/html/13095_mysqladmin25705/node_modules/.bin/rtlcss -c .rtlcssrc.json themes/metro/css/redmond-theme.css
    Saving:
    $ /usr/local/nginx/html/13095_mysqladmin25705/node_modules/.bin/rtlcss -c .rtlcssrc.json themes/metro/css/teal-theme.css
    Saving:
    $ babel js/src -d js/dist
    Successfully compiled 78 files with Babel (2521ms).
    Done in 20.31s.
    Done in 20.77s.