I'm trying to create a cluster with version 3.4, but it keeps giving me an error. The strange thing is that if I try to do it with version 2.1.5 for example, everything runs smoothly.
So for instance if I try to create a cluster with ccm create -v 3.4 -n 3 mycluster
This is what I get:
WARN:Downloading 3.4 failed, due to [Errno 2] No such file or directory. Trying to build from git instead.
http://git-wip-us.apache.org/repos/asf/cassandra.git git:cassandra-3.4
Cloning Cassandra...
Traceback (most recent call last):
File "/usr/local/bin/ccm", line 5, in <module>
pkg_resources.run_script('ccm==2.1.4', 'ccm')
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 528, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 1401, in run_script
exec(script_code, namespace, namespace)
File "/usr/local/lib/python2.7/dist-packages/ccm-2.1.4-py2.7.egg/EGG-INFO/scripts/ccm", line 74, in <module>
File "build/bdist.linux-x86_64/egg/ccmlib/cmds/cluster_cmds.py", line 158, in run
File "build/bdist.linux-x86_64/egg/ccmlib/cluster.py", line 63, in __init__
File "build/bdist.linux-x86_64/egg/ccmlib/cluster.py", line 76, in load_from_repository
File "build/bdist.linux-x86_64/egg/ccmlib/repository.py", line 77, in setup
File "build/bdist.linux-x86_64/egg/ccmlib/repository.py", line 203, in clone_development
ccmlib.common.CCMError: Building C* version git:cassandra-3.4 failed. Attempted to delete /home/pedro/.ccm/repository/gitCOLONcassandra-3.4 but failed. This will need to be manually deleted
However if I do ls -a /home/pedro/.ccm/repository/ -l, I don't see the folder that had to be manually deleted according to the stacktrace:
total 12
drwxrwxr-x 3 pedro pedro 4096 Mar 25 18:01 .
drwxrwxr-x 3 pedro pedro 4096 Mar 25 17:59 ..
drwxrwxr-x 9 pedro pedro 4096 Mar 25 17:36 2.1.5
-rw-rw-r-- 1 pedro pedro 0 Mar 25 17:59 last.log
I tried your cluster creation and it works fine for me. I have git 2.5.4 installed might be worth looking at your version of git. I would also look at your java version and update it if you are behind.
Ok, so it was one of those problems... On my .profile (I'm on Ubuntu), I was initializing the JAVA_HOME, after the PATH, so when the PATH was export the value "JAVA_HOME/bin" didn't existed.
Although it's somewhat embarassing, I'm maintaning this post up, because I couldn't possibly figure this out from the output of the error, so maybe this can help someone out.
I ran into this error as well, however my solution was different:
kill the current cassandra process:
sudo ps auwx | grep cassandra
sudo kill -9 PID
stop the ccm as well:
ccm stop
remove the current cluster:
ccm remove
build a cluster with the same version of Cassandra that you are running
ccm create mycluster -v 3.9 -n 3
Related
I am unable to get Odoo 14 running on my MacOS machine. Some research into the following error suggests that I can manually configure the memory limits which may resolve the issue but I cannot find the relevant config files on my machine.
I've checked and reinstalled all of the requirements and I can't find much information to point me in the right direction.
(venv) kilgow#wmbp odoo-dev % python3 odoo/odoo-bin
2021-09-18 15:56:53,295 1931 INFO ? odoo: Odoo version 14.0
2021-09-18 15:56:53,295 1931 INFO ? odoo: addons paths: ['/Users/kilgow/Desktop/odoo-dev/odoo/odoo/addons', '/Users/kilgow/Library/Application Support/Odoo/addons/14.0', '/Users/kilgow/Desktop/odoo-dev/odoo/addons']
2021-09-18 15:56:53,295 1931 INFO ? odoo: database: default#default:default
2021-09-18 15:56:53,351 1931 INFO ? odoo.addons.base.models.ir_actions_report: You need Wkhtmltopdf to print a pdf version of the reports.
Traceback (most recent call last):
File "/Users/kilgow/Desktop/odoo-dev/odoo/odoo-bin", line 8, in <module>
odoo.cli.main()
File "/Users/kilgow/Desktop/odoo-dev/odoo/odoo/cli/command.py", line 61, in main
o.run(args)
File "/Users/kilgow/Desktop/odoo-dev/odoo/odoo/cli/server.py", line 178, in run
main(args)
File "/Users/kilgow/Desktop/odoo-dev/odoo/odoo/cli/server.py", line 172, in main
rc = odoo.service.server.start(preload=preload, stop=stop)
File "/Users/kilgow/Desktop/odoo-dev/odoo/odoo/service/server.py", line 1298, in start
rc = server.run(preload, stop)
File "/Users/kilgow/Desktop/odoo-dev/odoo/odoo/service/server.py", line 510, in run
self.start(stop=stop)
File "/Users/kilgow/Desktop/odoo-dev/odoo/odoo/service/server.py", line 452, in start
set_limit_memory_hard()
File "/Users/kilgow/Desktop/odoo-dev/odoo/odoo/service/server.py", line 83, in set_limit_memory_hard
resource.setrlimit(rlimit, (config['limit_memory_hard'], hard))
ValueError: current limit exceeds maximum limit
(venv) kilgow#wmbp odoo-dev % python3 odoo/odoo-bin
You should check out this documentation for more info, so the easy way is add an extra argument to your run script like below.
python3 odoo-bin --addons-path=addons -d mydb --limit-memory-hard 0
I believe this could be due to the machine using an M1 chip. Manually increasing the memory limits did not resolve the problem.
I’ve managed to work around the issue by running Odoo and Postgres in Docker containers instead.
I have tried to run the Aerospike Collectd plugin ([https://github.com/aerospike-community/aerospike-collectd][1]), however, I have run into several problems/issues.
When trying to build with pip or pip3, it fails both times. With pip3, I have been able to install requirements by changing the aerospike client version to 4.0 from the old value 3.10.
Additionally, I had to change aerospike_plugin.py code to correctly import ServerName value from the new library of aerospike client 4.0.
I am having this python issue:
Nov 5 23:34:39 aerospike5 collectd[182769]: Unhandled python exception in read callback: AttributeError: 'NoneType' object has no attribute 'lookup'
Nov 5 23:34:39 aerospike5 collectd[182769]: Traceback (most recent call last):
Nov 5 23:34:39 aerospike5 collectd[182769]: File "/usr/lib/collectd/aerospike_plugin.py", line 867, in read#012 reader(self.client, config, meta, self.emit)
Nov 5 23:34:39 aerospike5 collectd[182769]: File "/usr/lib/collectd/aerospike_plugin.py", line 367, in cluster#012 emit(meta, 'services', len(services), ['cluster'])
Nov 5 23:34:39 aerospike5 collectd[182769]: File "/usr/lib/collectd/aerospike_plugin.py", line 814, in emit#012 for type, value in self.schema.lookup(category, metric, value):
Nov 5 23:34:39 aerospike5 collectd[182769]: AttributeError: 'NoneType' object has no attribute 'lookup'
Nov 5 23:34:39 aerospike5 collectd[182769]: read-function of plugin `python.aerospike_plugin' failed. Will suspend it for 640.000 seconds.
Could you please help me fix the error or if anyone had experience with this piece of software?
Thank you all in advance.
[1]: https://github.com/aerospike-community/aerospike-collectd
I'm trying to bring up [pipenv][1] on a Raspberry Pi Zero W. The symptom I'm seeing is that pexpect times out when trying to create a tutorial project.
Admittedly, the RPi is a small machine, but I was monitoring memory usage and swap space during the process, and it wasn't running out of memory or swap.
Any idea what it was trying to do? Or how I should debug this? Here's the stack trace:
pi#blue-server:~/testdir $ pipenv install requests
Creating a virtualenv for this project…
Using /usr/bin/python3 (3.5.3) to create virtualenv…
Traceback (most recent call last):
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/pexpect/expect.py", line 109, in expect_loop
return self.timeout()
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0xb555c950>
searcher: searcher_re:
0: EOF
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/pi/.local/bin/pipenv", line 11, in <module>
sys.exit(cli())
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 722, in __call__
return self.main(*args, **kwargs)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 697, in main
rv = self.invoke(ctx)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 1066, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 895, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/click/core.py", line 535, in invoke
return callback(*args, **kwargs)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/cli.py", line 478, in uninstall
keep_outdated=keep_outdated,
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/core.py", line 2077, in do_uninstall
ensure_project(three=three, python=python)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/core.py", line 620, in ensure_project
three=three, python=python, site_packages=site_packages
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/core.py", line 569, in ensure_virtualenv
do_create_virtualenv(python=python, site_packages=site_packages)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/core.py", line 936, in do_create_virtualenv
click.echo(crayons.blue(c.out), err=True)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/delegator.py", line 99, in out
self.__out = self._pexpect_out
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/delegator.py", line 87, in _pexpect_out
result += self.subprocess.read()
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 441, in read
self.expect(self.delimiter)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 341, in expect
timeout, searchwindowsize, async_)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/pexpect/spawnbase.py", line 369, in expect_list
return exp.expect_loop(timeout)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/pexpect/expect.py", line 119, in expect_loop
return self.timeout(e)
File "/home/pi/.local/lib/python3.5/site-packages/pipenv/vendor/pexpect/expect.py", line 82, in timeout
raise TIMEOUT(msg)
pexpect.exceptions.TIMEOUT: <pexpect.popen_spawn.PopenSpawn object at 0xb553a710>
searcher: searcher_re:
0: EOF
<pexpect.popen_spawn.PopenSpawn object at 0xb553a710>
searcher: searcher_re:
0: EOF
Here's the environment info:
pi#blue-server:~/foo $ uname -a
Linux blue-server 4.14.34+ #1110 Mon Apr 16 14:51:42 BST 2018 armv6l GNU/Linux
pi#blue-server:~/foo $ lsb_release -a
No LSB modules are available.
Distributor ID: Raspbian
Description: Raspbian GNU/Linux 9.4 (stretch)
Release: 9.4
Codename: stretch
pi#blue-server:~/foo $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 9 (stretch)"
NAME="Raspbian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
pi#blue-server:~/foo $ free -m
total used free shared buff/cache available
Mem: 433 26 260 3 145 353
Swap: 99 0 99
additional info
I noticed it was timing out inside of a subprocess call. Using pdb, I traced it down to the command:
<Command ['/usr/bin/python3.5', '-m', 'pipenv.pew', 'new', 'foo-su43ObVR', '-d', '-p', '/usr/bin/python3.5']>
I tried replicating that call from the command line and it completed without error:
pi#blue-server:~/foo $ /usr/bin/python3.5 -m pipenv.pew new 'asdf' -d -p /usr/bin/python3.5
Already using interpreter /usr/bin/python3.5
Using base prefix '/usr'
New python executable in /home/pi/.local/share/virtualenvs/asdf/bin/python3.5
Also creating executable in /home/pi/.local/share/virtualenvs/asdf/bin/python
Installing setuptools, pip, wheel...done.
That seems hopeful, but I still don't know what causes the timeout.
TL;DR: the fix is to extend the timeout
Solved it. Because the RPi Zero is slow, it was timing out. Taking a clue from the discussion on github, I noticed that its now possible to extend the default timeout with environment variables. So this solved the problem:
pi#blue-server:~/testdir $ export PIPENV_TIMEOUT=500
pi#blue-server:~/testdir $ pipenv install requests
I am attempting to install HDFS, YARN, Spark, etc. on a local cluster of CentOS 6.6 machines using Ambari 2.1.0 and HDP 2.3. I already managed to botch the upgrade from HDP 2.2 so I erased all the HDP 2.2 packages + Ambari before starting over. I am able to get through most of the Cluster Install Wizard without a problem, but on the "Install, Start and Test" phase, I receive the following error message
Traceback (most recent call last):
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 38, in <module>
AfterInstallHook().execute()
File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 218, in execute
method(env)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/hook.py", line 35, in hook
link_configs(self.stroutfile)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 91, in link_configs
_link_configs(k, json_version, v)
File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/after-INSTALL/scripts/shared_initialization.py", line 156, in _link_configs
conf_select.select("HDP", package, version)
File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py", line 241, in select
shell.checked_call(get_cmd("set-conf-dir", package, version), logoutput=False, quiet=False, sudo=True)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 70, in inner
result = function(command, **kwargs)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call
tries=tries, try_sleep=try_sleep)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper
result = _call(command, **kwargs_copy)
File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call
raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'conf-select set-conf-dir --package spark --stack-version 2.3.0.0-2557 --conf-version 0' returned 1. spark not installed or incorrect package name
The check script appears to be looking for spark in /usr/hdp/2.3.0.0-2557. This is what I see in that directory
ls /usr/hdp/2.3.0.0-2557/
etc hadoop hadoop-hdfs hadoop-mapreduce hadoop-yarn ranger-hdfs-plugin ranger-yarn-plugin usr zookeeper
One one of the slave machines that complains, it appears that spark has been "installed"
# yum list installed | grep spark
spark_2_3_0_0_2557.noarch
spark_2_3_0_0_2557-master.noarch
spark_2_3_0_0_2557-python.noarch
spark_2_3_0_0_2557-worker.noarch
Any ideas on how to resolve this issue?
Some components are at level 2.3.0.0-2557 and some others are at 2.3.2.0-2621.
In my case I had an issue with Zookeeper, so in /usr/hdp/current I linked
zookeeper-client -> /usr/hdp/2.3.0.0-2557/zookeeper
zookeeper-server -> /usr/hdp/2.3.0.0-2557/zookeeper
This fixed the install issue, but not starting services.
I am not able to setup WebRTC on Google App Engine. Here are the steps that I performed to deploy the webrtc app on my Google App Engine Project.
Clone https://github.com/webrtc/apprtc on my local system.
Copied app.yaml from apprtc/src/app_engine/ to root folder of the local repository
Edited app.yaml [Set "application" to my appid "ckwebrtc" on Google App Engine]
npm install
grunt build
appcfg.py --oauth2 update
But I am getting "500 Server Error - The server encountered an error and could not complete your request".
URL - https://ckwebrtc.appspot.com/
Kindly help
Update: This is the error that I am getting:
2015-04-16 22:34:26 Running command: "['C:\\Python27\\pythonw.exe', '-u', 'C:\\Program Files\\Google\\google_appengine\\appcfg.py', '--oauth2', 'update', u'C:\\xampp\\htdocs\\heroku\\ckwebrtc']"
10:34 PM Application: ckwebrtc; version: 2
10:34 PM Host: appengine.google.com
10:34 PM Starting update of app: ckwebrtc, version: 2
10:34 PM Getting current resource limits.
10:34 PM Scanning files on local disk.
10:34 PM Scanned 500 files.
10:35 PM Scanned 1000 files.
10:35 PM Scanned 1500 files.
10:35 PM Scanned 2000 files.
2015-04-16 22:36:05,130 ERROR appcfg.py:1925 Invalid character in filename: node_modules/grunt-htmlhint/node_modules/htmlhint/node_modules/jshint/node_modules/shelljs/test/resources/ls/filename(with)[chars$]^that.must+be-escaped
10:36 PM Scanned 2500 files.
10:36 PM Scanned 3000 files.
10:36 PM Scanned 3500 files.
10:36 PM Scanned 4000 files.
10:36 PM Scanned 4500 files.
10:36 PM Scanned 5000 files.
10:36 PM Scanned 5500 files.
2015-04-16 22:36:55,687 ERROR appcfg.py:2454 An error occurred processing file '': [Error 3] The system cannot find the path specified: 'C:\\xampp\\htdocs\\heroku\\ckwebrtc\\node_modules/grunt-closurecompiler/node_modules/closurecompiler/node_modules/tar/node_modules/fstream/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/*.*'. Aborting.
Traceback (most recent call last):
File "C:\Program Files\Google\google_appengine\appcfg.py", line 133, in <module>
run_file(__file__, globals())
File "C:\Program Files\Google\google_appengine\appcfg.py", line 129, in run_file
execfile(_PATHS.script_file(script_name), globals_)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5468, in <module>
main(sys.argv)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5459, in main
result = AppCfgApp(argv).Run()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3019, in Run
self.action(self)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 5115, in __call__
return method()
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3853, in Update
self._UpdateWithParsedAppYaml(appyaml, self.basepath)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3906, in _UpdateWithParsedAppYaml
self.UpdateVersion(rpcserver, basepath, appyaml, APP_YAML_FILENAME)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 3791, in UpdateVersion
return appversion.DoUpload(paths, openfunc)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2445, in DoUpload
self._AddFilesThatAreSmallEnough(paths, openfunc)
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2537, in _AddFilesThatAreSmallEnough
for path in paths:
File "C:\Program Files\Google\google_appengine\google\appengine\tools\appcfg.py", line 2680, in FileIterator
entries = set(os.listdir(os.path.join(base, current_dir)))
WindowsError: [Error 3] The system cannot find the path specified: 'C:\\xampp\\htdocs\\heroku\\ckwebrtc\\node_modules/grunt-closurecompiler/node_modules/closurecompiler/node_modules/tar/node_modules/fstream/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/*.*'
2015-04-16 22:36:55 (Process exited with code 1)
You can close this window now.
I am not sure if this was a windows problem or not.
I tried again from koding.com (Online Cloud) and was successful in setting up the app.
Here's how I did it.
$ git clone https://github.com/webrtc/apprtc.git
Edit app.yaml, package.json, mainfest.json etc with your application ID.
$ sudo npm install grunt-cli
$ sudo npm install
$ sudo grunt build
$ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc update ./out/app_engine/
If you get an error asking for rollback then execute the following command:
$ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc rollback ./out/app_engine/
$ sudo python /home/campuskarma/google_appengine/appcfg.py --oauth2 -A ckwebrtc update ./out/app_engine/
Each of the command mentioned here should be executed from the root of your application folder. (i.e. the folder where your application is cloned)