Closed SujinIn closed 5 months ago
As I can see in the logs and tried to recreate the issue
This issue arises when a user deletes the fm directory i.e ~/frappe
, and then attempts to use fm, when fm gets invoked it recreated the ~/frappe
directory and also services compose project and with new random db secret.
The problem is that when the services got recreated it didn't remove the existing Docker containers and volumes and then started the compose project ( old containers got started ).
These containers were initially configured with previous database credentials. However, since these credentials were regenerated upon deletion, they no longer match, leading to authentication failures with the database then the site fails to set up correctly.
@SujinIn For now you can follow these steps to fix the issue.
Warning: Since you will be removing ~/frappe
all your data will be deleted.
~/frappe/services
, run command docker compose down -v
.~/frappe
.fm create erp --apps erpnext:version-15 --apps hrms:version-15
This is fixed in #147. Will be rolled out in next release.
Ah...So the docker containers are alived. Thank you very much. Now I can connect to 'erp.localhost' now!!!
This issue tracker is only for issues related to Frappe-Manager. Please use https://github.com/rtcamp/frappe-manager/discussions for support questions.
Describe the bug A clear and concise description of what the bug is. -> I failed create website.
To Reproduce Steps to reproduce the behavior:
Here is error message. my account name is zfradmin. And I wrote my typing by Bold.
zfradmin@zfrerp:~$ fm --version 0.12.0 zfradmin@zfrerp:~$ fm create erp --apps erpnext:version-15 --apps hrms:version-15 β fm directory doesn't exists! Created at -> /home/zfradmin/frappe β π It seems like the first installation. Pulling images... πΌοΈ β Pulling image ghcr.io/rtcamp/frappe-manager-frappe:v0.12.0 : Done β Pulling image ghcr.io/rtcamp/frappe-manager-nginx:v0.10.0 : Done β Pulling image ghcr.io/rtcamp/frappe-manager-mailhog:v0.8.3 : Done β Pulling image adminer:latest : Done β Pulling image redis:alpine : Done π§ Creating services β Pulling services images: Done β Creating services: Done β Creating Compose directories: Done β Starting Docker Containers: Done β£» Creating Site β£ Creating Site β Failure in generating, supervisor.conf file.The docker command executed was
docker compose -f /home/zfradmin/frappe/sites/erp.localhost/docker-compose.yml exec --user frappe --workdir /workspace/frappe-bench frappe bench setup supervisor --skip-redis --skip-supervisord --yes --user frappe
. It returned with code 1 The content of stdout can be found above the stacktrace (it wasn't captured). The content of stderr is 'service "frappe" is not running'β Rolling back to previous workers configuration. β Workers compose not present. Generating... β Getting Workers info: Done β Starting Workers Containers: Done β There has been some error creating/starting the site. Please check the logs at /home/zfradmin/frappe/logs/fm.log π€ Do you want to remove 'erp.localhost' [yes/no] (no): yes Please select one of the available options π€ Do you want to remove 'erp.localhost' [yes/no] (no): yes β Remove DB User: Failed β Remove DB: Failed β Removing Containers: Done
Expected behavior A clear and concise description of what you expected to happen. -> So, I've checked the fm.log file.
System information (please complete the following information):
[ ]
fm --version
: 0.12.0[ ]
lsb_release -a
: No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.3 LTS Release: 22.04 Codename: jammy[ ]
docker version
: 25.0.2[ ]
docker-compose version
ordocker compose version
: v2.23.3Attach log Please attach logs from
~/frappe/logs/fm.log
for faster resolution. fm.logAdditional context Add any other context about the problem here.
I've instelled from fm v 0.10.0 it worked well. I have some problem from v 0.11.0 version. So I've uninstall frappe-manager and delete the Frappe folder. And next install Frappe-manager v 0.12.0 again. but..I have this problem. Thank you