This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

PHP Warnings on Daemon Run (opendir)
#1
PHP Warnings on Daemon Run (opendir)
Hello,
On my development machine when I run the daemon it takes a HUGE amount of time (around 5min for each daemon run... and returns tons of tons of PHP Warning like this:

PHP Code:
PHP Warning opendir('/var/sentora/hostdata/my_account/public_html/my_domain_dev/web/app/themes/my_folder/node_modules/asset-builder/node_modules/main-bower-files/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/es6-set/node_modules/es5-ext/test/string/raw'): failed to open dirOperation not permitted in '/etc/sentora/panel/dryden/fs/director.class.php' on line 347 

Any idea what i may be?

the node_modules has a ton of files... that might explain it...
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#2
RE: PHP Warnings on Daemon Run (opendir)
Why do you have so long opendir?

opendir('/var/sentora/hostdata/my_account/public_html/my_domain_dev/web/app/themes/my_folder/node_modules/asset-builder/node_modules/main-bower-files/node_modules/vinyl-fs/node_modules/glob-stream/node_modules/unique-stream/node_modules/es6-set/node_modules/es5-ext/test/string/raw'):

usually opendir are only 6 levels never beyond, as you can't set them so long?

We are talking here about sentora daemon or user daemon?
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

10$ free to start your VPS
Reply
Thanks given by: apinto
#3
RE: PHP Warnings on Daemon Run (opendir)
Hi Me.B Smile Thank you for your reply!!

I'm talking about running:
Code:
php -q /etc/sentora/panel/bin/daemon.php
On the command line.

UPDATE/EDIT: This happens when calculating disk usage.

I understand the issue might be related to the huge file path (seriously it's really huge, I admit).
However that "huge" path is a necessary evil of my workflow (and honestly of any modern package management workflow like npm, composer, bower, etc; as they import other packages).

Is there any way of getting around this?
Specially without hacking too much
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#4
RE: PHP Warnings on Daemon Run (opendir)
I think we have a tweak for BW already that 5050 made and would later opt for disabling BW/ disk usage by admin for some users.

Currently I don't see a solution.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

10$ free to start your VPS
Reply
Thanks given by:
#5
RE: PHP Warnings on Daemon Run (opendir)
My concern is infact the performance of such file setups.
Because the final disk usage is correctly read.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#6
RE: PHP Warnings on Daemon Run (opendir)
Thank you for reply Me.B!
I'll look into a different way to get around this.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#7
RE: PHP Warnings on Daemon Run (opendir)
(05-09-2015, 07:17 PM)apinto Wrote: My concern is infact the performance of such file setups.
Because the final disk usage is correctly read.

You can still lower cron priority so it uses less CPU by the way ( We do it already).
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

10$ free to start your VPS
Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Server load in daemon Process damanmokha 1 5 ,347 12-11-2018, 12:10 AM
Last Post: fearworks
Uninstalled but have cron daemon issues now HELP suprastan 1 5 ,216 10-07-2018, 03:26 AM
Last Post: TGates
Sentora daemon high memory usage angelorocha 9 19 ,742 12-24-2017, 10:13 AM
Last Post: angelorocha

Forum Jump:


Users browsing this thread: 1 Guest(s)