Hi Ellie,
I also tried adding data to the database using
/crest/debian/homestead-prov/usr/share/clearwater/homestead/src/metaswitch/crest/tools/database-dump/restore-cassandra-from-csv.py
using command:
/home/ubuntu64/crest/bin/python restore-cassandra-from-csv.py
/home/ubuntu64/crest/users1.csv.gz/
I get the following error:
/Unhandled error in Deferred://
//Unhandled Error//
//Traceback (most recent call last)://
// File "/home/ubuntu64/crest/bin/python", line 57, in <module>//
// exec(compile(__file__f.read(), __file__, "exec"))//
// File "restore-cassandra-from-csv.py", line 45, in <module>//
// do_this()//
// File
"/home/ubuntu64/crest/eggs/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1214, in unwindGenerator//
// return _inlineCallbacks(None, gen, Deferred())//
//--- <exception caught here> ---//
// File
"/home/ubuntu64/crest/eggs/Twisted-12.3.0-py2.7-linux-x86_64.egg/twisted/internet/defer.py",
line 1071, in _inlineCallbacks//
// result = g.send(result)//
// File "restore-cassandra-from-csv.py", line 33, in do_this//
// factory = ManagedCassandraClientFactory(row["keyspace"])//
//exceptions.KeyError: 'keyspace'/
The data in user1.csv was created as follows:
/for DN in {1..100} ; do echo sip:[email protected] ; done > users1.csv/
Actually /homestead_cache keyspace/ is not present in the database.
/cqlsh;//
//use <tab> gave options://
//
//homestead_provisioning system system_traces /
Is it because of this that I am facing an issue? Please can you give
me the commands to add homestead_cache keyspace.
Thanks,
Priyanka
On Thursday 09 July 2015 10:11 PM, Eleanor Merry wrote:
Hi Priyanka,
Have you set up the Cassandra keyspaces? You can find details of how to do at:
https://github.com/Metaswitch/crest/blob/dev/docs/development.md#cassandra.
Also, have you set up the virtual Python environment
(https://github.com/Metaswitch/crest/blob/dev/docs/development.md#setting-up-a-virtualenv)?
This creates a python executable that is preconfigured to use the correct
PYTHONPATH to pick up the dependencies in the env directory - you should use
this python rather than the system python.
Ellie
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Priyanka
Sent: 09 July 2015 08:29
To: [email protected]
Subject: Re: [Clearwater] issue with homestead installation
Hi,
I am getting the following error now when I do sudo make run :
PYTHONPATH=src bash -c 'bin/python src/metaswitch/crest/main.py'
Unhandled error in Deferred:
Unhandled Error
Traceback (most recent call last):
Failure: telephus.cassandra.ttypes.InvalidRequestException:
InvalidRequestException(why="Keyspace 'homestead_cache' does not exist")
service cassandra status
* Cassandra is running
Thanks,
Priyanka
On Wednesday 08 July 2015 09:02 PM, Priyanka wrote:
Hi,
We solved the previous issue by setting the PYTHONPATH in Makefile.
Now, when we do make run we are facing another issue:
PYTHONPATH=/home/ubuntu64/crest/bin bash -c
'/home/ubuntu64/crest/bin/python src/metaswitch/crest/main.py'
Traceback (most recent call last):
File "/home/ubuntu64/crest/bin/python", line 57, in <module>
exec(compile(__file__f.read(), __file__, "exec"))
File "src/metaswitch/crest/main.py", line 50, in <module>
from metaswitch.crest import api
ImportError: No module named crest
make: *** [run] Error 1
Please help me solve it.
Thanks,
Priyanka
On Wednesday 08 July 2015 07:41 PM, Priyanka wrote:
Hi,
I am facing an issue with installation of homestead from source code
on ubuntu12.04. When I do make run I get the following error:
build/temp.linux-x86_64-2.7/scratch/tmp/easy_install-eBKZeD/pyzmq-13.1.0/temp/timer_createJriB3Y.o:
In function `main':
timer_createJriB3Y.c:(.text+0x15): undefined reference to `timer_create'
collect2: ld returned 1 exit status
Note also that the installation directory must be on sys.path at
runtime for this to work. (e.g. by being the application's script
directory, by being on PYTHONPATH, or by being added to sys.path by
your code.)
Processing dependencies for setuptools==18.0.1 Finished processing
dependencies for setuptools==18.0.1 Finished processing dependencies
for zc.buildout PYTHONPATH=src bash -c 'bin/python
src/metaswitch/crest/main.py'
make: *** [run] Error 1
Please help me resolve it.
Thanks,
Priyanka
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater
_______________________________________________
Clearwater mailing list
[email protected]
http://lists.projectclearwater.org/listinfo/clearwater