pd4d10 / unpub

Self-hosted private Dart Pub server for Enterprise

Home Page:https://pub.dev/packages/unpub

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unpub --database mongodb://localhost:27017/dart_pub does'nt work

tbm98 opened this issue · comments

I've run unpub --database mongodb://localhost:27017/dart_pub but got a error

Unhandled exception:
MongoDB ConnectionException: Could not connect to localhost:27017
- SocketException: OS Error: Connection refused, errno = 61, address = localhost, port = 50298
#0      _ConnectionManager.open (package:mongo_dart/src/network/connection_manager.dart:93:9)
<asynchronous suspension>
#1      Db.open (package:mongo_dart/src/database/db.dart:442:7)
<asynchronous suspension>
#2      main (file:///Users/minhtran/.pub-cache/hosted/pub.dartlang.org/unpub-2.0.0/bin/unpub.dart:27:3)
<asynchronous suspension>

I'm missing MongoDB. my bad.

I've run unpub --database mongodb://localhost:27017/dart_pub but got a error

Unhandled exception:
MongoDB ConnectionException: Could not connect to localhost:27017
- SocketException: OS Error: Connection refused, errno = 61, address = localhost, port = 50298
#0      _ConnectionManager.open (package:mongo_dart/src/network/connection_manager.dart:93:9)
<asynchronous suspension>
#1      Db.open (package:mongo_dart/src/database/db.dart:442:7)
<asynchronous suspension>
#2      main (file:///Users/minhtran/.pub-cache/hosted/pub.dartlang.org/unpub-2.0.0/bin/unpub.dart:27:3)
<asynchronous suspension>

hello. me too, How did you solve this problem?

I don't directly solved this problem. But let try install mongodb and start it first @zeqinjie

@tbm98 yes, i had install mongodb, and success start .but in my macbook is work, but other macbook it was fail

@tbm98

success

image

fail

image

@zeqinjie is other install mongodb ?. This package required local machine have mongodb

@zeqinjie is other install mongodb ?. This package required local machine have mongodb

@tbm98 yes it had install, and start success

image