Skip to content
This repository was archived by the owner on Dec 20, 2024. It is now read-only.
This repository was archived by the owner on Dec 20, 2024. It is now read-only.

[bugfix] Dragonfly bind an already in used port make dfdaemon.log file size huge #364

@godliness

Description

@godliness

Ⅰ. Issue Description

Dragonfly bind an already in used port make dfdaemon.log file size huge

Ⅱ. Describe what happened

Dragonfly bind an already in used port make dfdaemon.log file size huge, and dragonfly write into dfdaemon.log file frequently, below is the log content:

time="2019-01-28 12:27:00" level=info msg="start dfdaemon param:&{DfPath:/software/servers/df-client/dfget DFRepo:/data/dragonfly/.small-dragonfly/dfdaemon/data/ RateLimit:1000M CallSystem:com_ops_dragonfly URLFilter:Signature&Expires&OSSAccessKeyId Notbs:true MaxProcs:4 Version:false Verbose:false Help:false HostIP:127.0.0.1 Port:65001 Registry:http://repo.image.local DownRule: CertFile: KeyFile:}"
time="2019-01-28 12:27:00" level=fatal msg="listen tcp :65001: bind: address already in use"
time="2019-01-28 12:27:00" level=info msg=init...
time="2019-01-28 12:27:00" level=info msg="dfget version:0.2.0\n"
time="2019-01-28 12:27:00" level=info msg="init finish"
time="2019-01-28 12:27:00" level=info msg="start dfdaemon param:&{DfPath:/software/servers/df-client/dfget DFRepo:/data/dragonfly/.small-dragonfly/dfdaemon/data/ RateLimit:1000M CallSystem:com_ops_dragonfly URLFilter:Signature&Expires&OSS

image

But there is another confused thing is that dragonfly actually already bind on port 65001, but it still output the message time="2019-01-28 12:27:00" level=fatal msg="listen tcp :65001: bind: address already in use"

image

Ⅲ. Describe what you expected to happen

Ⅳ. How to reproduce it (as minimally and precisely as possible)

Ⅴ. Anything else we need to know?

Ⅵ. Environment:

  • dragonfly version: 0.2.1
  • OS (e.g. from /etc/os-release):
    NAME="CentOS Linux"
    VERSION="7 (Core)"
    ID="centos"
    ID_LIKE="rhel fedora"
    VERSION_ID="7"
    PRETTY_NAME="CentOS Linux 7 (Core)"
    ANSI_COLOR="0;31"
    CPE_NAME="cpe:/o:centos:centos:7"
    HOME_URL="https://www.centos.org/"
    BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

/cc @allencloud

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions