question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

missing Bench command 'set-mariadb-host'

See original GitHub issue

Description of the issue

command ‘bench set-mariadb-host mariadb’ acts like that command doesn’t exist:

$ bench set-mariadb-host mariadb
Usage: bench frappe [OPTIONS] COMMAND [ARGS]...
Try 'bench frappe --help' for help.

Error: No such command 'set-mariadb-host'.

Context information (for bug reports)

Steps to reproduce the issue

Following the procedure for setting up a new dev environment

I’ve been following this procedure without error until yesterday. This is my first issue submission so apologies for not having more info.

Observed result

Screenshot 2022-01-03 181253

Expected result

No error / mariadb is set as db_host

Stacktrace / full error message if available

total error listed above

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:2
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
robprojectcommented, Jan 4, 2022

Manually adding "db_host": "mariadb", to frappe-bench/sites/common_site_config.json allowed me to continue regularly. Seems like mariadb is also a command and it gets confused. Using bench set-mariadb-host anyotherstring works.

1reaction
CleoMenezesJrcommented, Jan 11, 2022

Deleted my comment that said it didn’t work. The workaround works perfectly, I was doing it wrong,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker local server development setup error - ERPNext Forum
Description of the issue command 'bench set-mariadb-host mariadb' acts like that command doesn't exist: $ bench set-mariadb-host mariadb Usage: ...
Read more >
Bench Commands - Frappe Framework
A set of commands that don't classify broadly in the other commands. ... Set MariaDB host for bench; set-redis-cache-host: Set Redis cache host...
Read more >
CREATE USER - MariaDB Knowledge Base
Host Name Component; User Name Component; Anonymous Accounts ... The user must connect without providing a password if no password is set.
Read more >
How to set, change, and recover your MySQL root password
If you never set, forgot or need to change your MySQL password, you're in luck. ... Not only will this command set the...
Read more >
5.3.3 Standard TCP/IP over SSH Connection Method
This connection method enables MySQL Workbench to connect to MySQL Server using ... If a remote host is missing from the system's list...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found