w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML Categories
socket.gaierror: [Errno 11001] getaddrinfo failed
The problem is that the DNS lookup for 'smtp server name' is failing - if this is your exact code then you can see why - if not and you have the valid qualified name for the SMTP server then you may have issues with the firewall/internet connection, etc., also port has to be set to a valid value to match your servers SMTP configuration, (usually port 25 but not absolutely always).

Categories : Python

PHP Notice: fwrite(): send failed with errno=32 Broken pipe
It may be because your data contains 'utf-8' characters. I had the similar issue is caused by it. Exception: mysql_query(): send of 1462592 bytes failed with errno=32 Broken pipe I used mysql -u username -p database < dump_file # this is bad to import the sql file contains lot of UTF8 characters (Thai language), but I didn't set default-character-set=utf8 for [mysql]. So the wrong coded data in the database caused that issue.

Categories : PHP

How is thread-safe errno initialized if #define substitutes errno symbol?
Fixing your issue is as easy as changing the name of your static variable. static int myerrno_variable = 0; int *myerrno_location(void){ return &myerrno_variable; } Notice that your version is still not thread safe since all threads are accessing the same myerrno_variable. A real implementation would return a thread specific memory location. In GCC, there is an extension that provides the __thread storage class. C.11 provides its own version of that called thread_local, but it is only available if thread support is provided by the implementation (which can be checked by looking if __STDC_NO_THREADS__ is defined or not). static __thread int myerrno_variable_gcc; /* if using GCC */ static thread_local int my_errno_variable_c11; /* if __STD_NO_THREADS__ isn't defined */ On

Categories : C

Errno::ECONNREFUSED in UsersController#create
Your db connection is fine, in fact, you have answer in your error message ;) If you will look at it you will find that code: URL:http://localhost:8982/solr/update?wt=ruby> which means you need to start your solr server. You may start it with simple RAILS_ENV=your_env rake sunspot:solr:run. Consider also adding some begin... rescue block around @user.save for outputting some message rather than letting whole app crash. If you're interested why you get that error without an explicit call to solr - solr adds callback to save method, so it indexes every new (or updated) record which means you won't have (theoretically) reindex from scratch after adding new data.

Categories : Ruby On Rails

DNS lookup failed: address 'your.proxy.com' not found: [Errno -5] No address associated with hostname
**Error that I get** - scrapy crawl Linkedin **2013-07-29 11:37:10+0530 [Linkedin] DEBUG: Retrying <GET http://www.linkedin.com/nhome/> (failed 1 times): DNS lookup failed: address 'your.proxy.com' not found: [Errno -5] No address associated with hostname.** **To see if the Name space was resolved, I tried -:** nslookup www.linkedin.com #works nslookup www.linkedin.com/uas/login # I think the depth of pages within a main website, does not resolve, and is normal right ? Then I also tried to see if the error could have been due to Name Server not resolving and appended the Nameservers as below . echo $http_proxy #gives http://username:password@your.proxy.com:80 You have a proxy set: http://username:password@your.proxy.com:80. Obviosly, it doesn't exist in Internet: $ nslookup y

Categories : Python

A/Looper: Could not create wake pipe. errno=24
The problem was in the Picasso lib. We weren't using it in the intended fashion. We were holding on to a copy of the Picasso builder. We avoided this problem by always using Picasso.with(Context).load(Url).into(ImageView)

Categories : Android

Puppet ssl errors " SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed"
Tried puppetdb-ssl-setup -f that took care of the cert missmatch. more details in https://groups.google.com/forum/#!topic/puppet-users/VqpGAxw7-Fo Thanks Ken for helping

Categories : Ruby

Retrieve PEM cert: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
you can disable certificate verification for a given instance of Net::HTTP: stock.verify_mode = OpenSSL::SSL::VERIFY_NONE or you can disable SSL verification globally in your process using: OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE Note: Ruby interpreter will give you warning that constant is already initialized. Sometimes you might get hard error. if that's the case you can unassign constant and initialize it again using following code: OpenSSL::SSL.send(:remove_const, :VERIFY_PEER) OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE) This is not a perfect solution for your problem, but if security is not a big cocern, you can use above methods to bypass SSL Cert verification. You will still have encrypted secure connection to server.

Categories : Ruby On Rails

Documentation #1005 - Can't create table 'comparein' (errno: 150)
I think you need to reference the PK columns in the same order as the primary key was defined. So instead of FOREIGN KEY (numero,titolo_episodio)REFERENCES Episodi(numero,titolo_episodio) use FOREIGN KEY (titolo_episodio, numero) REFERENCES Episodi(titolo_episodio, numero) SQLFiddle: http://sqlfiddle.com/#!2/363bd

Categories : Mysql

MySQL ERROR 1005: Can't create table (errno: 150)
You can check the status of InnoDB (SHOW ENGINE INNODB STATUS) to determine the exact reason why the constraints are failing. The other option is to add the foreign key constraints after creating the table. In your case, it appears that you're missing the engine type. The column types must also match. The primary key's on the referenced tables are most likely NOT NULL, and they are not so in messaInScena. create table spazio ( nome varchar(20) NOT NULL primary key, indirizzo varchar(40) not null, pianta varchar(20), capienza smallint ) ENGINE=InnoDB; create table spettacolo ( titolo varchar(40) NOT NULL primary key, descrizione LONGBLOB, annoProduzione char(4) ) ENGINE=InnoDB; create tab

Categories : Mysql

Mysql errno:150 on create, after remove of field it works
You're trying to map single-column foreign key to a multiple-column primary key - and that is impossible. You can map multiple column key via foreign key only if your foreign key have the same structure - i.e. count of columns and data type for each column. Alternatively, you should define single-column key, like this: alter table info_paginas add key `byRevision` (`revision`); and then run your second query (in this case you'll get mapping single-column key to single-column key).

Categories : Mysql

ERROR 1005 (HY000): Can't create table 'db.grades' (errno: 150)
Are you sure you're last foreign key in the Grades table shouldn't reference the primary key in the Courses table (which includes dept_id instead of name): foreign key (school_code,course_code,dept_id) references courses (school_code,course_code,dept_id) This works -- http://sqlfiddle.com/#!2/451d1 BTW -- if possible, consider removing the enum column altogether. Create a lookup table instead and use that as a foreign key.

Categories : Mysql

ERROR 1006 (HY000) Can't create database (errno: 13) MySQL 5.6.12
There may be a permissions issue with the MySQL data directory. You could try setting the permissions as follows (adjust the path to your data directory) chown -R mysql:mysql /usr/local/mysql/data

Categories : Mysql

"Errno::EMFILE: Too many open files" with local images on create
Just ran into this myself. It looks like the master branch has a fix. See my comments here: https://github.com/thoughtbot/paperclip/issues/1326?source=cc

Categories : Ruby On Rails

MySQL: errno(150), cannot create table (related to foreign keys)
You defined your foreign key ON DELETE CASCADE But your branch_id is defined as NOT NULL. That won't work. You want your branch_id never be null but then the foreign key related data gets removed you want it set to NULL with the CASCADE option. So either change removd the ON DELETE CASCADE or allow NULL in the foreign key. This works SQLFiddle demo

Categories : PHP

Gradle Build Failed: "occurred evaluating root project...failed to create a task or type gettype"
For anyone else having the same issue, as Greg mentioned above, switching to the official Google Android Gradle plugin should work: http://tools.android.com/tech-docs/new-build-system/user-guide There are a number of other questions that I believe were using the unofficial version in this question since it comes up high on search results when searching for the Android Gradle plugin.

Categories : Android

MySQL - Error Code: 1005. Can't create table 'database_name.#sql-776_f23d' (errno: 150)
ALTER TABLE ordenes ADD FOREIGN KEY(afil2) REFERENCES database_name.afil2(id); I think you're supposed to substitute your actual db name in this line for database_name.

Categories : Mysql

MySQL Error code 1005, SQL state HY000: Can't create table 'cpis.cpis_sudent_profile' (errno: 150)
program_id varchar(100) should be of the same data type as cpis_programs (id int(11)). By having different types of data, failure to establish the constraint. Example SQL Fiddle. ... DROP TABLE IF EXISTS `cpis_sudent_profile`; CREATE TABLE `cpis_sudent_profile` ( `id` int(10) NOT NULL AUTO_INCREMENT, `user_id` int(11) NOT NULL, `fname` varchar(100) NOT NULL, `pname` varchar(100) NOT NULL, `lname` varchar(100) NOT NULL, `birthday` date NOT NULL, `citizenship` int(11) NOT NULL, `sex` varchar(30) NOT NULL, /*`program_id` varchar(100) NOT NULL,*/ `program_id` int(11) NOT NULL, `owner` int(11) DEFAULT NULL, `member` int(11) DEFAULT NULL, `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`id`), CONSTRAINT `spfk_1` FOREIGN KEY (`user_id`) R

Categories : PHP

OpenSSL + Self Signed Cert = OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
Extracted from here So basically all you have to do is this ENV['SSL_CERT_FILE'] = "your certificate path" and I guess all will work You might find this Reference useful : http://mislav.uniqpath.com/2013/07/ruby-openssl/ Who reads the value of ENV['SSL_CERT_FILE']? Hope this help

Categories : Ruby On Rails

MongoDB : Failed to load js file
The variable db is not defined. Take a look here: http://docs.mongodb.org/manual/tutorial/write-scripts-for-the-mongo-shell/ You can do this: conn = new Mongo(); db = conn.getDB("myDatabase"); or this: db = connect("localhost:27020/myDatabase");

Categories : Bash

Mongodb error: JavaScript execution failed
I have tried that link http://www.intldevelopers.com/mongodb-javascript-execution-failed-error-couldnt-connect-to-server-127-0-0-127017-at-srcmongoshellmongo-jsl112.html and resolve problem.

Categories : Javascript

Github windows: Commit failed: Failed to create a new commit... continued issues
If you have a process blocking (keeping an handle) on a git resource, you can track it using process explorer. Search for any process referencing ".gitindex" and you will be able to kill it.

Categories : GIT

Mongodb client's SCons failed to find libboost_system
Have you tried to use the options: - --use-system-boost - --libpath That is: scons --full --use-system-boost --sharedclient -j5 --cpppath ${HOME}/include --libpath=${HOME}/lib

Categories : C++

Passing dynamic value gets failed in Mongodb using java script
The way you're doing your query now, I'm pretty sure that /$yesterday/ is being interpreted as a regular expression matching strings starting with "yesterday". A better approach would be to use the $regex operator so that you can pass in a javascript variable that holds the regular expression you hope to match.

Categories : Mongodb

mysql fails on ALTER TABLE constraint: Can't create table (errno: 150)
I think it all fails here: REFERENCES feature(id) Maybe you have to reference to: REFERENCES grouped_feature(id) Or REFERENCES tweaked_feature(id) Tested on my local mysql database.

Categories : Mysql

Can't create table '' (errno: 22)
ERRNO: 22 means that MySQL is trying to access a file with an invalid path. MySQL is not likely to generate an invalid path, so you need to check that your temp path is set correctly. For more info, check http://dev.mysql.com/doc/refman/5.5/en/temporary-files.html. Also check these lines:- CREATE TEMPORARY TABLE tempabcd (id int(11) NOT NULL, PRIMARY KEY (id)) ......... INSERT INTO tempabcd VALUES ('1','2','3'); <-- Passing 3 values here

Categories : Mysql

Mongodb balancer move failed: chunk too big to move. But it's not
Looks like as known old bug https://jira.mongodb.org/browse/SERVER-9365 I have 30MB chunks about 280K docs. And mongo can not move it becouse it contain more then 250001 docs and fill error "chunk too big to move". We have situation that chuk not to big to split, and "not to small" to move. I reproduced that localy. I created collection of 1 chunk with 36b docs (8.58MiB per chunk). If docs is 250001 or less chunk moved manualy as expected. If docs 250002 or more I got a error "chunk too big to move". Chunk size in settings 64MB. Work arround: If you planed use collection with small docs - pre-split collection so that the documents were less then 250K.

Categories : Mongodb

Ruby Validation failed on .create
Your problem is that you are validates_presence_of on the account_id but you are passing in the account. The error message says Account because when humanizing the field name, it drops the id. You may want to try create with: test.newentry.create!({ :account_id => demo_account.id, :date => date })

Categories : Ruby On Rails

Failed to create COM object Rfc2898DeriveBytes
Did you read the relevant docs? PHP: The COM class allows you to instantiate an OLE compatible COM object... What makes you think System.Security.Cryptography.Rfc2898DeriveBytes is an OLE compatible COM type? It isn't. It is a .NET managed class. Although it carries the ComVisible attribute this doesn't make it an OLE compatible COM type which you can instantiate using COM. In particular, it doesn't have a default constructor, so it is mapped to a noncreateable coclass in the COM type library generated when the .NET assembly is registered with COM. Consequently it can't be instantiated using any COM-based mechanism - only by managed code calling one of its constructors. Besides which its namespace-qualified name is too long to be a COM ProgId. If you want to exploit this .NET c

Categories : PHP

How to create indexes in MongoDB via .NET
Something like this should do: var server = MongoServer.Create("mongodb://localhost"); var db = server.GetDatabase("myapp"); var users = db.GetCollection<User>("users"); users.EnsureIndex(new IndexKeysBuilder().Ascending("EmailAddress")); Please see the following bits in the documentation: http://api.mongodb.org/csharp/current/html/06bcd201-8844-3df5-d170-15f2b423675c.htm

Categories : C#

pip/easy_install failure: failed to create process
When I encountered this, it was because I'd manually renamed the directory python was in. This meant that both setuptools and pip had to be reinstalled. Or, I had to manually rename the python directory to what it had been previously.

Categories : Python

ob_start() failed to create buffer in laravel three
The new server is Ubuntu? Are your development server and the "new server" the same OS? Same PHP versions? It's possible the two servers are completely different! Can you show your cronjob? (Does it attempt to use a specific php binary via a #!/usr/bin/env php call ? One possibility for Ubuntu: PHP run in CLI can be different from being run in Apache, and especially is likely different if you're using php5-fpm with Nginx. They each can have their own php.ini and different extensions loaded. As you said, you're using Ubuntu Server. If you're using php 5.5, you may note a few things in /etc/php5: /etc/php5/mods-available # All mods available / installed /etc/php5/cli/php.ini # php.ini for CLI-called php5 /etc/php5/cli/conf.d # Directory of symlinks to extensions in mods-avai

Categories : PHP

Failed to create BuildConfig class-Android
After I imported the sample project from CD. I got the same error message. It is a permission problem. I did the following steps: close project in ADT change the directory and subdirectory permission in workspace. Then, the error message gone.

Categories : Android

Failed to create new project in android studio 0.2.3
Make sure that the SDK folder you mention exists - I'm not sure if it is a typo or not but the path you specified is a bit weird - it should be C:Program Files (x86)Androidandroid-studiosdk On the menu go to File -> Project Structure, then choose SDKs under Platform Settings. Check that the path for the Android Platform you use is correct, and if not, change it to the correct path. Also make sure that the Project is set to use the correct Android Platform.

Categories : Android

CREATE MASTER KEY - Password validation failed
If you are sure your password policies are not the problem, it must be the other option: a password filter. Check with your administrator if he has installed such for security reasons: http://msdn.microsoft.com/en-us/library/windows/desktop/ms721766.aspx

Categories : Sql Server

How can we upload log files from a failed .msi install (Using WiX to create)
If you set the MsiLogging property to something like "voicewarmupx", you can later use the property MsiLogFileLocation to get the log file location. This supported in Windows Installer 4.0 and higher. If a batch file or PowerShell script isn't giving you the programmability you need, you can create a custom action that retrieves the log file and sends it to you.

Categories : Powershell

How can I create a new database in mongodb after dropping it?
mongodb will create (or recreate) it automatically the next time a document is saved to a collection in that database. You shouldn't need any special code and I think you don't need to reconnect either, just save a document in your tests and you should be good to go. FYI this same pattern applies to mongodb collections - they are implicit create on write.

Categories : Node Js

Failed to create sdcard in the AVD folder in linux fedora?
I also tried all the answers given in this link Ubuntu - Error: Failed to create the SD card Try moving the android sdk folder to home folder. It works.

Categories : Android

I have got this error : Failed to create InitialContext using factory specified in hashtable
Somewhere you're trying to create an InitialContext, but have not provided the appropriate parameters for it. Here's an example on creating the InitialContext on Weblogic: http://docs.oracle.com/cd/E15051_01/wls/docs103/javadocs/weblogic/jndi/WLInitialContextFactory.html If you're not creating an InitialContext by hand, then you need to configure the JNDI settings from the Admin Console.

Categories : Java

failed to create task or type checkenv Cause The name is undefined
<checkenv /> is required for the Android build, it's in a library in the Android SDK directory. I had the same problem and discovered the cause was a bad directory in the local.properties file required by build.xml and buildAndroid.xml. Here's a sample of my local.properties file: # This file is automatically generated by Android Tools. # Do not modify this file -- YOUR CHANGES WILL BE ERASED! # # This file must *NOT* be checked into Version Control Systems, # as it contains information specific to your local configuration. # location of the SDK. This is only used by Ant # For customization when using a Version Control System, please read the # header note. sdk.dir=/Users/myusername/android-sdk-macosx This gets generated automatically when I'm in Eclipse, but when Eclipse is cl

Categories : Android



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.