Cant Install phpmyadmin

What type of hardware are you using: Other(?)
What YunoHost version are you running: 12
How are you able to access your server: The webadmin

Describe your issue

We cant install panel on yunohost phpmyadmin

Share relevant logs or error messages

ERROR 1045 (28000): Access denied for user ‘root’@‘localhost’ (using password: NO)

args:
  app: phpmyadmin
  force: false
  label: phpMyAdmin
  no_remove_on_failure: false
ended_at: 2025-05-03 14:28:46.714209
error: An error occured inside the script snippet
interface: api
operation: app_install
parent: 20250503-133551-resource_snippet-phpmyadmin
related_to:
- - app
  - phpmyadmin
started_at: 2025-05-03 14:28:43.589216
success: false
yunohost_version: 12.0.13

============

2025-05-03 10:28:43,591: INFO - Installing phpmyadmin…
2025-05-03 10:28:43,594: INFO - Provisioning sources...
2025-05-03 10:28:43,595: DEBUG - Prefetching asset main: https://files.phpmyadmin.net/phpMyAdmin/5.2.2/phpMyAdmin-5.2.2-all-languages.tar.gz ...
2025-05-03 10:28:44,010: INFO - Provisioning system_user...
2025-05-03 10:28:44,057: INFO - Provisioning install_dir...
2025-05-03 10:28:44,060: INFO - Provisioning permissions...
2025-05-03 10:28:44,068: DEBUG - Permission 'phpmyadmin.main' updated
2025-05-03 10:28:44,068: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250503-142844-permission_url-phpmyadmin" style="text-decoration:underline">Update URL related to permission 'phpmyadmin'</a>'
2025-05-03 10:28:44,071: DEBUG - Permission 'phpmyadmin.main' created
2025-05-03 10:28:44,071: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250503-142844-permission_create-phpmyadmin" style="text-decoration:underline">Create permission 'phpmyadmin'</a>'
2025-05-03 10:28:44,078: DEBUG - Permission 'phpmyadmin.main' updated
2025-05-03 10:28:44,078: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250503-142844-user_permission_update-phpmyadmin" style="text-decoration:underline">Update accesses for permission 'phpmyadmin'</a>'
2025-05-03 10:28:44,084: DEBUG - Nothing to update in LDAP
2025-05-03 10:28:44,084: DEBUG - Permission 'phpmyadmin.main' updated
2025-05-03 10:28:44,085: DEBUG - Full log of this operation: '<a href="#/tools/logs/20250503-142844-permission_url-phpmyadmin" style="text-decoration:underline">Update URL related to permission 'phpmyadmin'</a>'
2025-05-03 10:28:44,088: DEBUG - The permission database has been resynchronized
2025-05-03 10:28:44,100: DEBUG - SSO and portal configurations regenerated
2025-05-03 10:28:44,105: INFO - Provisioning apt...
2025-05-03 10:28:44,109: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_or_update_apt"  7>&1']'
2025-05-03 10:28:44,112: DEBUG - + source /usr/share/yunohost/helpers
2025-05-03 10:28:44,113: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-05-03 10:28:44,113: DEBUG - +++ cd -- /usr/share/yunohost
2025-05-03 10:28:44,113: DEBUG - +++ pwd
2025-05-03 10:28:44,114: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-05-03 10:28:44,114: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-05-03 10:28:44,115: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-05-03 10:28:44,115: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-05-03 10:28:44,123: DEBUG - + ynh_abort_if_errors
2025-05-03 10:28:44,123: DEBUG - + trap ynh_exit_properly EXIT
2025-05-03 10:28:44,123: DEBUG - + ynh_apt_install_dependencies mariadb-server php8.3-xml php8.3-curl php8.3-zip php8.3-mysql php8.3-mbstring
2025-05-03 10:28:44,123: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2025-05-03 10:28:44,123: DEBUG - ++ sed 's/|/ | /'
2025-05-03 10:28:44,124: DEBUG - + local 'dependencies=mariadb-server, php8.3-xml, php8.3-curl, php8.3-zip, php8.3-mysql, php8.3-mbstring'
2025-05-03 10:28:44,125: DEBUG - ++ ynh_read_manifest version
2025-05-03 10:28:44,125: DEBUG - ++ cat /var/cache/yunohost/app_tmp_work_dirs/app_0dm6f2zr/manifest.toml
2025-05-03 10:28:44,125: DEBUG - ++ toml_to_json
2025-05-03 10:28:44,125: DEBUG - ++ python3 -c 'import toml, json, sys; print(json.dumps(toml.load(sys.stdin)))'
2025-05-03 10:28:44,125: DEBUG - ++ jq .version --raw-output
2025-05-03 10:28:44,147: DEBUG - + local version=5.2.2~ynh1
2025-05-03 10:28:44,147: DEBUG - + local app_ynh_deps=phpmyadmin-ynh-deps
2025-05-03 10:28:44,147: DEBUG - + grep '[<=>]'
2025-05-03 10:28:44,148: DEBUG - ++ grep -oP '(?<=php)[0-9.]+(?=-|\>|)'
2025-05-03 10:28:44,149: DEBUG - ++ sort -u
2025-05-03 10:28:44,149: DEBUG - + local specific_php_version=8.3
2025-05-03 10:28:44,149: DEBUG - + [[ -n 8.3 ]]
2025-05-03 10:28:44,149: DEBUG - ++ echo 8.3
2025-05-03 10:28:44,150: DEBUG - ++ wc -l
2025-05-03 10:28:44,150: DEBUG - + [[ 1 -eq 1 ]]
2025-05-03 10:28:44,150: DEBUG - + dependencies+=', php8.3, php8.3-fpm, php8.3-common'
2025-05-03 10:28:44,151: DEBUG - ++ ynh_app_setting_get --key=php_version
2025-05-03 10:28:44,186: DEBUG - + local old_php_version=
2025-05-03 10:28:44,186: DEBUG - + '[' -n '' ']'
2025-05-03 10:28:44,186: DEBUG - + ynh_app_setting_set --key=php_version --value=8.3
2025-05-03 10:28:44,231: DEBUG - + test -e /usr/bin/php7.4
2025-05-03 10:28:44,231: DEBUG - ++ _ynh_apt_package_is_installed postgresql-13
2025-05-03 10:28:44,231: DEBUG - ++ local package=postgresql-13
2025-05-03 10:28:44,232: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-13
2025-05-03 10:28:44,232: DEBUG - ++ grep --quiet '^installed$'
2025-05-03 10:28:44,249: DEBUG - ++ echo no
2025-05-03 10:28:44,249: DEBUG - + local psql_installed=no
2025-05-03 10:28:44,249: DEBUG - + [[ true == \t\r\u\e ]]
2025-05-03 10:28:44,249: DEBUG - + YNH_APT_INSTALL_DEPENDENCIES_REPLACE=false
2025-05-03 10:28:44,249: DEBUG - ++ mktemp --directory
2025-05-03 10:28:44,250: DEBUG - + local TMPDIR=/tmp/tmp.j9jyRBSBdw
2025-05-03 10:28:44,250: DEBUG - + mkdir -p /tmp/tmp.j9jyRBSBdw/phpmyadmin-ynh-deps/DEBIAN
2025-05-03 10:28:44,251: DEBUG - + chmod -R 755 /tmp/tmp.j9jyRBSBdw/phpmyadmin-ynh-deps
2025-05-03 10:28:44,251: DEBUG - + cat
2025-05-03 10:28:44,252: DEBUG - + _ynh_apt update
2025-05-03 10:28:44,252: DEBUG - + _ynh_wait_dpkg_free
2025-05-03 10:28:44,256: WARNING - lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/112/gvfs
2025-05-03 10:28:44,257: WARNING -       Output information may be incomplete.
2025-05-03 10:28:44,258: WARNING - lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/49091/gvfs
2025-05-03 10:28:44,259: WARNING -       Output information may be incomplete.
2025-05-03 10:28:44,397: DEBUG - + return 0
2025-05-03 10:28:44,398: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2025-05-03 10:28:44,483: DEBUG - Hit:2 http://security.debian.org/debian-security bookworm-security InRelease
2025-05-03 10:28:44,484: DEBUG - Hit:3 https://packages.sury.org/php bookworm InRelease
2025-05-03 10:28:44,498: DEBUG - Hit:4 https://dl.yarnpkg.com/debian stable InRelease
2025-05-03 10:28:44,578: DEBUG - Hit:5 http://ftp.tr.debian.org/debian bookworm InRelease
2025-05-03 10:28:44,609: DEBUG - Hit:1 https://forge.yunohost.org/debian bookworm InRelease
2025-05-03 10:28:44,636: DEBUG - Hit:6 http://ftp.tr.debian.org/debian bookworm-updates InRelease
2025-05-03 10:28:45,251: DEBUG - Reading package lists...
2025-05-03 10:28:45,258: DEBUG - + _ynh_wait_dpkg_free
2025-05-03 10:28:45,262: WARNING - lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/112/gvfs
2025-05-03 10:28:45,263: WARNING -       Output information may be incomplete.
2025-05-03 10:28:45,264: WARNING - lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/49091/gvfs
2025-05-03 10:28:45,266: WARNING -       Output information may be incomplete.
2025-05-03 10:28:45,380: DEBUG - + return 0
2025-05-03 10:28:45,381: DEBUG - + dpkg-deb --build /tmp/tmp.j9jyRBSBdw/phpmyadmin-ynh-deps /tmp/tmp.j9jyRBSBdw/phpmyadmin-ynh-deps.deb
2025-05-03 10:28:45,388: DEBUG - + dpkg --force-depends --install /tmp/tmp.j9jyRBSBdw/phpmyadmin-ynh-deps.deb
2025-05-03 10:28:45,388: DEBUG - + tee /tmp/tmp.j9jyRBSBdw/dpkg_log
2025-05-03 10:28:45,419: DEBUG - Selecting previously unselected package phpmyadmin-ynh-deps.
2025-05-03 10:28:45,481: DEBUG - (Reading database ... 216950 files and directories currently installed.)
2025-05-03 10:28:45,486: DEBUG - Preparing to unpack .../phpmyadmin-ynh-deps.deb ...
2025-05-03 10:28:45,486: DEBUG - Unpacking phpmyadmin-ynh-deps (5.2.2~ynh1) ...
2025-05-03 10:28:45,496: DEBUG - Setting up phpmyadmin-ynh-deps (5.2.2~ynh1) ...
2025-05-03 10:28:45,512: DEBUG - + _ynh_apt_install --fix-broken
2025-05-03 10:28:45,512: DEBUG - + _ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-05-03 10:28:45,512: DEBUG - + _ynh_wait_dpkg_free
2025-05-03 10:28:45,516: WARNING - lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/112/gvfs
2025-05-03 10:28:45,517: WARNING -       Output information may be incomplete.
2025-05-03 10:28:45,518: WARNING - lsof: WARNING: can't stat() fuse.gvfsd-fuse file system /run/user/49091/gvfs
2025-05-03 10:28:45,519: WARNING -       Output information may be incomplete.
2025-05-03 10:28:45,636: DEBUG - + return 0
2025-05-03 10:28:45,636: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2025-05-03 10:28:45,724: DEBUG - Reading package lists...
2025-05-03 10:28:45,842: DEBUG - Building dependency tree...
2025-05-03 10:28:45,844: DEBUG - Reading state information...
2025-05-03 10:28:45,947: DEBUG - 0 upgraded, 0 newly installed, 0 to remove and 42 not upgraded.
2025-05-03 10:28:45,948: DEBUG - + rm --recursive --force /tmp/tmp.j9jyRBSBdw
2025-05-03 10:28:45,949: DEBUG - + _ynh_apt_package_is_installed phpmyadmin-ynh-deps
2025-05-03 10:28:45,949: DEBUG - + local package=phpmyadmin-ynh-deps
2025-05-03 10:28:45,949: DEBUG - + dpkg-query --show '--showformat=${db:Status-Status}' phpmyadmin-ynh-deps
2025-05-03 10:28:45,949: DEBUG - + grep --quiet '^installed$'
2025-05-03 10:28:45,966: DEBUG - ++ _ynh_apt_package_is_installed postgresql-13
2025-05-03 10:28:45,966: DEBUG - ++ local package=postgresql-13
2025-05-03 10:28:45,966: DEBUG - ++ dpkg-query --show '--showformat=${db:Status-Status}' postgresql-13
2025-05-03 10:28:45,966: DEBUG - ++ grep --quiet '^installed$'
2025-05-03 10:28:45,983: DEBUG - ++ echo no
2025-05-03 10:28:45,984: DEBUG - + local psql_installed2=no
2025-05-03 10:28:45,984: DEBUG - + [[ no != \n\o ]]
2025-05-03 10:28:45,984: DEBUG - + ynh_exit_properly
2025-05-03 10:28:45,984: DEBUG - + [[ provision_or_update_apt =~ ^install$|^upgrade$|^restore$ ]]
2025-05-03 10:28:46,085: INFO - Provisioning database...
2025-05-03 10:28:46,096: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "./provision_database"  7>&1']'
2025-05-03 10:28:46,097: DEBUG - + source /usr/share/yunohost/helpers
2025-05-03 10:28:46,098: DEBUG - ++++ dirname -- /usr/share/yunohost/helpers
2025-05-03 10:28:46,098: DEBUG - +++ cd -- /usr/share/yunohost
2025-05-03 10:28:46,098: DEBUG - +++ pwd
2025-05-03 10:28:46,098: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-05-03 10:28:46,098: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-05-03 10:28:46,099: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2025-05-03 10:28:46,099: DEBUG - ++ XTRACE_ENABLE='set -o xtrace'
2025-05-03 10:28:46,107: DEBUG - + ynh_abort_if_errors
2025-05-03 10:28:46,107: DEBUG - + trap ynh_exit_properly EXIT
2025-05-03 10:28:46,107: DEBUG - + ynh_mysql_create_db phpmyadmin phpmyadmin **********
2025-05-03 10:28:46,107: DEBUG - + local db=phpmyadmin
2025-05-03 10:28:46,107: DEBUG - + local 'sql=CREATE DATABASE phpmyadmin;'
2025-05-03 10:28:46,107: DEBUG - + [[ 3 -gt 1 ]]
2025-05-03 10:28:46,107: DEBUG - + sql+=' GRANT ALL PRIVILEGES ON phpmyadmin.* TO '\''phpmyadmin'\''@'\''localhost'\'''
2025-05-03 10:28:46,107: DEBUG - + [[ -n ********** ]]
2025-05-03 10:28:46,108: DEBUG - + sql+=' IDENTIFIED BY '\''**********'\'''
2025-05-03 10:28:46,108: DEBUG - + sql+=' WITH GRANT OPTION;'
2025-05-03 10:28:46,108: DEBUG - + mysql -B
2025-05-03 10:28:46,110: WARNING - ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
2025-05-03 10:28:46,112: DEBUG - + ynh_exit_properly
2025-05-03 10:28:46,112: DEBUG - + [[ provision_database =~ ^install$|^upgrade$|^restore$ ]]
2025-05-03 10:28:46,712: ERROR - provision failed for database : An error occured inside the script snippet

Mokay, can you share the output of :

grep -nr 'auth_socket\|unix_socket' /etc/mysql

?

I solved that problem but now I’m having problems with nginx.

502 Incorrect Gateway

If you see this page, your connection to the server is working, but the internal service providing this path is not responding.

Admin, make sure the service is running and check its logs if it is not. The Services page is in your webadmin under Tools > Services.

Thank you for using YunoHost.

also installed php version 8.3

I’m getting a 502 Bad Gateway.

Translated with DeepL.com (free version)

Can you explain what was the problem and how you solved it …

1 Like

sudo yunohost app install phpmyadmin --args “domain=tools.domain.com&path=/phpmyadmin”

installing no problem