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
0007691ClearOSapp-samba-directory - Samba Directorypublic2016-03-14 10:162016-03-14 19:57
Reporterbchambers 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product Version7.2.0 
Target VersionFixed in Version 
Summary0007691: Samba Directory never sets initialized flag
DescriptionOn the users page, post install/configuration of the Samba Directory, the function:

$this->status->unhappy()

Kept coming back TRUE.

Looking at initialize function in Samba_Directory, I can't see where it failed, but wouldn't this line barf:

$file = new File(self::FILE_CONFIG);

 if ($file->exists())
            $file->move_to(self::PATH_BACKUP . '/smb-' . date('Y-M-d-H:i:s') . '.conf');

/etc/samba/smb.conf is 644 and owned by 'administrator'...this script is running as webconfig.

????
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0002801)
bchambers (administrator)
2016-03-14 10:18

Related??

Mar 14 11:52:04 localhost events: accounts - event occurred
Mar 14 11:52:04 localhost events: accounts - triggered hook: accounts
Mar 14 11:52:04 localhost engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (207): administrator is not in the sudoers file. This incident will be reported.
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /usr/clearos/apps/base/libraries/Folder.php (387): execute
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /var/clearos/events/accounts/accounts (96): get_listing
Mar 14 11:52:04 localhost engine: exception: error: /usr/clearos/apps/base/libraries/Folder.php (390): administrator is not in the sudoers file. This incident will be reported.
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /var/clearos/events/accounts/accounts (96): get_listing
Mar 14 11:52:04 localhost engine: exception: error: /usr/clearos/apps/base/libraries/Shell.php (207): administrator is not in the sudoers file. This incident will be reported.
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /usr/clearos/apps/samba_directory/libraries/User_Manager_Driver.php (219): execute
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /usr/clearos/apps/samba_directory/libraries/User_Manager_Driver.php (116): _get_details
Mar 14 11:52:04 localhost engine: exception: debug backtrace: /var/clearos/events/accounts/accounts (111): get_list
Mar 14 12:01:40 localhost events: accounts_initialized - event occurred
(0002811)
user2
2016-03-14 19:57

Most of the "superuser" flags are automatically handled in the File class, so you no longer have to explicitly request superuser access. However, the note about the sudoers issue is a show stopper. That issue is getting tracked in 0007711

- Issue History
Date Modified Username Field Change
2016-03-14 10:16 bchambers New Issue
2016-03-14 10:18 bchambers Note Added: 0002801
2016-03-14 19:57 user2 Note Added: 0002811
2016-03-14 19:57 user2 Status new => resolved
2016-03-14 19:57 user2 Resolution open => no change required
2016-03-14 19:57 user2 Assigned To => user2
2016-03-14 19:57 user2 Status resolved => closed
2016-03-14 19:57 user2 Assigned To user2 =>

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