Closed atvking closed 9 months ago
Thanks for opening your first issue here! Be sure to follow the relevant issue templates, or risk having this issue marked as invalid.
The command should just be occ db:add-missing-indices
Wow, I swear that was among the first thing's few things I tried with no success (some error message like "Could not open input file: occ") so I quickly moved on to trying other commands. But you are 100% correct and I feel dumb haha! Thanks though!
It also works for my file scan and preview generation commands (which makes sense). In case someone finds this in the future I will note that I now need to escape the spaces in my directories as special characters with a backslash.
i.e.
occ files:scan --path="/user/files/path/to/directory\ with\ spaces"
Is there an existing issue for this?
Current Behavior
I am unable to execute seemingly any occ command and continually get the same errors.
when running
sudo -u abc php /app/www/src/occ db:add-missing-indices
I get:Then after running
chown -R abc:abc /app/www/src/
(which I seem to have to do after ever restart to get past the error above) andsudo -u abc php /app/www/src/occ db:add-missing-indices
again I get:I'm not sure which exact version this started happening on as I was unaware that "occ db:add-missing-indices" needed to be run with each update until trying to track down the fix for the file scan and preview generation commands I run periodically, which are:
sudo -u abc php /config/www/nextcloud/occ files:scan --path="path/to/files"
andsudo -u abc php /config/www/nextcloud/occ preview:generate-all -vvv --path="path/to/files"
In my searching, I learned that the location of occ has changed from /config/www/nextcloud/ to /app/www/src/ (at least I think, otherwise I have no idea where I should be running these from) as I was initially receiving the following error:
"Could not open input file: /config/www/nextcloud/occ"
When I run
sudo -u abc php /app/www/src/occ status
I receive:I did an update from version 24.x to 27.x all at one time (multiple iterative updates, but all in the same sitting), which seemed to go well as I never had booting/access/gui issues and there were no errors that I recall during the update. That was about a month ago and I'm fairly certain I've run some occ commands since then but I'm not 100% sure.
Expected Behavior
occ commands execute as they did before updating to version 27
Steps To Reproduce
sudo -u abc php /app/www/src/occ db:add-missing-indices
Environment
CPU architecture
x86-64
Docker creation
Container logs