Hostname resolution

Hello Team

I have successfully installed a production environment with my ports specified and my amazon EC2 instance i am able to login to my installation with my instance IP address with specified port.

But i am stuck on next step on how to specify a hostname like - instead of having to type my IP address, i want to be able to use a web address rather than an IP to access my sites eg www.erp.retail.com

How do i configure this for production

Hello,

Hope this helps.

hi @EnSeal
please refer this link

Thanks

which do you suggest,

  • I rename my default site on Port 80 or
  • I create another site that will match the exact domain

Thank you Sagar

This really helped. However, my landing page goes directly to login and i can’t remember the administrators password. I have tried couple of password and users i created initially but its not working.

Please is there anyway i can view the admin password through the terminal and also change the landing page to be the home page

Anticipating your swift response

Thanks

Hello,

In the Website Settings, you can put the URL for the Home page for your ERPNext account.

Hi @EnSeal[quote=“EnSeal, post:5, topic:18877”]
Please is there anyway i can view the admin password through the terminal
[/quote]
To Change The Password:go to frappe-bench folder & try below Command
bench set-admin-password new_password

Thanks

Thank you for your prompt response

I am still not able to login after running the script. What else should i do

@nabinhait can you please help?

@EnSeal

can you show any error in console or please share it console error.
try
bench build
bench clear-cache
bench start
and check it.

Thanks

There is no error in console, just returns to the next line after the script

I have tried the above instruction and still failed to login

below is the result

ubuntu@ip-172-31-57-69:~$ bench build
Wrote ./assets/js/print_format_v3.min.js - 18k
Wrote ./assets/js/frappe-web.min.js - 132k
Wrote ./assets/js/form.min.js - 138k
Wrote ./assets/js/report.min.js - 159k
Wrote ./assets/js/erpnext.min.js - 82k
Wrote ./assets/css/list.min.css - 6k
Wrote ./assets/js/item-dashboard.min.js - 6k
Wrote ./assets/js/d3.min.js - 343k
Wrote ./assets/css/report.min.css - 8k
Wrote ./assets/css/frappe-web.css - 54k
Wrote ./assets/js/list.min.js - 106k
Wrote ./assets/js/dialog.min.js - 61k
Wrote ./assets/js/desk.min.js - 247k
Wrote ./assets/css/form.min.css - 4k
Wrote ./assets/js/editor.min.js - 27k
Wrote ./assets/css/erpnext.css - 3k
Wrote ./assets/js/libs.min.js - 886k
Wrote ./assets/js/erpnext-web.min.js - 2k
Wrote ./assets/css/desk.min.css - 265k
Wrote ./assets/css/module.min.css - 2k
ubuntu@ip-172-31-57-69:~$ bench clear-cache
ubuntu@ip-172-31-57-69:~$ bench start
10:44:07 system | watch.1 started (pid=29995)
10:44:07 system | redis_queue.1 started (pid=29996)
10:44:07 redis_queue.1 | [30007] 30 Dec 10:44:07.188 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
10:44:07 redis_queue.1 | [30007] 30 Dec 10:44:07.188 # Creating Server TCP listening socket 127.0.0.1:11000: bind: Address already in use
10:44:07 system | redis_queue.1 stopped (rc=1)
10:44:07 system | worker_long.1 started (pid=29997)
10:44:07 system | web.1 started (pid=29999)
10:44:07 system | schedule.1 started (pid=30003)
10:44:07 system | redis_socketio.1 started (pid=30005)
10:44:07 redis_socketio.1 | [30019] 30 Dec 10:44:07.219 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
10:44:07 redis_socketio.1 | [30019] 30 Dec 10:44:07.219 # Creating Server TCP listening socket 127.0.0.1:12000: bind: Address already in use
10:44:07 system | redis_socketio.1 stopped (rc=1)
10:44:07 system | worker_default.1 started (pid=30004)
10:44:07 system | redis_cache.1 started (pid=30012)
10:44:07 redis_cache.1 | [30023] 30 Dec 10:44:07.264 # Unable to set the max number of files limit to 10032 (Operation not permitted), setting the max clients configuration to 3984.
10:44:07 redis_cache.1 | [30023] 30 Dec 10:44:07.265 # Creating Server TCP listening socket 127.0.0.1:13000: bind: Address already in use
10:44:07 system | redis_cache.1 stopped (rc=1)
10:44:07 system | socketio.1 started (pid=30011)
10:44:07 system | worker_short.1 started (pid=30015)
10:44:07 system | sending SIGTERM to worker_long.1 (pid 29997)
10:44:07 system | sending SIGTERM to watch.1 (pid 29995)
10:44:07 system | sending SIGTERM to web.1 (pid 29999)
10:44:07 system | sending SIGTERM to schedule.1 (pid 30003)
10:44:07 system | sending SIGTERM to worker_default.1 (pid 30004)
10:44:07 system | sending SIGTERM to socketio.1 (pid 30011)
10:44:07 system | sending SIGTERM to worker_short.1 (pid 30015)
10:44:07 system | schedule.1 stopped (rc=-15)
10:44:07 system | web.1 stopped (rc=-15)
10:44:07 system | worker_default.1 stopped (rc=-15)
10:44:07 system | worker_short.1 stopped (rc=-15)
10:44:07 system | worker_long.1 stopped (rc=-15)
10:44:07 system | watch.1 stopped (rc=-15)
10:44:07 system | socketio.1 stopped (rc=-15)

please check this

How do you suggest i check this? i can see it appear in 3 Places

Hello Sagar

Hoping to hear from you soon

Warm regards

@EnSeal

bench --site site_name set-admin-password new_password

Thank you very much…that sorted me out