Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.

running fluentd gives "The system cannot find the path specified" with td-agent Windows #186

Open
RodolpheGohard opened this issue Sep 24, 2018 · 4 comments

Comments

@RodolpheGohard
Copy link

This issue is reposted from fluent/fluentd#2132 (comment)

Hello, I've just installed tg-agent on windows via the MSI installer

I'm running through the official install-by-msi instructions, but I'm stuck when trying to run fluentd in td-agent. fluentd is not found

D:\apps\td-agent>fluentd -c etc\td-agent\td-agent.conf
The system cannot find the path specified.
 
D:\apps\td-agent>dir
Volume in drive D is Data
Volume Serial Number is 24FF-62D0
 
Directory of D:\apps\td-agent
 
19/09/2018  16:14    <DIR>          .
19/09/2018  16:14    <DIR>          ..
19/09/2018  16:14    <DIR>          bin
19/09/2018  16:14    <DIR>          embedded
19/09/2018  16:14    <DIR>          etc
25/01/2018  10:09             2,602 LICENSE
19/09/2018  16:14    <DIR>          LICENSES
25/01/2018  10:09                79 td-agent-prompt.bat
19/09/2018  16:14    <DIR>          usr
25/01/2018  10:09             5,914 version-manifest.json
25/01/2018  10:09             2,552 version-manifest.txt
 
D:\apps\td-agent>fluentd -c D:\app\td-agent\etc\td-agent\td-agent.conf
The system cannot find the path specified.
 
D:\apps\td-agent>where fluentd
INFO: Could not find files for the given pattern(s).
 
D:\apps\td-agent\bin>cd D:\apps\td-agent\embedded\bin
 
D:\apps\td-agent\embedded\bin>fluentd -c D:\app\td-agent\etc\td-agent\td-agent.c
onf
The system cannot find the path specified.
 
D:\apps\td-agent\embedded\bin>fluentd
The system cannot find the path specified.
 
D:\apps\td-agent\embedded\bin>echo %PATH%
"D:\apps\td-agent\embedded\bin";"D:\apps\td-agent\embedded\bin";xxxxxxxxx
  • td-agent version: v3.1.1
  • Environment information, e.g. OS. Windows 7
@repeatedly
Copy link
Contributor

Maybe, td-agent msi package assumes the installation path is C: drive.
Change to C: drive should be resolved this problem.

@RodolpheGohard
Copy link
Author

It works if I change the drive to C:

But it's not a solution , it's a workaround

@parmsib
Copy link

parmsib commented Feb 5, 2019

Hello.

I'm reviving this issue to report that I've had issues installing fluentd on Windows.
I changed the default installation folder from /etc to /Program Files/ during the installation,
which gave me some headache when attempting to run the td-agent, as my fluentd.bat file
still referenced a path containing "etc" rather than my specified installation path.

Trying to debug this was pretty difficult, as the only error message I received was something along the line of "System could not find the specified path", without any reference to where this path was specified.

Manually changing this path in the bat file resolved my issue, but took me some time to figure out.

@ashie
Copy link
Contributor

ashie commented Apr 7, 2020

I've resolved it in the new build system (#219).

Same solution can be used on current td-agent.
Try the following command after installing td-agent:

gem pristine --only-executables --all

I changed the default installation folder from /etc to /Program Files/ during the installation,

Although I confirmed that fluend can launch from Program Files folder (fluent/fluentd#2920 is needed for recent fluentd), I don't recommend installing td-agent to it since third party plugins might not support such path.

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

No branches or pull requests

4 participants