Self Hosting 101
Setting up a Subdomain
There is no preview available for this lesson. Please join the course to access it. Click here to enroll.
Questions
I think the save button in the subdomain page is not working
sairam subramaniam
1 month ago
Post
Dismiss

Whenever I click it, nothing seems to happen. When I go back to the page, I dont find my ip there anymore. Is this how it is supposed to be?

Whenever I click it, nothing seems to happen. When I go back to the page, I dont find my ip there anymore. Is this how it is supposed to be?

Want to discuss?
Post it here, our mentors will help you out.
RaspPi as server, how to set subdomain?
Raunak R
6 months ago
Post
Dismiss

I have set up a raspberry pi, and using it in local WiFi network, that way I can ssh into it via the local IP. How to I set the subdomain then? Can you share any documentation for working with raspPi as server.

I have set up a raspberry pi, and using it in local WiFi network, that way I can ssh into it via the local IP. How to I set the subdomain then? Can you share any documentation for working with raspPi as server.

Want to discuss?
Post it here, our mentors will help you out.
error wen creating a subdomain on monschool
Raghuram Bindignavle
1 year ago
Post
Dismiss
Console message on my browser inspect is : raceback (most recent call last): File "apps/frappe/frappe/app.py", line 55, in application response = frappe.handler.handle() File "apps/frappe/frappe/handler.py", line 45, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 83, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/__init__.py", line 1584, in call return fn(*args, **newargs) File "apps/mon_school/mon_school/www/account/subdomain.py", line 43, in save_subdomain doc.insert(ignore_permissions=True) File "apps/frappe/frappe/model/document.py", line 278, in insert self.run_post_save_methods() File "apps/frappe/frappe/model/document.py", line 1088, in run_post_save_methods self.run_method("on_update") File "apps/frappe/frappe/model/document.py", line 925, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "apps/frappe/frappe/model/document.py", line 1269, in composer return composed(self, method, *args, **kwargs) File "apps/frappe/frappe/model/document.py", line 1251, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "apps/frappe/frappe/model/document.py", line 922, in fn return method_object(*args, **kwargs) File "apps/mon_school/mon_school/mon_school/doctype/mon_school_user_subdomain/mon_school_user_subdomain.py", line 20, in on_update self._add_dns_record(do_api, self.subdomain, self.ip) File "apps/mon_school/mon_school/mon_school/doctype/mon_school_user_subdomain/mon_school_user_subdomain.py", line 24, in _add_dns_record records = do_api.query_records("monschool.net", subdomain) File "apps/mon_school/mon_school/mon_school/doctype/mon_school_user_subdomain/mon_school_user_subdomain.py", line 55, in query_records response.raise_for_status() File "env/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.digitalocean.com/v2/domains/monschool.net/records?name=raghuram.monschool.net
Console message on my browser inspect is : raceback (most recent call last): File "apps/frappe/frappe/app.py", line 55, in application response = frappe.handler.handle() File "apps/frappe/frappe/handler.py", line 45, in handle data = execute_cmd(cmd) File "apps/frappe/frappe/handler.py", line 83, in execute_cmd return frappe.call(method, **frappe.form_dict) File "apps/frappe/frappe/__init__.py", line 1584, in call return fn(*args, **newargs) File "apps/mon_school/mon_school/www/account/subdomain.py", line 43, in save_subdomain doc.insert(ignore_permissions=True) File "apps/frappe/frappe/model/document.py", line 278, in insert self.run_post_save_methods() File "apps/frappe/frappe/model/document.py", line 1088, in run_post_save_methods self.run_method("on_update") File "apps/frappe/frappe/model/document.py", line 925, in run_method out = Document.hook(fn)(self, *args, **kwargs) File "apps/frappe/frappe/model/document.py", line 1269, in composer return composed(self, method, *args, **kwargs) File "apps/frappe/frappe/model/document.py", line 1251, in runner add_to_return_value(self, fn(self, *args, **kwargs)) File "apps/frappe/frappe/model/document.py", line 922, in fn return method_object(*args, **kwargs) File "apps/mon_school/mon_school/mon_school/doctype/mon_school_user_subdomain/mon_school_user_subdomain.py", line 20, in on_update self._add_dns_record(do_api, self.subdomain, self.ip) File "apps/mon_school/mon_school/mon_school/doctype/mon_school_user_subdomain/mon_school_user_subdomain.py", line 24, in _add_dns_record records = do_api.query_records("monschool.net", subdomain) File "apps/mon_school/mon_school/mon_school/doctype/mon_school_user_subdomain/mon_school_user_subdomain.py", line 55, in query_records response.raise_for_status() File "env/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.digitalocean.com/v2/domains/monschool.net/records?name=raghuram.monschool.net
Want to discuss?
Post it here, our mentors will help you out.