I wanted to thank you first for all the amazing things you are doing.
i just recently installed Ubuntu 16.04, i was just wondering about how long will it take approximately until will you guys support it, since there aren’t any folders for it in the mariadb repo directory, so the Setup fails, and it’s the Next LTS release as you Guys know.
given the fact that ERPNext v7 is to be released shortly I wouldn’t count on quick 16.04 support soon.
Also as 14.04 is still ‘good’ for 3 more years of support (if I am not mistaken), so a wise woman or man would wait for at least 6-12 month (until ubuntu 16.06 has matured a bit) to even start. Unless there is something so super in 16.06 which just HAS to be made use of right now. I doubt that this is so actually.
i see, so the only problem then is that there is no maria db installer folder for 16.04 in their repo, not that their current version doesn’t support it, so i guess you should install the frappe-bench on an older Ubuntu version (say 15.10) and then u can upgrade to 16.04.
WARNING: The following packages cannot be authenticated!
mysql-common mariadb-common libmysqlclient18 libmariadbclient18
mariadb-client-core-10.0 mariadb-client-10.0 mariadb-server-core-10.0
mariadb-server-10.0 libmariadbclient-dev mariadb-server
E: There were unauthenticated packages and -y was used without --allow-unauthenticated
I have fresh install of Ubuntu 16.04 .
While running “sudo bash setup_frappe.sh --setup-production” I got following error.
dell@dell-Inspiron:~$ sudo bash setup_frappe.sh --setup-production
[sudo] password for dell:
Installing for Ubuntu xenial amd64
In case you encounter an error, you can post on https://discuss.frappe.io
this is what we have been discussing, that their is no maria DB repo, so when the setup.sh file tries to get a maria db installed, it tries to get it for your current system’s version, and that doesn’t work out since their is currently no maria db for 16.04
so the solution would be to install the 15.10 maria db, and u can do this by forcing the setup.sh script to recognize your system as Wily instead of xenial
so u need to modify the setup.sh script by adding the following
if [ $OS_VER == "xenial" ]; then OS_VER="wily" fi
right after these lines export T_ARCH=$T_ARCH export WK_ARCH=$WK_ARCH
Thank you for your suggestion. As per your suggestion I added
if [ $OS_VER == “xenial” ]; then
OS_VER=“wily”
fi
right after these lines
export T_ARCH=$T_ARCH
export WK_ARCH=$WK_ARCH
I got the following error:
dell@dell-Inspiron:~$ sudo bash setup_frappe.sh --setup-production
[sudo] password for dell:
Installing for Ubuntu wily amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time…
Installing wkhtmltopdf
Installing wkhtmltox package for trusty (Ubuntu 14.4) even if you are using wily.
Adding frappe user
Installing frappe-bench
Already using interpreter /usr/bin/python
INFO:bench.app:getting app frappe
Cloning into ‘frappe’…
INFO:bench.app:installing frappe
INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): raw.githubusercontent.com
DEBUG:requests.packages.urllib3.connectionpool:“GET /frappe/bench/master/install_scripts/erpnext-apps-master.json HTTP/1.1” 200 101
INFO:bench.app:getting app erpnext
Cloning into ‘erpnext’…
INFO:bench.app:installing erpnext
/bin/sh: 1: npm: not found
installing frappe
installing erpnext
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/dell/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/dell/bench-repo/bench/commands/make.py”, line 17, in init
no_auto_update=no_auto_update, frappe_path=frappe_path, frappe_branch=frappe_branch, verbose=verbose)
File “/home/dell/bench-repo/bench/utils.py”, line 69, in init
setup_socketio(bench=path)
File “/home/dell/bench-repo/bench/utils.py”, line 109, in setup_socketio
exec_cmd(“npm install socket.io redis express superagent cookie”, cwd=bench)
File “/home/dell/bench-repo/bench/utils.py”, line 99, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: npm install socket.io redis express superagent cookie
now that the maria db is added, u may want to try removing these lines again from the setup, if that doesn’t work, u may need to google installing npm on ubuntu, since this is what is failing during your setup.
Thanks again.
i just installed rpm. Now, its showing error while setting up first site
dell@dell-Inspiron:~$ node -v
v5.11.0
dell@dell-Inspiron:~$ npm -v
3.8.6
dell@dell-Inspiron:~$ sudo bash setup_frappe.sh --setup-production
Installing for Ubuntu wily amd64
In case you encounter an error, you can post on https://discuss.frappe.io
Adding ubuntu mariadb repo
Installing packages for Ubuntu. This might take time…
Installing wkhtmltopdf
Installing wkhtmltox package for trusty (Ubuntu 14.4) even if you are using wily.
Adding frappe user
Installing frappe-bench
Setting up first site
error: <class ‘socket.error’>, [Errno 2] No such file or directory: file: /usr/lib/python2.7/socket.py line: 228
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/dell/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/dell/bench-repo/bench/commands/setup.py”, line 43, in setup_production
setup_production(user=user)
File “/home/dell/bench-repo/bench/config/production_setup.py”, line 26, in setup_production
exec_cmd(‘supervisorctl reload’)
File “/home/dell/bench-repo/bench/utils.py”, line 99, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: supervisorctl reload
I have installed new site manualy .
Now it is showing error while starting bench
Any suggestion
dell@dell-Inspiron:~$ bench new-site site1.local
MySQL root password:
Installing frappe…
Updating frappe : [========================================]
Updating country info : [========================================]
Set Administrator password:
Re-enter Administrator password:
Installing fixtures…
*** Scheduler is disabled ***
dell@dell-Inspiron:~$ bench start
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/home/dell/bench-repo/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1057, in invoke
Command.invoke(self, ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/dell/bench-repo/bench/commands/init.py”, line 13, in bench_command
setup_logging(bench=bench)
File “/home/dell/bench-repo/bench/utils.py”, line 208, in setup_logging
hdlr = logging.FileHandler(log_file)
File “/usr/lib/python2.7/logging/init.py”, line 913, in init
StreamHandler.init(self, self._open())
File “/usr/lib/python2.7/logging/init.py”, line 943, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: ‘/home/dell/frappe-bench/logs/bench.log’