Skip to content

Can't create channel directory: '/apps/nfsen/profiles-data/live/abc-test' File exists #49

@ozbillwang

Description

@ozbillwang

my environment is RHEL 9 with nfsen 1.3.8, perl v5.32.1

when run nfsen start with default nfsen.conf , it is fine. But when add new source, got error:

RRD DB 'abc3.rrd' already exists!
RRD DB 'abc2.rrd' already exists!
Use existing profile info for profile 'live'

New sources to configure : abc-test
Continue? [y/n] y

Add source 'abc-test'Error while setting up channel 'abc-test': Can't create channel directory: '/apps/nfsen/profiles-data/live/abc-test' File exists
No collector started!

Reconfig done!
Setup done.

After troubleshooting, I found , even I manually deleted the folder "/apps/nfsen/profiles-data/live/abc-test" , when the install.pl ask for

New sources to configure : abc-test
Continue? [y/n] 

the folder has been created in the backend. Not sure which perl module did that, the only one is

# grep -ri 'New sources to configure' *
libexec/Nfsources.pm:	print "New sources to configure : ", join(' ', @AddSourceList), "\n" if scalar @AddSourceList;

But there is no line to create new folder in it.

I did a fix directly in libexec/NfProfile.pm

change from

mkdir "$dir

to

mkdir "$dir" unless -d $dir or

it works now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions