Easy Installation setup (production with nginx and supervisor) on previous version

Hello @jcyh,

Here I share one link for you, I hope this will helpful for you.

@yogendrasinh,

Hi, really thank you of your reply , i had tried using the method you sent to me in the link , isn’t work for me.

i still can’t figure out what’s wrong based on traceback.

is this what i did is correct ?

I did command :
apt-get install python-minimal
git clone GitHub - frappe/bench: CLI to manage Multi-tenant deployments for Frappe apps bench-repo
sudo pip install -e bench-repo
bench init --frappe-branch v8.0.19 frappe-bench

Hi @makarand_b,

The command you posted above, isn’t work it stated fatal: Remote branch v8.0.19 not found in upstream upstream

@jcyh,

branch should be v8.0.19 not v.8.0.19

@makarand_b
Sorry , for my mistake, i do tried using v8.0.25, i hit another problem :


Appreciate your help.

@jcyh

Based on the error showing in red, it seems like you don’t have MySQL-Python installed.

Do a pip list to check

If it isn’t follow some of these instructions to get it installed

Hope this helps

@makarand_b , @saidsl,

bench init --frappe-branch v8.0.25 frappe-bench && cd frappe-bench

[should i create new site for this ? ]

bench get-app erpnext --branch v8.0.18

@saidsl ,

in the manual installation method, there is a test on mariadb server using command : mysql -u root -p, but what is password of it ? i change the password using this link, [server] Ubuntu 15.04 after installing MariaDB can't login with password..

When i bench new-site site1.local, it still hit access denied error message like below :

I really have no idea what’s wrong, i did mysql -u root -p, then type in the password i set, it able to login to the mariadb. Please help me…I follow exactly the manual installation from Guide: Manual Install ERPNext on Ubuntu 16.xx & Debian v8 & 9.

The reason i wanted to use manual installation is because i want to deploy same frappe & erpnext version to another server.

@makarand_b, i can’t create site to install the application erpnext, how should i did that ? i hit error of access denied once i want to create new site.

I found out that when i use command : mysql -u root -p, i must include sudo mysql -u root -p, else whatever password i put it, it will always access denied, any idea ? sorry, i am not familiar in linux.

When you installed mariadb, you would have created the root password for mariadb, that is the password you need to use.

If you don’t recall it, use this to recover the password

Regards
Said

@saidsl,

When i sudo mysql -u root -p, then entered the password, it always

, even i tried to reset the password already, restart mysql, restart vm…

I really have no idea, since i must use manual installation because i want get back the previous version of erpnext.

Does the manual installation that you posted still working ?

When i use the link to change the mysql or mariadb password : it hit this error:

Yes, there has not been any significant change as far as I can tell

Seems like your mariadb service has not been started yet.

Try reboot the VirtualBox and start the service

Hi @saidsl,

Finally, i able to solved my problem by referring to this link, there is an command that you missed out which lead to the problem i facing.

There is some command u r missing before install mariadb-server , which is this command :
sudo add-apt-repository ‘deb [arch=amd64,i386] http://sgp1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial main’

please refer to this link :

besides that, when create new site, might hit mysql “ERROR 1524 (HY000): Plugin ‘unix_socket’ is not loaded”, then refer to these link :

i had resolve my issue. I really appreciate your help, @saidsl.

Kindly please update your post with the command : sudo add-apt-repository ‘deb [arch=amd64,i386] http://sgp1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu xenial main’

Thanks again.

@jcyh

The post I had made did not specify which repository to use as each host would have different one therefore, I opted to keep out.

In my case when I did the manual install, I had already downloaded an ISO Debian 9.

And as I mentioned in my post, its merely a guide as to the process that I gone through and may differ from user to user.

Glad to know its all sorted on your end.

Regards
Said

@makarand_b,

I tried to install the previous version using the two command you suggested earlier in the post,

i tried it with bench start, when i access it in URL, the bench console straight away go for System exit, when i delete frappe-bench folder and drop database , use bench init frappe-bench --frappe-branch master and erpnext master, then install it in site1.local, everything work fine in the same url.

Do you know why ?

Hi @saidsl,

Thank you so much of your help, I greatly appreciate it.

sincerely regards,
Jacob

1 Like

Anyway, i had solved my problem, when install previous version,

had to be include with the bench setup socketio which this is normal missing in the manual installation.

regards,
Jacob

if your facing mysql each and every time try this commond:
sudo mysql --tc-heuristic-recover=ROLLBACK
sudo service mysql restart
sudo service mysql start

try to use sudo if ur not in root