[GH-ISSUE #2964] frpc reload command is not compatible with '--config_dir' flags #2365

Closed
opened 2026-05-05 13:31:26 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @aa51513 on GitHub (Jun 1, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/2964

Bug Description

/usr/bin/frpc reload --config_dir /etc/frp/client.d
open ./frpc.ini: no such file or directory

frpc Version

0.43.0

frps Version

0.43.0

System Architecture

linux/amd64

Configurations

root@server:~# frpc reload --help
Hot-Reload frpc configuration

Usage:
frpc reload [flags]

Flags:
-h, --help help for reload

Global Flags:
-c, --config string config file of frpc (default "./frpc.ini")
--config_dir string config directory, run one frpc service for each file in config directory
-v, --version version of frpc

Logs

open ./frpc.ini: no such file or directory

Steps to reproduce

  1. run command '/usr/bin/frpc reload --config_dir /etc/frp/client.d' in linux shell
  2. got "open ./frpc.ini: no such file or directory"

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @aa51513 on GitHub (Jun 1, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/2964 ### Bug Description /usr/bin/frpc reload --config_dir /etc/frp/client.d open ./frpc.ini: no such file or directory ### frpc Version 0.43.0 ### frps Version 0.43.0 ### System Architecture linux/amd64 ### Configurations root@server:~# frpc reload --help Hot-Reload frpc configuration Usage: frpc reload [flags] Flags: -h, --help help for reload Global Flags: -c, --config string config file of frpc (default "./frpc.ini") --config_dir string config directory, run one frpc service for each file in config directory -v, --version version of frpc ### Logs open ./frpc.ini: no such file or directory ### Steps to reproduce 1. run command '/usr/bin/frpc reload --config_dir /etc/frp/client.d' in linux shell 2. got "open ./frpc.ini: no such file or directory" ### Affected area - [X] Docs - [X] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@fatedier commented on GitHub (Jun 1, 2022):

Yes, not compatible.

<!-- gh-comment-id:1143082560 --> @fatedier commented on GitHub (Jun 1, 2022): Yes, not compatible.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#2365
No description provided.