php extension in owncloud plugin

Status
Not open for further replies.

Kaitux

Dabbler
Joined
Jun 9, 2016
Messages
19
Hey Guys,

short version:
i think i need to install the php-PCNTL-extension for running the "occ files:cleanup" command in the owncloud-plugin


extended version:

since my upgrade to owncloud 9.1 plugin on 9.10 freenas i got two annoying errors, which spam my whole logfile every seccond...
- "Error getting storage info for mount at (...)"
- File with id "0815" has not been found.

i think i found the solution in another forum: run the occ command "files:scan" and "files:cleanup"

In case someone wants to know how to run it in the plugin:
cd /usr/pbi/owncloud-amd64/www/owncloud
chsh -s /bin/sh www
su www
/usr/pbi/owncloud-amd64/bin/php ./occ files:scan
/usr/pbi/owncloud-amd64/bin/php ./occ files:cleanup

if i run the files:cleanup command i get the error:
"The process control (PCNTL) extensions are required in case you want to interrupt long running commands"

So: is ther any possibility to run the command nevertheless the plugin?
I coudnt figure it out so i tried to install the pcntl extension.
If i'm correct the owncloud-plugin 9.1 runs php version 5.5.1.6.
When i tried to install the extension over "pkg install" i could only find the php55-pcntl package "php55-pcntl-5.5.38" and this one could solve the problem after installing...

So my question: what is the most simple solution to run the files:cleanup command?


Thanks for any help!!
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
plugins don't use 'pkg' and changing the bundled dependencies is fairly difficult. If you want that flexibility you should install it in a standard jail.

That is a warning and not an error, you do not need that extension.
 

Kaitux

Dabbler
Joined
Jun 9, 2016
Messages
19
Thanks for your help.
But the files:cleanup warning stops the process. How do i skip the warning?
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
Thanks for your help.
But the files:cleanup warning stops the process. How do i skip the warning?
can i see a screenshot? also check and post the log in /media
 

Kaitux

Dabbler
Joined
Jun 9, 2016
Messages
19
here is the screenshot - not much information i think...

not sure how to post the log in/media. I'm using the console on the freeness webui; or can i see the login/media on the owncloud webui?
(sorry for the stupid question. I'm totally new in freenas & owncloud... )
owncloud cleanup warning.png
 

Joshua Parker Ruehlig

Hall of Famer
Joined
Dec 5, 2011
Messages
5,949
here is the screenshot - not much information i think...

not sure how to post the log in/media. I'm using the console on the freeness webui; or can i see the login/media on the owncloud webui?
(sorry for the stupid question. I'm totally new in freenas & owncloud... )
View attachment 13744
The 'occ files:cleanup' command is running properly, see the last line of output. What you said here https://forums.freenas.org/index.php?threads/php-extension-in-owncloud-plugin.46153/#post-314564 is incorrect, and I was correct in saying you can ignore the warning.

If you want to read the log you can output or edit the file /media/owncloud.log
Code:
cat /media/owncloud.log
ee /media/owncloud.log
 

Kaitux

Dabbler
Joined
Jun 9, 2016
Messages
19
ok thx, but in this case i was also wrong with the assumption that files:cleanup will solve my problems...
i still got the two errors
- 2x "Error getting storage info for mount at (/path)"
- 2x "File with id "0815" has not been found."

backgroundinfo: the 2 files were shared. After the upgrade to 9.1 the two errors appeared, so i quit the share function and deleted both files on both users - error was still there. Now i found out, that files:cleanup doesn't help.
Any other idea?
 

Kaitux

Dabbler
Joined
Jun 9, 2016
Messages
19
but its ok.. i decided to install owncloud new in a jail by myself...
lets see if its gone then
 
Status
Not open for further replies.
Top