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

RRD Proxy Server not supported by CLI script "structure_rra_paths.php" #5034

Closed
browniebraun opened this issue Dec 4, 2022 · 7 comments
Closed
Assignees
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Milestone

Comments

@browniebraun
Copy link
Member

Describe the bug

Once a RRD proxy has been set up and you would like to migrate existing RRDs the execution of
"structure_rra_paths.php" will fail.

To Reproduce

New system, default installation. Poller running, auto discovery enabled. RRD proxy configured and running in full debug mode.
Go to CLI and execute structure_rra_paths.php.

browniebraun@browniebraun-Lenovo-ideapad-530S-14IKB:/var/www/html/cacti/cli$ php structure_rra_paths.php --proceed
NOTE: Found:5 Data Sources. Beginning Process

Warning: chgrp(): Operation not permitted in /var/www/html/cacti/cli/structure_rra_paths.php on line 379
FATAL: Could not Set Permissions for Directory '/var/www/html/cacti/rra/1/1/0'

Proxy shows no connection being established during script run.

  • OS: [e.g. iOS]
    Ubuntu 22.04.1 LTS
@browniebraun browniebraun added bug Undesired behaviour unverified Some days we don't have a clue labels Dec 4, 2022
@browniebraun browniebraun changed the title [1.2.x] RRD Proxy Server not supported by CLI script "structure_rra_paths.php" [1.2.x] - RRD Proxy Server not supported by CLI script "structure_rra_paths.php" Dec 4, 2022
@TheWitness
Copy link
Member

Maybe for these structured path change, we skip the permission change on the file movement. @browniebraun, is this even required for the proxy? For me, I have to add both the hash + gt or dq as there are just so many graphs/devices. Some data queries with 70k graphs. So, even that's a lot for a single directory.

@browniebraun
Copy link
Member Author

From my point of view it is not required, because the proxy owns it and a direct access from somewhere else like web is not supported.

@TheWitness
Copy link
Member

Okay, let me take it then.

@TheWitness TheWitness assigned TheWitness and unassigned browniebraun Dec 4, 2022
TheWitness added a commit that referenced this issue Dec 4, 2022
RRD Proxy Server not supported by CLI script "structure_rra_paths.php"
TheWitness added a commit that referenced this issue Dec 4, 2022
RRD Proxy Server not supported by CLI script "structure_rra_paths.php"
@TheWitness TheWitness added resolved A fixed issue confirmed Bug is confirm by dev team and removed unverified Some days we don't have a clue labels Dec 4, 2022
@TheWitness TheWitness added this to the v1.2.23 milestone Dec 4, 2022
@TheWitness
Copy link
Member

Should be resolved now.

@TheWitness TheWitness changed the title [1.2.x] - RRD Proxy Server not supported by CLI script "structure_rra_paths.php" RRD Proxy Server not supported by CLI script "structure_rra_paths.php" Dec 4, 2022
@browniebraun
Copy link
Member Author

Mmmh, I only meant that the change of ownership is not necessary and not that the support should be skipped. For the proxy it doesn't matter if Cacti wants to have one, two or more sub-directories or just a single one. I'm using it with structured paths in production ( /device_id/local_data_id). Let take a closer look at it this week, once I have time.

BTW: Why does the script say that BOOST has to be enabled to support structured paths?

@TheWitness
Copy link
Member

You know, I can not remember, but I think it's the data source lock.

@browniebraun
Copy link
Member Author

It's 3 in the morning. You should sleep ;)

@github-actions github-actions bot locked and limited conversation to collaborators Mar 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Undesired behaviour confirmed Bug is confirm by dev team resolved A fixed issue
Projects
None yet
Development

No branches or pull requests

2 participants