On 10.07.24 at 10:09 wrote Bruno Friedmann (bruno-at-bareos):
> Maybe because you're trying something that doesn't exist
>
> In normal bconsole if you try command ".sql" you will also have *.sql
> Automatically selected Catalog: mycatalog
> Using Catalog "mycatalog"
> *query keyword not found.*
> You have messages.
>
> which is not "sql" command
I fear, that is not the cause of the problem.
The ".sql" command exists, but require a "query" parameter. It works
well in all api modes.
For me, it is still doubtful, that both commands (Python 2.7 and Python
> 3) user the same credentials, and/or that the Bareos server offers
the some permission for these credentials.
I still guess, other ACLs are defined for the Bareos user (not the
system user!) in the Python 3 case.
I guess you got misleaded by my last comment about "root" user. I did
not meant the system user, but the Bareos user/console, see
https://docs.bareos.org/Configuration/Director.html#console-resource
So, check with what credentials your script logins to the Director and
check what ACLs are defined for that user.
If you have a Bareos support contract, you probable could solve this
quickly with the help of the Bareos support team.
Without further information, there is nothing more I can do to help you
and as your answer to my last reply did take more than a month, I guess
this issue is not of much importance for you.
Regards,
Jörg
--
Jörg Steffens
joerg.s...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221 630693-0