Bench update --build failed

hello Geeks , i am try to edit in the original css file so i know that if i need updates to changed i must try this " bench update --build " i run this command in bench-frappe Directory .
but while i doing this i get an error , can any one helping me in that !
THANKS IN ADVANCED… ^ ^

— ERROR BELOW HERE —

Traceback (most recent call last):
File “/home/azahra/.local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/azahra/frappe-bench/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python3.5/dist-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python3.5/dist-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python3.5/dist-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python3.5/dist-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python3.5/dist-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/azahra/frappe-bench/bench-repo/bench/commands/update.py”, line 34, in update
patches.run(bench_path=’.’)
File “/home/azahra/frappe-bench/bench-repo/bench/patches/init.py”, line 21, in run
result = execute(bench_path)
File “/home/azahra/frappe-bench/bench-repo/bench/patches/v3/celery_to_rq.py”, line 7, in execute
frappe_branch = get_current_branch(‘frappe’, bench_path)
File “/home/azahra/frappe-bench/bench-repo/bench/app.py”, line 280, in get_current_branch
return get_cmd_output(“basename $(git symbolic-ref -q HEAD)”, cwd=repo_dir)
File “/home/azahra/frappe-bench/bench-repo/bench/utils.py”, line 370, in get_cmd_output
output = subprocess.check_output(cmd, cwd=cwd, shell=True, stderr=subprocess.PIPE).strip()
File “/usr/lib/python3.5/subprocess.py”, line 626, in check_output
**kwargs).stdout
File “/usr/lib/python3.5/subprocess.py”, line 693, in run
with Popen(*popenargs, **kwargs) as process:
File “/usr/lib/python3.5/subprocess.py”, line 947, in init
restore_signals, start_new_session)
File “/usr/lib/python3.5/subprocess.py”, line 1551, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: ‘./apps/frappe’
azahra@Zahra-ERP:~/frappe-bench/sites/zahra.demo-3$ clear
azahra@Zahra-ERP:~/frappe-bench/sites/zahra.demo-3$ cd …/
azahra@Zahra-ERP:~/frappe-bench/sites$ cd …/
azahra@Zahra-ERP:~/frappe-bench$ bench update --build
Backing up sites…
Traceback (most recent call last):
File “/usr/lib/python3.5/runpy.py”, line 184, in _run_module_as_main
main”, mod_spec)
File “/usr/lib/python3.5/runpy.py”, line 85, in _run_code
exec(code, run_globals)
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 97, in
main()
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 18, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 764, in call
return self.main(*args, **kwargs)
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 717, in main
rv = self.invoke(ctx)
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/click/core.py”, line 555, in invoke
return callback(*args, **kwargs)
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/azahra/frappe-bench/apps/frappe/frappe/commands/init.py”, line 25, in _func
ret = f(frappe.dict(ctx.obj), *args, **kwargs)
File “/home/azahra/frappe-bench/apps/frappe/frappe/commands/site.py”, line 315, in backup
odb = scheduled_backup(ignore_files=not with_files, backup_path_db=backup_path_db, backup_path_files=backup_path_files, backup_path_private_files=backup_path_private_files, force=True)
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/backups.py”, line 165, in scheduled_backup
odb = new_backup(older_than, ignore_files, backup_path_db=backup_path_db, backup_path_files=backup_path_files, force=force)
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/backups.py”, line 175, in new_backup
odb.get_backup(older_than, ignore_files, force=force)
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/backups.py”, line 48, in get_backup
self.set_backup_file_name()
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/backups.py”, line 61, in set_backup_file_name
todays_date = now_datetime().strftime(’%Y%m%d
%H%M%S’)
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/data.py”, line 126, in now_datetime
dt = convert_utc_to_user_timezone(datetime.datetime.utcnow())
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/data.py”, line 149, in convert_utc_to_user_timezone
return utcnow.astimezone(timezone(get_time_zone()))
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/data.py”, line 143, in get_time_zone
return frappe.cache().get_value(“time_zone”, _get_time_zone)
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 79, in get_value
val = generator()
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/data.py”, line 137, in _get_time_zone
return frappe.db.get_system_setting(‘time_zone’) or ‘Asia/Kolkata’ # Default to India ?!
File “/home/azahra/frappe-bench/apps/frappe/frappe/database/database.py”, line 894, in get_system_setting
return frappe.cache().get_value(“system_settings”, _load_system_settings).get(key)
File “/home/azahra/frappe-bench/apps/frappe/frappe/utils/redis_wrapper.py”, line 79, in get_value
val = generator()
File “/home/azahra/frappe-bench/apps/frappe/frappe/database/database.py”, line 893, in _load_system_settings
return self.get_singles_dict(“System Settings”)
File “/home/azahra/frappe-bench/apps/frappe/frappe/database/database.py”, line 518, in get_singles_dict
“”", doctype)
File “/home/azahra/frappe-bench/apps/frappe/frappe/database/database.py”, line 122, in sql
self.connect()
File “/home/azahra/frappe-bench/apps/frappe/frappe/database/database.py”, line 75, in connect
self._conn = self.get_connection()
File “/home/azahra/frappe-bench/apps/frappe/frappe/database/mariadb/database.py”, line 90, in get_connection
local_infile = frappe.conf.local_infile)
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/pymysql/init.py”, line 94, in Connect
return Connection(*args, **kwargs)
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/pymysql/connections.py”, line 325, in init
self.connect()
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/pymysql/connections.py”, line 599, in connect
self._request_authentication()
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/pymysql/connections.py”, line 861, in _request_authentication
auth_packet = self._read_packet()
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/pymysql/connections.py”, line 684, in _read_packet
packet.check_error()
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/pymysql/protocol.py”, line 220, in check_error
err.raise_mysql_exception(self._data)
File “/home/azahra/frappe-bench/env/lib/python3.5/site-packages/pymysql/err.py”, line 109, in raise_mysql_exception
raise errorclass(errno, errval)
pymysql.err.OperationalError: (1045, “Access denied for user ‘_a94a8fe5ccb19ba6’@‘localhost’ (using password: YES)”)

The error message suggests a password problem. What happens if you try: bench mariadb ?

Also you could try this again:

bench build

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.