ERPNext Conference 2019* ERPNext.com Blog

Error 404 after upgrading from 12.014 to 12.015

update_problem

#1

Hi,

As stated in the object I(ve tried to update from 12.0.14 to 12.0.15 and I got a 404 error. I 've done :

bench update
bench update --patch

I didn’t have any error code , did I do something wrong?


#2

You supervisor processes might not have restarted

sudo supervisorctl restart all


#3

Hello
Thank you for the tips but it didn’t solve the issue.
Cheers,
Philippe


#4

can you share the logs


#5

I’m not sure on how to access them since I can’t access the application, can you tell me where to find them on the server?


#6

SInce I wasn’t able to fix the 404 error I’ve decided to reinstal version 12 frome scratch (after saving the base and retoring it on a local VM. I’ve tried many time and each time I get error around mariaDB , this is a copy of where the script fail :

TASK [mariadb : Set root Password]


task path: /tmp/.bench/playbooks/roles/mariadb/tasks/mysql_secure_installation.yml:14
<127.0.0.1> ESTABLISH LOCAL CONNECTION FOR USER: root
<127.0.0.1> EXEC /bin/sh -c ‘echo ~root && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1570293576.13-38720646256982” && echo ansible-tmp-1570293576.13-38720646256982="echo /root/.ansible/tmp/ansible-tmp-1570293576.13-38720646256982" ) && sleep 0’

Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/database/mysql/mysql_user.py
<127.0.0.1> PUT /root/.ansible/tmp/ansible-local-7763vRYO7T/tmpKuCk9x TO /root/.ansible/tmp/ansible-tmp-1570293576.13-38720646256982/AnsiballZ_mysql_user.py
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1570293576.13-38720646256982/ /root/.ansible/tmp/ansible-tmp-1570293576.13-38720646256982/AnsiballZ_mysql_user.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-tmp-1570293576.13-38720646256982/AnsiballZ_mysql_user.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /root/.ansible/tmp/ansible-tmp-1570293576.13-38720646256982/ > /dev/null 2>&1 && sleep 0’
failed: [localhost] (item=localhost) => { “ansible_loop_var”: “item”, “changed”: false, “invocation”: { “module_args”: { “append_privs”: false, “ca_cert”: null, “check_implicit_admin”: true, “client_cert”: null, “client_key”: null, “config_file”: “/root/.my.cnf”, “connect_timeout”: 30, “encrypted”: false, “host”: “localhost”, “host_all”: false, “login_host”: “localhost”, “login_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “login_port”: 3306, “login_unix_socket”: null, “login_user”: null, “name”: “root”, “password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “priv”: null, “sql_log_bin”: true, “state”: “present”, “update_password”: “always”, “user”: “root” } }, “item”: “localhost”, “msg”: “The PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required.” } <127.0.0.1> EXEC /bin/sh -c ‘echo ~root && sleep 0’ <127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1570293576.8-258083813208052” && echo ansible-tmp-1570293576.8-258083813208052="echo /root/.ansible/tmp/ansible-tmp-1570293576.8-258083813208052" ) && sleep 0’
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/database/mysql/mysql_user.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-7763vRYO7T/tmpkTu0Vy TO /root/.ansible/tmp/ansible-tmp-1570293576.8-258083813208052/AnsiballZ_mysql_user.py
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1570293576.8-258083813208052/ /root/.ansible/tmp/ansible-tmp-1570293576.8-258083813208052/AnsiballZ_mysql_user.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-tmp-1570293576.8-258083813208052/AnsiballZ_mysql_user.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /root/.ansible/tmp/ansible-tmp-1570293576.8-258083813208052/ > /dev/null 2>&1 && sleep 0’
failed: [localhost] (item=127.0.0.1) => { “ansible_loop_var”: “item”, “changed”: false, “invocation”: { “module_args”: {
“append_privs”: false, “ca_cert”: null, “check_implicit_admin”: true, “client_cert”: null, “client_key”: null, “config_file”: “/root/.my.cnf”, “connect_timeout”: 30, “encrypted”: false, “host”: “127.0.0.1”, “host_all”: false, “login_host”: “localhost”, “login_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “login_port”: 3306, “login_unix_socket”: null, “login_user”: null, “name”: “root”, “password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “priv”: null, “sql_log_bin”: true, “state”: “present”, “update_password”: “always”, “user”: “root” } }, “item”: “127.0.0.1”, “msg”: “The PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required.” } <127.0.0.1> EXEC /bin/sh -c ‘echo ~root && sleep 0’ <127.0.0.1> EXEC /bin/sh -c ‘( umask 77 && mkdir -p “echo /root/.ansible/tmp/ansible-tmp-1570293577.07-144663544276935” && echo ansible-tmp-1570293577.07-144663544276935="echo /root/.ansible/tmp/ansible-tmp-1570293577.07-144663544276935" ) && sleep 0’
Using module file /usr/local/lib/python2.7/dist-packages/ansible/modules/database/mysql/mysql_user.py <127.0.0.1> PUT /root/.ansible/tmp/ansible-local-7763vRYO7T/tmpydU40J TO /root/.ansible/tmp/ansible-tmp-1570293577.07-144663544276935/AnsiballZ_mysql_user.py
<127.0.0.1> EXEC /bin/sh -c ‘chmod u+x /root/.ansible/tmp/ansible-tmp-1570293577.07-144663544276935/ /root/.ansible/tmp/ansible-tmp-1570293577.07-144663544276935/AnsiballZ_mysql_user.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘/usr/bin/python /root/.ansible/tmp/ansible-tmp-1570293577.07-144663544276935/AnsiballZ_mysql_user.py && sleep 0’
<127.0.0.1> EXEC /bin/sh -c ‘rm -f -r /root/.ansible/tmp/ansible-tmp-1570293577.07-144663544276935/ > /dev/null 2>&1 && sleep 0’
failed: [localhost] (item=::1) => {
“ansible_loop_var”: “item”, “changed”: false, “invocation”: { “module_args”: { “append_privs”: false, “ca_cert”: null, “check_implicit_admin”: true, “client_cert”: null, “client_key”: null, “config_file”: “/root/.my.cnf”, “connect_timeout”: 30, “encrypted”: false, “host”: “::1”, “host_all”: false,
“login_host”: “localhost”, “login_password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “login_port”: 3306, “login_unix_socket”: null, “login_user”: null, “name”: “root”, “password”: “VALUE_SPECIFIED_IN_NO_LOG_PARAMETER”, “priv”: null, “sql_log_bin”: true, “state”: “present”, “update_password”: “always”, “user”: “root” } }, “item”: “::1”, “msg”: “The PyMySQL (Python 2.7 and Python 3.X) or MySQL-python (Python 2.X) module is required.” }
RUNNING HANDLER [mariadb : restart mysql] ******************************************************************************task path: /tmp/.bench/playbooks/roles/mariadb/handlers/main.yml:2
PLAY RECAP *************************************************************************************************************localhost : ok=22 changed=8 unreachable=0 failed=1 skipped=15 rescued=0 ignored=0
Traceback (most recent call last):
File “install.py”, line 413, in
install_bench(args)
File “install.py”, line 135, in install_bench
run_playbook(‘site.yml’, sudo=True, extra_vars=extra_vars)
File “install.py”, line 327, in run_playbook
success = subprocess.check_call(args, cwd=os.path.join(cwd, ‘playbooks’))
File “/usr/lib/python3.6/subprocess.py”, line 311, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command ‘[‘ansible-playbook’, ‘-c’, ‘local’, ‘site.yml’, ‘-vvvv’, ‘-e’, ‘@/tmp/extra_vars.json’, ‘–become’, ‘–become-user=frappe’]’ returned non-zero exit status 2.
frappe@vm14-17:~$ locale