Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't remove SRV record. #71

Closed
yuanchang-akm opened this issue Jan 22, 2019 · 19 comments
Closed

Can't remove SRV record. #71

yuanchang-akm opened this issue Jan 22, 2019 · 19 comments

Comments

@yuanchang-akm
Copy link

yuanchang-akm commented Jan 22, 2019

When removing SRV record using dns module. There's an error.

akamai dns --edgerc ./dns_cred.txt rm-record SRV 20181212.yctest.xyz --name _sip._tls --target ipcenter001.20181212.yctest.xyz --priority 0 --weight 0 --port 443

Removing SRV record.... panic: interface conversion: interface {} is uint, not uint16

goroutine 1 [running]:
github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1.(*Zone).findSrvRecord(0xc4200e4d80, 0xc420190ad8, 0x140174b, 0x3, 0x1)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1/zone.go:1480 +0x695
github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1.(*Zone).FindRecords(0xc4200e4d80, 0x1401760, 0x3, 0xc420190ad8, 0xc420190ce0, 0xc4200e2600, 0x20)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1/zone.go:843 +0x44e
main.cmdRmRecord(0xc42017a2c0, 0x101010100, 0xc42017a2c0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/command_rm_record.go:100 +0xc63
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.HandleAction(0x1386100, 0x141a0f8, 0xc42017a2c0, 0xc4200ba400, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:490 +0xc8
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.Run(0x1401760, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:210 +0xa36
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc4200a6d00, 0xc42017a000, 0x0, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:379 +0xa10
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.startApp(0x14031d6, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:298 +0x8d9
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.Run(0x14031d6, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:98 +0x1246
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.(*App).Run(0xc4200a6b60, 0xc4200b4000, 0x10, 0x10, 0x0, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:255 +0x6a0
main.main()
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/akamai-dns.go:37 +0xcf

@yuanchang-akm
Copy link
Author

Still have this issue after updating to the latest version.

akamai dns --edgerc ./dns_cred.txt rm-record SRV 20181212.yctest.xyz --name _sip._tls --target ipcenter001.20181212.yctest.xyz. --priority 0 --port 80 --ttl 300 --weight 0

Removing SRV record..... panic: interface conversion: interface {} is uint, not uint16

goroutine 1 [running]:
github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1.(*Zone).findSrvRecord(0xc4200e2d80, 0xc420190ad8, 0x140174b, 0x3, 0x1)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1/zone.go:1480 +0x695
github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1.(*Zone).FindRecords(0xc4200e2d80, 0x1401760, 0x3, 0xc420190ad8, 0xc420190cc0, 0xc4200de7e0, 0x27)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1/zone.go:843 +0x44e
main.cmdRmRecord(0xc42017a2c0, 0x10101010100, 0xc42017a2c0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/command_rm_record.go:100 +0xc63
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.HandleAction(0x1386100, 0x141a0f8, 0xc42017a2c0, 0xc4200ba400, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:490 +0xc8
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.Run(0x1401760, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:210 +0xa36
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc4200a6d00, 0xc42017a000, 0x0, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:379 +0xa10
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.startApp(0x14031d6, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:298 +0x8d9
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.Run(0x14031d6, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:98 +0x1246
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.(*App).Run(0xc4200a6b60, 0xc4200b4000, 0x12, 0x12, 0x0, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:255 +0x6a0
main.main()
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/akamai-dns.go:37 +0xcf

@yuanchang-akm
Copy link
Author

Should I open a new Issue about this problem?

@dshafik dshafik reopened this Jan 28, 2019
@dshafik
Copy link
Contributor

dshafik commented Jan 28, 2019

@yuanchang-akm can you try now?

@yuanchang-akm
Copy link
Author

@dshafik
Thank you for your reply.
I updated it to the latest version and tried again.
There is still an error here.

akamai dns --edgerc ./dns_cred.txt rm-record SRV 20181212.yctest.xyz --name _sip._tls --target ipcenter001.20181212.yctest.xyz. --priority 0 --port 80 --ttl 300 --weight 0
Removing SRV record.... panic: interface conversion: interface {} is uint, not uint16

goroutine 1 [running]:
github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1.(*Zone).findSrvRecord(0xc4200e2d80, 0xc420190ad8, 0x140174b, 0x3, 0x1)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1/zone.go:1480 +0x695
github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1.(*Zone).FindRecords(0xc4200e2d80, 0x1401760, 0x3, 0xc420190ad8, 0xc420190cc0, 0xc4200de7e0, 0x27)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/akamai/AkamaiOPEN-edgegrid-golang/configdns-v1/zone.go:843 +0x44e
main.cmdRmRecord(0xc42014e6e0, 0x10101010100, 0xc42014e6e0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/command_rm_record.go:100 +0xc63
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.HandleAction(0x1386100, 0x141a0f8, 0xc42014e6e0, 0xc4200ba400, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:490 +0xc8
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.Run(0x1401760, 0x3, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:210 +0xa36
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.(*App).RunAsSubcommand(0xc4200a6d00, 0xc42014e420, 0x0, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:379 +0xa10
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.startApp(0x14031d6, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:298 +0x8d9
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.Command.Run(0x14031d6, 0x9, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/command.go:98 +0x1246
github.com/akamai/cli-dns/vendor/github.com/urfave/cli.(*App).Run(0xc4200a6b60, 0xc4200b4000, 0x12, 0x12, 0x0, 0x0)
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/vendor/github.com/urfave/cli/app.go:255 +0x6a0
main.main()
/Users/dshafik/src/go/src/github.com/akamai/cli-dns/akamai-dns.go:37 +0xcf

@dshafik
Copy link
Contributor

dshafik commented Jan 29, 2019

@yuanchang-akm how are you updating?

@yuanchang-akm
Copy link
Author

@dshafik
First I updated akamai cli by brew.
And then I updated all the modules using "akamai update" command.

@dshafik
Copy link
Contributor

dshafik commented Jan 30, 2019

@yuanchang-akm can you try an explicit akamai update dns, and if that doesn't work, try akamai uninstall dns && akamai install dns?

@yuanchang-akm
Copy link
Author

@dshafik
I have tried it , but it still have an error.
Can you remove SRV record using CLI with full option like this?
--name _sip._tls --target ipcenter001.20181212.yctest.xyz --priority 0 --weight 0 --port 443

@dshafik
Copy link
Contributor

dshafik commented Jan 30, 2019

@yuanchang-akm yes, can you confirm that akamai dns --version shows 0.2.0? Also, what OS are you on?

@yuanchang-akm
Copy link
Author

yuanchang-akm commented Jan 31, 2019

@dshafik
It shows 0.1.0. Even I uninstall it and reinstall it , it is still version 0.1.0.
Is there any problem in the tool that could not get the latest version?
The OS is Mac OS X Mojave.

And we have tried to install dns module in a PC that never installed dns module,
still can only get version 0.1.0.

@yuanchang-akm
Copy link
Author

@dshafik
This problem need to be solved as soon as possible.
Could you please confirm this?
We can't update dns to 0.2.0.

@yuanchang-akm
Copy link
Author

@dshafik
We found that there's a new version for dns module.
But after updating to the latest version, we can not even use the function which hadn't has problem.
[10:12] ~ > akamai dns -version
[10:12] ~ > akamai dns -help
[10:14] ~ >

No response for commands.

@justinrummel
Copy link

I have been dealing with this for the past couple of days too. The clues are during the install of the dns cli, there were warnings. I bet there was a warning for “go”. Check your terminal history, or un-install/reinstall and verify. To fix:

brew install go

If you get an error about “dep”, it is because your GOPATH env variable is missing. Follow https://github.com/golang/go/wiki/SettingGOPATH to resolve.

If this works for you, please reply to confirm.

@yuanchang-akm
Copy link
Author

@justinrummel
Thank you for your help.
After installing dep by brew, it works well.
Before reporting this problem, we can use CLI without installing golang env and dep.
Is there a good way for us to upgrade and use the latest dns module without installing golang env and dep?

@justinrummel
Copy link

I’ll work with @dshafik now that we know the issue. Thanks for confirming!

@yuanchang-akm
Copy link
Author

@justinrummel
Thank you very much.
This tool is working on client's server, we need one command to get the latest version through:
akamai update.
Could you please give me a schedule for resolving this problem?

@dshafik
Copy link
Contributor

dshafik commented Feb 4, 2019

@yuanchang-akm this should not have needed you to install Golang/dep, however the macOS binary was corrupted. I have fixed this issue and akamai update [dns] should be fine now.

@yuanchang-akm
Copy link
Author

@dshafik
Thank you very much for your help.
It works fine now.

@dshafik
Copy link
Contributor

dshafik commented Feb 5, 2019

@yuanchang-akm thanks for the confirmation, I'll go ahead and close this now.

@dshafik dshafik closed this as completed Feb 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants