duanfeigui6655 2015-05-23 12:51
浏览 583
已采纳

去appengine:恐慌:proto:重复的枚举注册:appengine.LogServiceError_ErrorCode

I've recently updated my golang GAE SDK (goapp version is now go1.4.2 (appengine-1.9.21) darwin/amd64), and I'm getting this error now when trying to serve the app:

orcaman$ goapp version
go version go1.4.2 (appengine-1.9.21) darwin/amd64

Ors-MacBook-Pro:main orcaman$ goapp serve

INFO     2015-05-23 12:45:38,666 devappserver2.py:745] Skipping SDK update check.
INFO     2015-05-23 12:45:38,778 api_server.py:190] Starting API server at: http://localhost:57135
INFO     2015-05-23 12:45:38,784 dispatcher.py:192] Starting module "default" running at: http://localhost:8080
INFO     2015-05-23 12:45:38,785 admin_server.py:118] Starting admin server at: http://localhost:8000
ERROR    2015-05-23 12:45:43,640 http_runtime.py:343] bad runtime process port ['']
panic: proto: duplicate enum registered: appengine.LogServiceError_ErrorCode

goroutine 1 [running]:
github.com/golang/protobuf/proto.RegisterEnum(0x5be130, 0x23, 0xc2080b1470, 0xc2080b14a0)
    /private/var/folders/00/0v42r000h01000cxqpysvccm003chb/T/appengine/go_appengine/goroot/src/github.com/golang/protobuf/proto/properties.go:739 +0xe1
google.golang.org/appengine/internal/log.init·1()
    /Users/orcaman/github.com/streamrail/go/src/google.golang.org/appengine/internal/log/log_service.pb.go:897 +0x4c
google.golang.org/appengine/internal/log.init()
    /var/folders/dv/g8_pdljx49gdtbs25_1ch7vm0000gn/T/tmpW9bYiGappengine-go-bin/_extra_imports_9.go:7 +0x191
google.golang.org/appengine/log.init()
    /var/folders/dv/g8_pdljx49gdtbs25_1ch7vm0000gn/T/tmpW9bYiGappengine-go-bin/_extra_imports_25.go:7 +0x4f
github.com/streamrail/appengine/website.init()
    /var/folders/dv/g8_pdljx49gdtbs25_1ch7vm0000gn/T/tmpW9bYiGappengine-go-bin/_extra_imports_36.go:7 +0x68
main04809.init()
    _extra_imports_42.go:7 +0x51
main.init()
    _go_main.go:18 +0x42

goroutine 2 [runnable]:
runtime.forcegchelper()
    /private/var/folders/00/0v42r000h01000cxqpysvccm003chb/T/appengine/go_appengine/goroot/src/runtime/proc.go:90
runtime.goexit()
    /private/var/folders/00/0v42r000h01000cxqpysvccm003chb/T/appengine/go_appengine/goroot/src/runtime/asm_amd64.s:2232 +0x1

goroutine 3 [runnable]:
runtime.bgsweep()
    /private/var/folders/00/0v42r000h01000cxqpysvccm003chb/T/appengine/go_appengine/goroot/src/runtime/mgc0.go:82
runtime.goexit()
    /private/var/folders/00/0v42r000h01000cxqpysvccm003chb/T/appengine/go_appengine/goroot/src/runtime/asm_amd64.s:2232 +0x1

goroutine 4 [runnable]:
runtime.runfinq()
    /private/var/folders/00/0v42r000h01000cxqpysvccm003chb/T/appengine/go_appengine/goroot/src/runtime/malloc.go:712
runtime.goexit()
    /private/var/folders/00/0v42r000h01000cxqpysvccm003chb/T/appengine/go_appengine/goroot/src/runtime/asm_amd64.s:2232 +0x1

after reading this, I though this might be related to having refs to both the new "google.golang.org/appengine" and old "appengine" packages at the same time, but my application now does not have a single ref to "appengine".

help?

  • 写回答

1条回答 默认 最新

  • duanqu9292 2015-05-23 12:54
    关注

    OK, I got it: I had to delete my $GOPATH/src/google.golang.org/appengine/ folder, and then re-run goapp get from my app to re-fetch the deps in the new format. This fixed the issue mentioned above.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 stm32代码移植没反应
  • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
  • ¥100 连续两帧图像高速减法
  • ¥15 组策略中的计算机配置策略无法下发
  • ¥15 如何绘制动力学系统的相图
  • ¥15 对接wps接口实现获取元数据
  • ¥20 给自己本科IT专业毕业的妹m找个实习工作
  • ¥15 用友U8:向一个无法连接的网络尝试了一个套接字操作,如何解决?
  • ¥30 我的代码按理说完成了模型的搭建、训练、验证测试等工作(标签-网络|关键词-变化检测)
  • ¥50 mac mini外接显示器 画质字体模糊