• SupportTutorial
  • aaPanel 7.x operating environment upgrade to Python 3.12 Questions and Answers

aaPanel_Kern

I solved it like this, the root user was completely without permission

$ cd /usr/bin
$ sudo chmod -R a+x .
$ sudo ufw status

a month later

hi,
but this is not normal:
/tmp/panel.zip 16%[============> ] 4.76M 7.50KB/s eta 17m 43s
and this speed in 900+ Mbps down speed..

can show docker compose and not display docker template.
i use versioin 7.0.10

4 days later

please help ... i have been update this day , but i can't open aapanel .... anithyng from here i try but not working ....

help please

website is running normally , but i can open aapanel ...

    Hello, use the ssh tool or the server provider's VNC to execute the following command to check the aapanel status
    curl -k https://www.aapanel.com/script/aapanel_check.sh | bash

    Or manually execute the command to update once
    rm -f /tmp/update_to7.pl && curl -k https://node.aapanel.com/install/update_7.x_en.sh | bash

    aaP_bachu_zaman


    Internet speed is 6-700Mbps already tested
    why is this happening? is there such a restriction on downloading panel.zip?

      Hello, there is no limit. This is a service provided by CloudFlare. It may be caused by the slow speed of CloudFlare from the region.

      neonitro

        a month later

        After updating to the latest version of Aapanel, some apps running on my Docker are not functioning


        2024-11-29T12:33:32.478160Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.

        2024-11-29T12:33:32.522761Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock

        2024-11-29T12:33:32.522810Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.34' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.

        2024-11-29 12:34:33+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:34:33+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:34:33+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:34:34.417297Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:34:34.419550Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:34:34.438034Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29T12:34:35.068232Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

        2024-11-29T12:34:35.321980Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...

        2024-11-29T12:34:35.343177Z 0 [System] [MY-010232] [Server] XA crash recovery finished.

        2024-11-29 12:35:36+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:35:37+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:35:37+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:35:37.757119Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:35:37.760721Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:35:37.774074Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29 12:36:38+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:36:39+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:36:39+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:36:39.876221Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:36:39.878708Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:36:39.890421Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29T12:36:40.818367Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

        2024-11-29 12:37:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:37:42+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:37:42+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:37:42.747537Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:37:42.751990Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:37:42.779093Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29T12:37:43.517143Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

        2024-11-29 12:38:44+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:38:44+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:38:44+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:38:45.404870Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:38:45.407357Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:38:45.423092Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29T12:38:46.272176Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

        2024-11-29 12:39:47+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:39:47+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:39:47+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:39:48.485675Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:39:48.489359Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:39:48.503030Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29T12:39:49.126965Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

        2024-11-29 12:40:49+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:40:50+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:40:50+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:40:50.891944Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:40:50.893775Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:40:50.901950Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29T12:40:51.528269Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

        2024-11-29T12:40:51.770262Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...

        2024-11-29T12:40:51.784373Z 0 [System] [MY-010232] [Server] XA crash recovery finished.

        2024-11-29T12:40:51.860986Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.

        2024-11-29T12:40:51.861030Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.

        2024-11-29T12:40:51.865597Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.

        2024-11-29 12:41:52+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:41:52+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:41:52+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:41:53.447369Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:41:53.449999Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:41:53.464190Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29T12:41:54.343636Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

        2024-11-29 12:42:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:42:55+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:42:55+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:42:56.692010Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:42:56.695256Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:42:56.705239Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29 12:43:57+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:43:58+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:43:58+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:43:58.675620Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:43:58.677521Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:43:58.686265Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        2024-11-29T12:43:59.391436Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.

        2024-11-29T12:43:59.673416Z 0 [System] [MY-010229] [Server] Starting XA crash recovery...

        2024-11-29T12:43:59.689314Z 0 [System] [MY-010232] [Server] XA crash recovery finished.

        2024-11-29T12:43:59.748286Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.

        2024-11-29T12:43:59.748340Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel.

        2024-11-29T12:43:59.752556Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.

        2024-11-29 12:45:00+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        2024-11-29 12:45:01+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'

        2024-11-29 12:45:01+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.34-1.el8 started.

        '/var/lib/mysql/mysql.sock' -> '/var/run/mysqld/mysqld.sock'

        2024-11-29T12:45:01.811543Z 0 [Warning] [MY-011068] [Server] The syntax '--skip-host-cache' is deprecated and will be removed in a future release. Please use SET GLOBAL host_cache_size=0 instead.

        2024-11-29T12:45:01.815192Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.34) starting as process 1

        2024-11-29T12:45:01.826552Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.

        Hello, I suggest you check if there is a port conflict?

        3 months later

        why my password was changed i do not changed my password
        and i cant login to the panel

        this panel sucks and has remote acccess to the server

        i always use the same credentials and now i cant even login to the panel

        i will post this on internet it has back keylogger and remote access my password was changed

          21 days later

          Hi
          After update, I got an 'Internal Server Error' error page.
          I try:

          • bt 14
          • curl -k https://node.aapanel.com/install/update_7.x_en.sh | bash
          • restart my VPS
          • cancel domian binding
            Any idea?


            Hello,
            Try restarting the panel once and checking for errors, check logs: bt 1 && bt 22

            saman

            @aaPanel_Kern, Thanks for answering.
            I got the following error:

            File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1454, in wsgi_app
                ctx.push()
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/ctx.py", line 377, in push
                self.session = session_interface.open_session(self.app, self.request)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/class/flask_session/sessions.py", line 233, in open_session
                sid = request.cookies.get(app.session_cookie_name)
                                          ^^^^^^^^^^^^^^^^^^^^^^^
            AttributeError: 'Flask' object has no attribute 'session_cookie_name'
            
            Traceback (most recent call last):
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1454, in wsgi_app
                ctx.push()
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/ctx.py", line 377, in push
                self.session = session_interface.open_session(self.app, self.request)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/class/flask_session/sessions.py", line 233, in open_session
                sid = request.cookies.get(app.session_cookie_name)
                                          ^^^^^^^^^^^^^^^^^^^^^^^
            AttributeError: 'Flask' object has no attribute 'session_cookie_name'
            
            During handling of the above exception, another exception occurred:
            
            Traceback (most recent call last):
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/gevent/pywsgi.py", line 1107, in handle_one_response
                self.run_application()
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/gevent/pywsgi.py", line 1053, in run_application
                self.result = self.application(self.environ, self.start_response)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1478, in __call__
                return self.wsgi_app(environ, start_response)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1458, in wsgi_app
                response = self.handle_exception(e)
                           ^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 810, in handle_exception
                server_error = self.ensure_sync(handler)(server_error)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/BTPanel/__init__.py", line 523, in error_500
                if not session.get('login', None):
                       ^^^^^^^^^^^
            AttributeError: 'NoneType' object has no attribute 'get'
            2025-03-28T06:22:09Z {'HTTP_HOST': 'MY_VPS_IP:26121', (hidden keys: 27)} failed with AttributeError
            
            [2025-03-28 06:22:09,566][ERROR] - Exception on /favicon.ico [GET]
            Traceback (most recent call last):
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1454, in wsgi_app
                ctx.push()
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/ctx.py", line 377, in push
                self.session = session_interface.open_session(self.app, self.request)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/class/flask_session/sessions.py", line 233, in open_session
                sid = request.cookies.get(app.session_cookie_name)
                                          ^^^^^^^^^^^^^^^^^^^^^^^
            AttributeError: 'Flask' object has no attribute 'session_cookie_name'
            [2025-03-28 06:22:09][DEBUG] - Traceback (most recent call last):
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1454, in wsgi_app
                ctx.push()
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/ctx.py", line 377, in push
                self.session = session_interface.open_session(self.app, self.request)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/class/flask_session/sessions.py", line 233, in open_session
                sid = request.cookies.get(app.session_cookie_name)
                                          ^^^^^^^^^^^^^^^^^^^^^^^
            AttributeError: 'Flask' object has no attribute 'session_cookie_name'
            
            Traceback (most recent call last):
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1454, in wsgi_app
                ctx.push()
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/ctx.py", line 377, in push
                self.session = session_interface.open_session(self.app, self.request)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/class/flask_session/sessions.py", line 233, in open_session
                sid = request.cookies.get(app.session_cookie_name)
                                          ^^^^^^^^^^^^^^^^^^^^^^^
            AttributeError: 'Flask' object has no attribute 'session_cookie_name'
            
            During handling of the above exception, another exception occurred:
            
            Traceback (most recent call last):
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/gevent/pywsgi.py", line 1107, in handle_one_response
                self.run_application()
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/gevent/pywsgi.py", line 1053, in run_application
                self.result = self.application(self.environ, self.start_response)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1478, in __call__
                return self.wsgi_app(environ, start_response)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 1458, in wsgi_app
                response = self.handle_exception(e)
                           ^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/pyenv/lib/python3.12/site-packages/flask/app.py", line 810, in handle_exception
                server_error = self.ensure_sync(handler)(server_error)
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
              File "/www/server/panel/BTPanel/__init__.py", line 523, in error_500
                if not session.get('login', None):
                       ^^^^^^^^^^^
            AttributeError: 'NoneType' object has no attribute 'get'
            2025-03-28T06:22:09Z {'HTTP_HOST': 'MY_VPS_IP:26121', (hidden keys: 26)} failed with AttributeError

              saman
              Hi, can you give us your aapanel information? The server makes a snapshot backup first, if possible, please send it to kern@aapanel.com.
              It is recommended to fill in the following
              Post link:
              SSH IP address, account password and port:
              aapanel login link address and account password:
              Detailed problem description:

              No post link will not be able to know which user's information is, and the problem will not be processed

              I think the error ouccur because somehow I upgrade Flask version from 2xx to 3.xx and in the new version app.session_cookie_name removed.

                Hello, is the problem solved?
                Is it normal to try to install Flask 2.2.5 version?
                Or delete pyenv and repair the panel?

                mv /www/server/panel/pyenv /www/server/panel/pyenv_bak
                rm -f /tmp/update_to7.pl && curl -k https://node.aapanel.com/install/update_7.x_en.sh | bash

                saman