SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=header): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_topmenu.inc' line 5

ClearOS Bug Tracker


View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000922ClearOSclearos-frameworkpublic2013-01-08 07:272013-01-29 13:10
Reporterbchambers 
Assigned Touser2 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionunable to reproduce 
PlatformOSOS Version
Product Version6.3.0 Updates 
Target VersionFixed in Version 
Summary0000922: Webconfig cannot be stopped or restarted
DescriptionPermissions on /var/run/webconfig are:

drwx--x---. 2 root webconfig 4096 Jan 8 09:19 webconfig

Webconfig cannot write it's pid file to this directory, so the init script fails to stop or restart the daemon.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0000626)
user2
2013-01-08 07:48

Those are weird permissions, but identical to those used by httpd. I can't duplicate the problem -- it looks like the PID file is written as root before permissions are dropped back to webconfig (?)
(0000627)
bchambers (administrator)
2013-01-08 08:11

Hmm...weird thing is, I set permissions back to original, and everything works OK...However, I'm 100% sure this was broken for some reason...here is the session log:

[root@chambers ~]# ps afxw | grep webconfig
25092 pts/0 S+ 0:00 \_ grep webconfig
24820 ? Ss 0:00 /usr/sbin/webconfig
24822 ? S 0:00 \_ /usr/sbin/webconfig
24823 ? S 0:00 \_ /usr/sbin/webconfig
24824 ? S 0:00 \_ /usr/sbin/webconfig
[root@chambers ~]# ls /var/run/webconfig/webconfig.pid
ls: cannot access /var/run/webconfig/webconfig.pid: No such file or directory
[root@chambers ~]# vi /etc/rc.d/init.d/webconfig
[root@chambers ~]# /etc/rc.d/init.d/webconfig stop
Stopping webconfig: [FAILED]
[root@chambers ~]# ls /var/run/webconfig/webconfig.pid
ls: cannot access /var/run/webconfig/webconfig.pid: No such file or directory
[root@chambers ~]# ls -l /var/run/ | grep webconfig
drwx--x---. 2 root webconfig 4096 Jan 8 09:19 webconfig
[root@chambers ~]# chmod 770 /var/run/webconfig
[root@chambers ~]# ls -l /var/run/ | grep webconfig
drwxrwx---. 2 root webconfig 4096 Jan 8 09:19 webconfig
[root@chambers ~]# ps afxw | grep webconfig
25092 pts/0 S+ 0:00 \_ grep webconfig
24820 ? Ss 0:00 /usr/sbin/webconfig
24822 ? S 0:00 \_ /usr/sbin/webconfig
24823 ? S 0:00 \_ /usr/sbin/webconfig
24824 ? S 0:00 \_ /usr/sbin/webconfig
[root@chambers ~]# kill 24820
[root@chambers ~]# ps afxw | grep webconfig
25094 pts/0 S+ 0:00 \_ grep webconfig
[root@chambers ~]# /etc/rc.d/init.d/webconfig start
Starting webconfig: [ OK ]
[root@chambers ~]# ls /var/run/webconfig/
webconfig.pid
[root@chambers ~]# ls /var/run/webconfig/webconfig.pid
/var/run/webconfig/webconfig.pid
[root@chambers ~]# /etc/rc.d/init.d/webconfig stop
Stopping webconfig: [ OK ]

Mark as not reproducible for now, I guess.
(0000653)
user2
2013-01-29 13:10

Closing for now. Please re-open if issue re-appears.

- Issue History
Date Modified Username Field Change
2013-01-08 07:27 bchambers New Issue
2013-01-08 07:46 user2 Status new => acknowledged
2013-01-08 07:48 user2 Note Added: 0000626
2013-01-08 08:11 bchambers Note Added: 0000627
2013-01-08 10:02 bchambers Resolution open => unable to reproduce
2013-01-29 13:10 user2 Note Added: 0000653
2013-01-29 13:10 user2 Status acknowledged => resolved
2013-01-29 13:10 user2 Assigned To => user2
2013-01-29 13:10 user2 Status resolved => closed

SYSTEM WARNING: 'file_get_contents(https://www.clearos.com/?rendertype=json&get=footer): failed to open stream: Connection refused' in '/var/www/virtual/newwrapper/cf_footer.inc' line 7