Something Wrong With One Broker in a Cluster Problem Consumer connected to a broker but not receiving messages. Looking at various topics, broker 0 is marked as an out of sync replica, e.g.: ./kafka-topics.sh –describe my-topic –zookeeper myzk:2181/kafka Topic: my-topic Partition: 6 Leader: 4 Replicas: 0,4,1 Isr: 4,1 … Topic: __consumer_offsets Partition: 1 Leader: 2 […]
errors and problems
Symptom I encountered this error while trying to run commands on Postgres running in a Docker container: sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) FATAL: could not write init file Solution Ensure Docker has enough disk space, see Docker Quick Reference.
If you want to use != but lint complains, use isnot instead. See this reference for more details.
psycopg complains about missing pg_config executable. If you don’t already have pg_config installed and on your path, do this first: brew install postgresql Then install psycopg2 on command line: source venv/bin/activate (venv)$ pip install psycopg2 …Successfully installed psycopg2-2.6.1
But the column isn’t a timestamp anyway, so not sure why DBUnit wants to treat it as such. Solution Set columnSensing to false when creating the dataset. For a FlatXmlDataSet, you can specify a boolean in the constructor to achieve this.
If you are extending AbstractTransactionalJUnit4SpringContextTests, are you sure you need to do that? Removing that might fix it.
Fatal error during compilation org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: URL [jar:file:/Users/lrussell/.grails/ivy-cache/org.grails/grails-hibernate/jars/grails-hibernate-2.2.4.jar!/org/codehaus/groovy/grails/compiler/gorm/GormTransformer.class]; nested exception is java.lang.NoClassDefFoundError: org/springframework/core/type/classreading/AnnotationMetadataReadingVisitor First tried removing ~/.grails/ And then running the grails RunApp again. It downloaded the cache fresh, might take a while. Didn’t seem to make any difference though… Then in the Groovy Grails Tools Suite, I went to […]
I had a problem connecting to a vagrant virtualbox cluster from the host (OS X 10.10.4 Yosemite). There are three hosts set up as a vagrant private_network, each having an assigned IP in the range 192.168.37.2 – 192.168.37.4 The virtual network I wanted to connect to (vboxnet0) had a status of Up and the hosts […]
Environment: OSX, AMMPS Maybe caused by the particular version of PHP shipped with AMMPS and symlinked by default (PHP 5.3.21 at this time). For example this command: /Applications/AMPPS/php/bin/php ~/wp-cli.phar –info Prints: ???p? To fix it, update AMMPS to the latest. This includes PHP 5.4.11, but does not link it as the default. Now this command: […]
A quick summary of what might go wrong when trying to connect to an Oracle database. Based on this excellent article. Read the whole thing, this is just a quick reference. Error Code Message Translation ORA-12154 TNS:could not resolve the connect identifier specified No entry with the requested name in tnsnames.ora ORA-12545 Connect failed because […]