goedge常见问题集锦,方便后续使用

系统发生错误:rpc error: code = Unknown desc = '/pb.RegionCountryService/FindAllRegionCountries()' says: context: unsupported role 'api'

解决方案:SELECT * FROM edgeAPITokens WHERE role='admin';
一般是发生在搬家以后,错误使用的角色权限造成的

mysql> SELECT * FROM edgeAPITokens WHERE role='admin';
+----+----------------------------------+----------------------------------+-------+-------+
| id | nodeId                           | secret                           | role  | state |
+----+----------------------------------+----------------------------------+-------+-------+
|  1 | xxxxxxx | xxxxxxx | admin |     1 |

把获得的 nodeid和secret 替换,然后重启 edge-admin 载入就OK了

标签

发表评论