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 start docker after a couple of starting and restarting because of go-discord-irc not showing up in irc #146

Open
fhazal opened this issue Feb 18, 2023 · 0 comments

Comments

@fhazal
Copy link

fhazal commented Feb 18, 2023

hye i manage to start the discord bot and can see it online, however i keep run docker run -d go-discord-irc after troubleshooting the config file,in my limited knowledge i maybe accidently flooding the docker service, i already stop all and the docker service by docker stop $(docker ps -a -q) and docker rm $(docker ps -a -q) , i try to start the process again but sadly i still receive enter disable state, how can i fix this ? im using ubuntu 22.04

Feb 18 18:03:06 bajubesiKVM systemd[1]: var-lib-docker-overlay2-51c83d69146a0070a481ddc021ff2148fa8e56b10e0ae296efdec8c9fe95b3da\x2dinit-merged.mount: Deactivated successfully.
Feb 18 18:03:06 bajubesiKVM kernel: [10697.188733] docker0: port 1(veth2afcc49) entered blocking state
Feb 18 18:03:06 bajubesiKVM kernel: [10697.188747] docker0: port 1(veth2afcc49) entered disabled state
Feb 18 18:03:06 bajubesiKVM kernel: [10697.189003] device veth2afcc49 entered promiscuous mode
Feb 18 18:03:06 bajubesiKVM systemd-udevd[9043]: Using default interface naming scheme 'v249'.
Feb 18 18:03:06 bajubesiKVM systemd-udevd[9040]: Using default interface naming scheme 'v249'.
Feb 18 18:03:06 bajubesiKVM containerd[499]: time="2023-02-18T18:03:06.926970265+08:00" level=info msg="loading plugin \"io.containerd.event.v1.publisher\"..." runtime=io.containerd.runc.v2 type=io.containerd.event.v1
Feb 18 18:03:06 bajubesiKVM containerd[499]: time="2023-02-18T18:03:06.928087156+08:00" level=info msg="loading plugin \"io.containerd.internal.v1.shutdown\"..." runtime=io.containerd.runc.v2 type=io.containerd.internal.v1
Feb 18 18:03:06 bajubesiKVM containerd[499]: time="2023-02-18T18:03:06.928315911+08:00" level=info msg="loading plugin \"io.containerd.ttrpc.v1.task\"..." runtime=io.containerd.runc.v2 type=io.containerd.ttrpc.v1
Feb 18 18:03:06 bajubesiKVM containerd[499]: time="2023-02-18T18:03:06.929238034+08:00" level=info msg="starting signal loop" namespace=moby path=/run/containerd/io.containerd.runtime.v2.task/moby/38bfd92b567a5daa3eaa0101b72c67b6d29fec341fea9ee408bf63129b06f151 pid=9067 runtime=io.containerd.runc.v2
Feb 18 18:03:06 bajubesiKVM systemd[1]: Started libcontainer container 38bfd92b567a5daa3eaa0101b72c67b6d29fec341fea9ee408bf63129b06f151.
Feb 18 18:03:07 bajubesiKVM kernel: [10697.619679] eth0: renamed from veth0c9a97d
Feb 18 18:03:07 bajubesiKVM kernel: [10697.620041] IPv6: ADDRCONF(NETDEV_CHANGE): veth2afcc49: link becomes ready
Feb 18 18:03:07 bajubesiKVM kernel: [10697.620081] docker0: port 1(veth2afcc49) entered blocking state
Feb 18 18:03:07 bajubesiKVM kernel: [10697.620084] docker0: port 1(veth2afcc49) entered forwarding state
Feb 18 18:03:07 bajubesiKVM systemd[1]: docker-38bfd92b567a5daa3eaa0101b72c67b6d29fec341fea9ee408bf63129b06f151.scope: Deactivated successfully.
Feb 18 18:03:07 bajubesiKVM dockerd[525]: time="2023-02-18T18:03:07.384984192+08:00" level=info msg="ignoring event" container=38bfd92b567a5daa3eaa0101b72c67b6d29fec341fea9ee408bf63129b06f151 module=libcontainerd namespace=moby topic=/tasks/delete type="*events.TaskDelete"
Feb 18 18:03:07 bajubesiKVM containerd[499]: time="2023-02-18T18:03:07.386460333+08:00" level=info msg="shim disconnected" id=38bfd92b567a5daa3eaa0101b72c67b6d29fec341fea9ee408bf63129b06f151
Feb 18 18:03:07 bajubesiKVM containerd[499]: time="2023-02-18T18:03:07.387964090+08:00" level=warning msg="cleaning up after shim disconnected" id=38bfd92b567a5daa3eaa0101b72c67b6d29fec341fea9ee408bf63129b06f151 namespace=moby
Feb 18 18:03:07 bajubesiKVM containerd[499]: time="2023-02-18T18:03:07.388203907+08:00" level=info msg="cleaning up dead shim"
Feb 18 18:03:07 bajubesiKVM containerd[499]: time="2023-02-18T18:03:07.402177333+08:00" level=warning msg="cleanup warnings time=\"2023-02-18T18:03:07+08:00\" level=info msg=\"starting signal loop\" namespace=moby pid=9127 runtime=io.containerd.runc.v2\n"
Feb 18 18:03:07 bajubesiKVM kernel: [10697.767516] docker0: port 1(veth2afcc49) entered disabled state
Feb 18 18:03:07 bajubesiKVM kernel: [10697.767751] veth0c9a97d: renamed from eth0
Feb 18 18:03:07 bajubesiKVM kernel: [10697.783071] docker0: port 1(veth2afcc49) entered disabled state
Feb 18 18:03:07 bajubesiKVM kernel: [10697.783832] device veth2afcc49 left promiscuous mode
Feb 18 18:03:07 bajubesiKVM kernel: [10697.783837] docker0: port 1(veth2afcc49) entered disabled state
Feb 18 18:03:07 bajubesiKVM systemd[1]: run-docker-runtime\x2drunc-moby-38bfd92b567a5daa3eaa0101b72c67b6d29fec341fea9ee408bf63129b06f151-runc.7FbNDq.mount: Deactivated successfully.
Feb 18 18:03:07 bajubesiKVM systemd[1]: var-lib-docker-overlay2-51c83d69146a0070a481ddc021ff2148fa8e56b10e0ae296efdec8c9fe95b3da-merged.mount: Deactivated successfully.

i manage to run it with Makefile, it's connecting tyo irc server and bring in the discord user and now i get this error, both discord and irc user can chat but this error come out.do i need to set kiwiirc?? or what do i need to make it connect using webirc?? anyone can guide me ?? is it ok to run it on live server with this method ??

WARNING: DATA RACE
Read at 0x00c000990568 by goroutine 291:
  github.com/qaisjp/go-discord-irc/irc/varys.(*Varys).connCall()
      /home/discordirc/go-discord-irc/irc/varys/varys.go:32 +0x112
  github.com/qaisjp/go-discord-irc/irc/varys.(*Varys).SendRaw()
      /home/discordirc/go-discord-irc/irc/varys/varys.go:156 +0xb7
  github.com/qaisjp/go-discord-irc/irc/varys.(*memClient).SendRaw()
      /home/discordirc/go-discord-irc/irc/varys/client_mem.go:30 +0x149
  github.com/qaisjp/go-discord-irc/bridge.(*ircConnection).OnWelcome()
      /home/discordirc/go-discord-irc/bridge/irc_connection.go:52 +0x15e
  github.com/qaisjp/go-discord-irc/bridge.(*ircConnection).OnWelcome-fm()
      <autogenerated>:1 +0x44
  github.com/qaisjp/go-ircevent.(*Connection).RunCallbacks.func1()
      /home/discordirc/go/pkg/mod/github.com/qaisjp/[email protected]/irc_callback.go:164 +0x8b
  github.com/qaisjp/go-ircevent.(*Connection).RunCallbacks.func2()
      /home/discordirc/go/pkg/mod/github.com/qaisjp/[email protected]/irc_callback.go:174 +0x74

Previous write at 0x00c000990568 by goroutine 8:
  github.com/qaisjp/go-discord-irc/irc/varys.(*Varys).Connect()
      /home/discordirc/go-discord-irc/irc/varys/varys.go:124 +0x5d3
  github.com/qaisjp/go-discord-irc/irc/varys.(*memClient).Connect()
      /home/discordirc/go-discord-irc/irc/varys/client_mem.go:22 +0x79
  github.com/qaisjp/go-discord-irc/bridge.(*IRCManager).HandleUser()
      /home/discordirc/go-discord-irc/bridge/irc_manager.go:252 +0x1554
  github.com/qaisjp/go-discord-irc/bridge.(*Bridge).loop()
      /home/discordirc/go-discord-irc/bridge/bridge.go:483 +0x489
  github.com/qaisjp/go-discord-irc/bridge.New.func1()
      /home/discordirc/go-discord-irc/bridge/bridge.go:260 +0x39

Goroutine 291 (running) created at:
  github.com/qaisjp/go-ircevent.(*Connection).RunCallbacks()
      /home/discordirc/go/pkg/mod/github.com/qaisjp/[email protected]/irc_callback.go:162 +0xed5
  github.com/qaisjp/go-ircevent.(*Connection).readLoop()
      /home/discordirc/go/pkg/mod/github.com/qaisjp/[email protected]/irc.go:88 +0x851
  github.com/qaisjp/go-ircevent.(*Connection).Connect.func1()
      /home/discordirc/go/pkg/mod/github.com/qaisjp/[email protected]/irc.go:484 +0x39

Goroutine 8 (running) created at:
  github.com/qaisjp/go-discord-irc/bridge.New()
      /home/discordirc/go-discord-irc/bridge/bridge.go:260 +0x5d6
  main.main()
      /home/discordirc/go-discord-irc/main.go:148 +0x1d91

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant