All these days we were using frappe docker 2022 single server setup. My existing 2022 instance all work fine till date. Thanks to the frappe docker community.
I noticed 2023 upgrade in frappe docker which sounded to me more flexible in terms of upgrades in future especially the assets.
We setup a new production instance based on the new changes outlined in Single server Example
Everything works like a charm except for the two issues.
All the links in emails such as password reset, unsubscribe email link, document link are added with port 8000 like site1.mydomain.com:8000:api/method/frappe.email.queue.unsubscribe?..
Issuing pdf print is keeps spinning without any output. Also when Attach document print is enabled in the email, the email send ends with timeout error.
And again port 8000 is added in the stylesheet
Thanks @revant_one
Are the following lines responsible for this?
if (
not (frappe.conf.restart_supervisor_on_update or frappe.conf.restart_systemd_on_update)
and host_name
and not url_contains_port(host_name)
and port
):
host_name = host_name + ":" + str(port)
will removing the two params from the config file solve the problem ?
ārestart_supervisor_on_updateā: false,
ārestart_systemd_on_updateā: false,
you can copy your old configs and they should work.
the difference is because now sites directory is specified as VOLUME during image build. It has the default generated common_site_config.json whereas in old setup the volumes were blank and these files were generated from no base config.
check the difference in PWD config and your setup to debug further.
Thanks @revant_one,
Finally it worked,
I updated these two params to true and left others as it is.
ārestart_supervisor_on_updateā: true,
ārestart_systemd_on_updateā: true,
However I will refer to pwd as well.
But is this a global issue or only happened to me
What is the impact on making these two params true?. Can we root cause?
Anyways, all the time as usual, @revant_one is coming for rescue . Most important thing is the direction you give. Commendable.
These keys wonāt be used in containers. bench update is not used in containers. We just do bench --site all migrate after the new app code is replaced by updated image/containers.
Then in that case we can remove these two fields as part of standard single sever setup, isnāt it?. Can we expect this as part of next update? or if you let me know where to make the change i can send a PR.