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

oc_uc_fg_group_user: not found #235

Closed
michielbdejong opened this issue Aug 23, 2023 · 8 comments
Closed

oc_uc_fg_group_user: not found #235

michielbdejong opened this issue Aug 23, 2023 · 8 comments

Comments

@michielbdejong
Copy link
Contributor

split out from #234

@michielbdejong
Copy link
Contributor Author

Trying to reproduce this by running
https://github.com/pondersource/dev-stock/blob/415b275/scripts/testing-rd-sram.sh#L84
interactively

@michielbdejong
Copy link
Contributor Author

@soltanireza65
Copy link
Collaborator

@michielbdejong
image
These are the tables when running bootstrap_rd_sram

@soltanireza65
Copy link
Collaborator

{$prefix}uc_fg_group_user
This is the unique index for user and group combination we made when Tom asked for it

@soltanireza65
Copy link
Collaborator

soltanireza65 commented Aug 24, 2023

unique index uncommented
image

@michielbdejong
Copy link
Contributor Author

@soltanireza65 sorry to hear you couldn't reproduce this bug, let's try together!

michielbdejong added a commit that referenced this issue Aug 24, 2023
@michielbdejong
Copy link
Contributor Author

Conclusion: Reza wasn't trying to reproduce this issue, he was just trying to find the underlying truth or falsehood of the content of the error message.
So now our setup script reproducibly prints an error, but we think it can be safely ignored.
Reza will try to dig into it more.

@michielbdejong
Copy link
Contributor Author

On Tom's system the error message looks slightly different:

[root@255d201065ce owncloud]# sudo -u apache php occ app:enable federatedgroups
sh: line 1: oc_uc_fg_group_user: command not found
federatedgroups enabled

I've been digging into the occ command and it goes through
https://github.com/owncloud/core/tree/master/lib/private/Console to https://github.com/doctrine/dbal/blob/aadddd5/src/Schema/Table.php#L225
and I can't see any shell execution or string 'not found' anywhere..

Aaah, I understand now! it's because of the backticks - when executing the php script using a shebang line like https://github.com/owncloud/core/blob/master/occ#L1 then ultimately the shell execution will evaluate those backticks as https://unix.stackexchange.com/questions/27428/what-does-backquote-backtick-mean-in-commands

So let's replace it with " and try again! :)

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

No branches or pull requests

2 participants