@Tom-Elliott I’m on a roll with these questions with obvious answers…sigh…thanks again Tom!
Posts made by moses
-
RE: Is there a way to capture an image without re-sizing the partitions?
-
Is there a way to capture an image without re-sizing the partitions?
I want to capture an imaging without FOG shrinking anything on the client machine it’s capturing from. How can I do this?
-
RE: Add Snapin page > Error 500
Disregard. I found the issue.
This server was migrated from a backup, and the backup had my old FTP password in there. Updated the master storage node with the correct, new password, page loaded fine.
-
Add Snapin page > Error 500
When going to /fog/management/index.php?node=snapin&sub=add, I get an HTTP 500 error.
Here’s what I get in my Apache error log:
[Fri Mar 11 10:19:51.079313 2016] [:error] [pid 7180] [client 192.168.1.144:51357] PHP Fatal error: Uncaught exception 'Exception' with message 'Type: 2, File: /var/www/html/fog/lib/fog/fogftp.class.php, Line: 104, Message: ftp_login(): Login incorrect.' in /var/www/html/fog/lib/fog/fogftp.class.php:51\nStack trace:\n#0 /var/www/html/fog/lib/pages/snapinmanagementpage.class.php(88): FOGFTP->connect()\n#1 [internal function]: SnapinManagementPage->add()\n#2 /var/www/html/fog/lib/fog/fogpagemanager.class.php(67): call_user_func(Array)\n#3 /var/www/html/fog/management/index.php(24): FOGPageManager->render()\n#4 {main}\n thrown in /var/www/html/fog/lib/fog/fogftp.class.php on line 51, referer: http://192.168.1.66/fog/management/index.php?node=snapin
I attempted updating from 6649 to 6679 just now, but the problem persisted.
-
RE: FOG Version
@sfayle Regardless of which one you used, there are instructions in https://wiki.fogproject.org/wiki/index.php/Upgrade_to_trunk that tell you how to update to the latest:
cd /folder_you_set_up_for_fog_trunk/
svn up
cd bin
./installfog.shcd /folder_you_set_up_for_fog_trunk/
git pull
cd bin
./installfog.shcd /folder_you_set_up_for_fog_trunk/
./installfog.sh -
RE: Granular permissions
@Sebastian-Roth I didn’t know that plugin did that! Awesome. I’ll give that a try.
-
RE: FOG Version
@sfayle Which procedure did you use to grab the installer? Git? Svn?
-
Granular permissions
It would be nice to be able to restrict FOG users from certain pages or tasks. At the moment, restricting them from web access entirely is good, but it would be better to block access to, for example, the FOG Configuration page or images page.
A step further would be doing this on a user-group basis.
-
RE: Egress / transmit bandwidth not showing up
@Tom-Elliott That did the trick!
That is, after I mistook the interface name “eno1” for “en01”. I should really go to bed.
-
RE: Egress / transmit bandwidth not showing up
@Tom-Elliott Ah. Yes. Forgot that the master is listed in storage nodes. After that’s changed, are there any services that need to be restarted?
-
RE: Egress / transmit bandwidth not showing up
@Tom-Elliott And that interface field should be set to the master’s interface? Not the nodes’?
-
RE: Egress / transmit bandwidth not showing up
@Tom-Elliott Where is the interface define in the GUI? Can’t seem to find that setting.
-
RE: Egress / transmit bandwidth not showing up
I’m not sure if this is the relevant place, but the
/fog/status/bandwidth.php
page for my master shows:{"dev":"unknown","rx":0,"tx":0}
-
Egress / transmit bandwidth not showing up
On my master FOG server, my transmit bandwidth graph is not showing anything for the master itself (ie. when it’s replicating an image, it only shows the nodes receiving data, but no transmit).
This obviously is merely a cosmetic issue, not one of significant importance, but it would be nice to fix. The issue was there when my master was on an ubuntu box, but the problem is still there after moving to CentOS.
Am I just missing a really obvious setting?
-
RE: Restarting apache2 for fog vhost...failed! Can't update
@Tom-Elliott That did the trick! Thanks, Tom
-
RE: Restarting apache2 for fog vhost...failed! Can't update
@Sebastian-Roth Similarly then, I’d probably be better off moving those nodes to a different distro.
-
RE: Restarting apache2 for fog vhost...failed! Can't update
Here’s the whole log:
ii php5-json 1.3.9-1+deb.sury.org~trusty+4 amd64 JSON module for php5 ii php5-json 1.3.9-1+deb.sury.org~trusty+4 amd64 JSON module for php5 ii php5-gd 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 GD module for php5 ii php5-cli 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 command-line interpreter for the php5 scripting language ii php5-curl 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 CURL module for php5 ii mysql-server 5.6.28-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version) ii mysql-server 5.6.28-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version) ii mysql-client 5.6.28-0ubuntu0.15.10.1 all MySQL database client (metapackage depending on the latest version) ii tftpd-hpa 5.2+20140608-3ubuntu1 amd64 HPA's tftp server ii tftp-hpa 5.2+20140608-3ubuntu1 amd64 HPA's tftp client ii nfs-kernel-server 1:1.2.8-9ubuntu10 amd64 support for NFS kernel server ii vsftpd 3.0.2-20ubuntu1 amd64 lightweight, efficient FTP server written for security ii net-tools 1.60-26ubuntu1 amd64 NET-3 networking toolkit ii wget 1.16.1-1ubuntu1 amd64 retrieves files from the web ii xinetd 1:2.3.15-4 amd64 replacement for inetd with many enhancements ii sysv-rc-conf 0.99-7 all SysV init runlevel configuration tool for the terminal ii tar 1.27.1-2 amd64 GNU version of the tar archiving utility ii gzip 1.6-4ubuntu1 amd64 GNU compression utilities ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages ii cpp 4:5.2.1-3ubuntu1 amd64 GNU C preprocessor (cpp) ii gcc 4:5.2.1-3ubuntu1 amd64 GNU C compiler ii g++ 4:5.2.1-3ubuntu1 amd64 GNU C++ compiler ii m4 1.4.17-4 amd64 macro processing language ii htmldoc 1.8.27-8ubuntu1 amd64 HTML processor that generates indexed HTML, PS, and PDF ii lftp 4.6.3a-1 amd64 Sophisticated command-line FTP/HTTP/BitTorrent client programs ii openssh-server 1:6.9p1-2ubuntu0.1 amd64 secure shell (SSH) server, for secure access from remote machines ii php5-mcrypt 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 MCrypt module for php5 php5-mysqlnd-ms php5-mysqlnd ii php5-mysqlnd 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 MySQL module for php5 (Native Driver) ii curl 7.43.0-1ubuntu2.1 amd64 command line tool for transferring data with URL syntax ii libc6:amd64 2.21-0ubuntu4.1 amd64 GNU C Library: Shared libraries ii libcurl3:amd64 7.43.0-1ubuntu2.1 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour) ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4 amd64 compression library - runtime ii php5-fpm 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii libapache2-mod-php5 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module) Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Site 001-fog disabled. To activate the new configuration, you need to run: service apache2 reload mysqlnd mcrypt cp: ‘/etc/apache2/mods-available/php5.conf’ and ‘/etc/apache2/mods-enabled/php5.conf’ are the same file cp: ‘/etc/apache2/mods-available/php5.load’ and ‘/etc/apache2/mods-enabled/php5.load’ are the same file apache2.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install enable apache2 Synchronizing state of php5-fpm.service with SysV init with /lib/systemd/systemd-sysv-install... Executing /lib/systemd/systemd-sysv-install enable php5-fpm insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). Signature ok subject=/CN=192.168.2.66 Getting CA Private Key ln: failed to create symbolic link ‘/var/www/html/fog/fog’: File exists Module php5 already enabled Module rewrite already enabled Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb already enabled Module ssl already enabled Enabling site 001-fog. To activate the new configuration, you need to run: service apache2 reload Job for php5-fpm.service failed because a timeout was exceeded. See "systemctl status php5-fpm.service" and "journalctl -xe" for details. ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: active (running) since Tue 2016-03-08 15:46:53 EST; 1min 31s ago Docs: man:systemd-sysv-generator(8) Process: 5731 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─5753 /usr/sbin/apache2 -k start ├─5758 /usr/sbin/apache2 -k start ├─5759 /usr/sbin/apache2 -k start ├─5760 /usr/sbin/apache2 -k start ├─5761 /usr/sbin/apache2 -k start └─5762 /usr/sbin/apache2 -k start Mar 08 15:46:51 SVR-MSN-IMAGING systemd[1]: Starting LSB: Apache2 web server... Mar 08 15:46:51 SVR-MSN-IMAGING apache2[5731]: * Starting web server apache2 Mar 08 15:46:52 SVR-MSN-IMAGING apache2[5731]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'Server Name' directive globally to suppress this message Mar 08 15:46:53 SVR-MSN-IMAGING apache2[5731]: * Mar 08 15:46:53 SVR-MSN-IMAGING systemd[1]: Started LSB: Apache2 web server. ● php5-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Tue 2016-03-08 15:48:22 EST; 2s ago Process: 5750 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=exited, status=0/SUCCESS) Process: 5740 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS) Main PID: 5750 (code=exited, status=0/SUCCESS) Mar 08 15:46:52 SVR-MSN-IMAGING systemd[1]: Starting The PHP FastCGI Process Manager... Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Start operation timed out. Terminating. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: Failed to start The PHP FastCGI Process Manager. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Unit entered failed state. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Failed with result 'timeout'. ^C administrator@SVR-MSN-IMAGING:~/fogproject/bin/error_logs$ ls fog_error_6409.log fog_error_6476.log fog_error_6503.log fog_error_6549.log fog_error_6617.log fog_error_6631.log fog_error_6415.log fog_error_6495.log fog_error_6505.log fog_error_6609.log fog_error_6629.log foginstall.log administrator@SVR-MSN-IMAGING:~/fogproject/bin/error_logs$ tail -100f fog_error_6631.log ii php5-json 1.3.9-1+deb.sury.org~trusty+4 amd64 JSON module for php5 ii php5-json 1.3.9-1+deb.sury.org~trusty+4 amd64 JSON module for php5 ii php5-gd 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 GD module for php5 ii php5-cli 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 command-line interpreter for the php5 scripting language ii php5-curl 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 CURL module for php5 ii mysql-server 5.6.28-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version) ii mysql-server 5.6.28-0ubuntu0.15.10.1 all MySQL database server (metapackage depending on the latest version) ii mysql-client 5.6.28-0ubuntu0.15.10.1 all MySQL database client (metapackage depending on the latest version) ii tftpd-hpa 5.2+20140608-3ubuntu1 amd64 HPA's tftp server ii tftp-hpa 5.2+20140608-3ubuntu1 amd64 HPA's tftp client ii nfs-kernel-server 1:1.2.8-9ubuntu10 amd64 support for NFS kernel server ii vsftpd 3.0.2-20ubuntu1 amd64 lightweight, efficient FTP server written for security ii net-tools 1.60-26ubuntu1 amd64 NET-3 networking toolkit ii wget 1.16.1-1ubuntu1 amd64 retrieves files from the web ii xinetd 1:2.3.15-4 amd64 replacement for inetd with many enhancements ii sysv-rc-conf 0.99-7 all SysV init runlevel configuration tool for the terminal ii tar 1.27.1-2 amd64 GNU version of the tar archiving utility ii gzip 1.6-4ubuntu1 amd64 GNU compression utilities ii build-essential 12.1ubuntu2 amd64 Informational list of build-essential packages ii cpp 4:5.2.1-3ubuntu1 amd64 GNU C preprocessor (cpp) ii gcc 4:5.2.1-3ubuntu1 amd64 GNU C compiler ii g++ 4:5.2.1-3ubuntu1 amd64 GNU C++ compiler ii m4 1.4.17-4 amd64 macro processing language ii htmldoc 1.8.27-8ubuntu1 amd64 HTML processor that generates indexed HTML, PS, and PDF ii lftp 4.6.3a-1 amd64 Sophisticated command-line FTP/HTTP/BitTorrent client programs ii openssh-server 1:6.9p1-2ubuntu0.1 amd64 secure shell (SSH) server, for secure access from remote machines ii php5-mcrypt 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 MCrypt module for php5 php5-mysqlnd-ms php5-mysqlnd ii php5-mysqlnd 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 MySQL module for php5 (Native Driver) ii curl 7.43.0-1ubuntu2.1 amd64 command line tool for transferring data with URL syntax ii libc6:amd64 2.21-0ubuntu4.1 amd64 GNU C Library: Shared libraries ii libcurl3:amd64 7.43.0-1ubuntu2.1 amd64 easy-to-use client-side URL transfer library (OpenSSL flavour) ii zlib1g:amd64 1:1.2.8.dfsg-2ubuntu4 amd64 compression library - runtime ii php5-fpm 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 server-side, HTML-embedded scripting language (FPM-CGI binary) ii libapache2-mod-php5 5.6.18+dfsg-1+deb.sury.org~trusty+1 amd64 server-side, HTML-embedded scripting language (Apache 2 module) Enter new UNIX password: Retype new UNIX password: passwd: password updated successfully Site 001-fog disabled. To activate the new configuration, you need to run: service apache2 reload mysqlnd mcrypt cp: ‘/etc/apache2/mods-available/php5.conf’ and ‘/etc/apache2/mods-enabled/php5.conf’ are the same file cp: ‘/etc/apache2/mods-available/php5.load’ and ‘/etc/apache2/mods-enabled/php5.load’ are the same file apache2.service is not a native service, redirecting to systemd-sysv-install Executing /lib/systemd/systemd-sysv-install enable apache2 Synchronizing state of php5-fpm.service with SysV init with /lib/systemd/systemd-sysv-install... Executing /lib/systemd/systemd-sysv-install enable php5-fpm insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). insserv: warning: current stop runlevel(s) (empty) of script `php5-fpm' overrides LSB defaults (0 1 6). Signature ok subject=/CN=192.168.2.66 Getting CA Private Key ln: failed to create symbolic link ‘/var/www/html/fog/fog’: File exists Module php5 already enabled Module rewrite already enabled Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Module socache_shmcb already enabled Module ssl already enabled Enabling site 001-fog. To activate the new configuration, you need to run: service apache2 reload Job for php5-fpm.service failed because a timeout was exceeded. See "systemctl status php5-fpm.service" and "journalctl -xe" for details. ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: active (running) since Tue 2016-03-08 15:46:53 EST; 1min 31s ago Docs: man:systemd-sysv-generator(8) Process: 5731 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─5753 /usr/sbin/apache2 -k start ├─5758 /usr/sbin/apache2 -k start ├─5759 /usr/sbin/apache2 -k start ├─5760 /usr/sbin/apache2 -k start ├─5761 /usr/sbin/apache2 -k start └─5762 /usr/sbin/apache2 -k start Mar 08 15:46:51 SVR-MSN-IMAGING systemd[1]: Starting LSB: Apache2 web server... Mar 08 15:46:51 SVR-MSN-IMAGING apache2[5731]: * Starting web server apache2 Mar 08 15:46:52 SVR-MSN-IMAGING apache2[5731]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'Server Name' directive globally to suppress this message Mar 08 15:46:53 SVR-MSN-IMAGING apache2[5731]: * Mar 08 15:46:53 SVR-MSN-IMAGING systemd[1]: Started LSB: Apache2 web server. ● php5-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Tue 2016-03-08 15:48:22 EST; 2s ago Process: 5750 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=exited, status=0/SUCCESS) Process: 5740 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS) Main PID: 5750 (code=exited, status=0/SUCCESS) Mar 08 15:46:52 SVR-MSN-IMAGING systemd[1]: Starting The PHP FastCGI Process Manager... Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Start operation timed out. Terminating. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: Failed to start The PHP FastCGI Process Manager. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Unit entered failed state. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Failed with result 'timeout'.
I think this is the relevant portion:
Enabling site 001-fog. To activate the new configuration, you need to run: service apache2 reload Job for php5-fpm.service failed because a timeout was exceeded. See "systemctl status php5-fpm.service" and "journalctl -xe" for details. ● apache2.service - LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: active (running) since Tue 2016-03-08 15:46:53 EST; 1min 31s ago Docs: man:systemd-sysv-generator(8) Process: 5731 ExecStart=/etc/init.d/apache2 start (code=exited, status=0/SUCCESS) CGroup: /system.slice/apache2.service ├─5753 /usr/sbin/apache2 -k start ├─5758 /usr/sbin/apache2 -k start ├─5759 /usr/sbin/apache2 -k start ├─5760 /usr/sbin/apache2 -k start ├─5761 /usr/sbin/apache2 -k start └─5762 /usr/sbin/apache2 -k start Mar 08 15:46:51 SVR-MSN-IMAGING systemd[1]: Starting LSB: Apache2 web server... Mar 08 15:46:51 SVR-MSN-IMAGING apache2[5731]: * Starting web server apache2 Mar 08 15:46:52 SVR-MSN-IMAGING apache2[5731]: AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1. Set the 'Server Name' directive globally to suppress this message Mar 08 15:46:53 SVR-MSN-IMAGING apache2[5731]: * Mar 08 15:46:53 SVR-MSN-IMAGING systemd[1]: Started LSB: Apache2 web server. ● php5-fpm.service - The PHP FastCGI Process Manager Loaded: loaded (/lib/systemd/system/php5-fpm.service; enabled; vendor preset: enabled) Active: failed (Result: timeout) since Tue 2016-03-08 15:48:22 EST; 2s ago Process: 5750 ExecStart=/usr/sbin/php5-fpm --nodaemonize --fpm-config /etc/php5/fpm/php-fpm.conf (code=exited, status=0/SUCCESS) Process: 5740 ExecStartPre=/usr/lib/php5/php5-fpm-checkconf (code=exited, status=0/SUCCESS) Main PID: 5750 (code=exited, status=0/SUCCESS) Mar 08 15:46:52 SVR-MSN-IMAGING systemd[1]: Starting The PHP FastCGI Process Manager... Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Start operation timed out. Terminating. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: Failed to start The PHP FastCGI Process Manager. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Unit entered failed state. Mar 08 15:48:22 SVR-MSN-IMAGING systemd[1]: php5-fpm.service: Failed with result 'timeout'.
If I’m reading things right, apache starts, but the installer doesn’t see it? Not 100% sure.
-
Restarting apache2 for fog vhost...failed! Can't update
I’m trying to update two nodes but they fail out towards the end at “Restarting apache2 for fog vhost”
I’m not sure what logs are relevant to this. Let me know and I’ll post them. Both nodes are running ubuntu 15.10, updating using git.
-
RE: Replication has stopped after ugprade
After updating the node in question (despite it failing at “Restarting apache2 for fog vhost”), replication has been fixed.
-
RE: Replication has stopped after ugprade
@Sebastian-Roth fopen errors are gone, now I got a shiny new error (repeated many times):
[Tue Mar 08 13:46:04.596088 2016] [:error] [pid 2547] [client 192.168.1.144:60293] PHP Warning: mysqli::query(): invalid object or resource mysqli\n in /var/www/html/fog/lib/db/mysql.class.php on line 52, referer: http://192.168.1.66/fog/management/index.php?node=home