connect

Cannot authenticate into mongo, “auth fails”

匿名 (未验证) 提交于 2019-12-03 02:38:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've created an admin user for mongo using these directions: http://docs.mongodb.org/manual/tutorial/add-user-administrator/ From the mongo client it looks like I can authenticate: > use admin switched to db admin > db.auth('admin','SECRETPASSWORD'); 1 > But I can't connect any other way. For example: mongo -u admin -p SECRETPASSWORD gives the error: JavaScript execution failed: Error: 1 8 { code: 1 8 , ok: 0.0, errmsg: "auth fails" } at src/mongo/shell/db.js:L22 8 I have auth = true in etc/mongod.conf. What am I missing? 回答1: Authentication

Why do I get “500 can't connect to theoryx5.uwinnipeg.ca :: 80 (bad hostname)” when I try to install modules?

匿名 (未验证) 提交于 2019-12-03 02:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Whenever I try to install a Perl module, I get the following error: 500 can't connect to theoryx5.uwinnipeg.ca :: 80 (bad hostname) I get the same error with both ActivePerl and Strawberry Perl. How can I fix this? 回答1: I believe you are using cpan ? Start cpan . Enter o conf init urllist . Yes, you would you like cpan to automatically choose some CPAN mirror sites for you. Enter o conf commit . exit 文章来源: Why do I get “500 can't connect to theoryx5.uwinnipeg.ca :: 80 (bad hostname)” when I try to install modules?

nodejs test hyperledger composer v0.15 fails with Error: Card not found: PeerAdmin@hlfv1

匿名 (未验证) 提交于 2019-12-03 02:35:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: With the implementation of cards in v0.15, previous versions of test routines which used profiles (obviously) won't work. However, I cannot find an SDK approach to create the necessary cards to run tests. The 'before' section of code up through v0.14 for my tests has looked like the following, which uses an embedded profile, creates a temporary instance of the network and runs the tests: describe('Finance Network', () => { // let adminConnection; let businessNetworkConnection; before(() => { BrowserFS.initialize(new BrowserFS.FileSystem

How to properly configure Stomp and SockJS endpoint in Spring MVC?

匿名 (未验证) 提交于 2019-12-03 02:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is/may be duplicate of: Websocket - InvalidStateError: The connection has not been established yet . I am implementing Notification System. And want to initialize Socket connection when user Logged In, and show him his notifications, and also if some event happens. My Code snippet as follows. websocket.js : var stompClient = null; function connect( temp ) { alert(temp); //var socket = new SockJS("/websock"); //var socket = new SockJS("/websock"+temp); var socket = new SockJS(context_path+"/websock"+temp); //context_path == "

Hostname was not verified ANDROID

匿名 (未验证) 提交于 2019-12-03 02:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using ksoap lib to call the webservice . In some cases service run correctly but in a case it gives Host name was not verified below is my code for calling webservice . HttpTransportSE httpTransport = new HttpTransportSE(URL, MessageConstant.TIMEOUT_TIME); httpTransport.debug = true; // this is optional, use it if you don't want to use a packet sniffer to check what the sent message was (httpTransport.requestDump) httpTransport.call(SOAP_ACTION, envelope); // send request here is my log cat for the same java.io.IOException: Hostname

pip install is not working

匿名 (未验证) 提交于 2019-12-03 02:34:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to install pygame with pip install . but every time i tried i faced to this error. Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError(': Failed to establish a new connection: [WinError 10061] No connection could be made because the target machine actively refused it',))': /simple/pygame-1-9-3-cp36-cp36m-win-amd64/ Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'ProxyError('Cannot

.Net client connecting to SQL 2005 with wrong provider

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to connect to a database on a server from a developer machine. The server has the named pipes protocol disabled. For some reason from one developer's box we get the following error message. Two other developer boxes can connect using the same code just fine (using tcp/ip). I have tried disabling The named pipes protocol on the client and still receive the following message. The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the

Adaptive server connection failed (DB-Lib error message 20002, severity 9)

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm sure this issue has been raised an uncountable number of times before but perhaps, someone could still help me. I am using pymssql v2.1.3 with Python 2.7.12 and the code that I used several times until yesterday to write data to my Azure SQL DB has somehow decided not to work anymore - for no apparent reason. The firewall is set, my IP is in the whitelist, I can connect to the database using SQL Server Management Studio and query the data but I still keep getting this error when attempting to connect using pymssql. The app is a Flask web

MySQL 8.0.11 error connect to caching_sha2_password the specified module could not be found

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I've tried to connect to the latest MySQL server 8.0.11 from MySQL workbench, but the error keeps popping up: Cannot connect to MySQL server, authentication plugin: caching_sha2_password: the specified module could not be found. I tried looking at MySQL server installation videos online and replicated every step accurately, but the error persists. Any help is greatly appreciated. 回答1: See: Changes in MySQL Workbench 8.0.11 (2018-04-19, Release Candidate) ... MySQL Workbench now supports the caching_sha2_password authentication plugin

MongoDB - Java | How to manage the connection

匿名 (未验证) 提交于 2019-12-03 02:33:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am using MongoDB with Java and have some problems and questions about my connection. First of all, how should I connect to Mongo? Should I use a static client and leave it open? Because it takes like 500ms to connect. So it isn't the best idea to always connect it when users want data, is it? But the next problem is following. When I do some querys i get the error message java.lang.IllegalStateException: The pool is closed or java.lang.IllegalStateException: state should be: open . So, how should I manage my whole MongoDB connection stuff?