小编Sam*_*Sam的帖子

在 MacOs Big Sur 升级时遇到 Vagrant Up 错误

我刚刚将我的 mac OS 从 Catalina 升级到 Big Sur。我的流浪汉以前工作正常,然后我遇到了这个问题。(流浪者版本:2.2.13)

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at …
Run Code Online (Sandbox Code Playgroud)

virtualbox vagrant macos-big-sur

23
推荐指数
2
解决办法
1万
查看次数

无法从 BSON 类型 int 转换为 Date

我有这样的集合结构。 MongoDB结构

我想使用此代码根据 date_created 字段按月对集合进行分组。

db.activities.aggregate(
   [     
      { $match: { type: "Expense", "user_hash": "xxx" } },     
      {   
        $group: { 
           _id: { month: { $month: "$date_created" } },            
           total: { $sum: "$amount" }          
        }      
      },   
   ]  
); 
Run Code Online (Sandbox Code Playgroud)

我正在处理此异常。

2020-07-19T23:13:01.652+0700 E  QUERY    [js] uncaught exception: Error: command failed: {
    "operationTime" : Timestamp(1595175178, 1),
    "ok" : 0,
    "errmsg" : "can't convert from BSON type int to Date",
    "code" : 16006,
    "codeName" : "Location16006",
    "$clusterTime" : {
        "clusterTime" : Timestamp(1595175178, 1),
        "signature" : {
            "hash" …
Run Code Online (Sandbox Code Playgroud)

javascript mongodb

1
推荐指数
1
解决办法
1733
查看次数

标签 统计

javascript ×1

macos-big-sur ×1

mongodb ×1

vagrant ×1

virtualbox ×1