Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when capturing the system image, in version 1.6 #673

Open
Alterak opened this issue Jan 7, 2025 · 5 comments
Open

Error when capturing the system image, in version 1.6 #673

Alterak opened this issue Jan 7, 2025 · 5 comments

Comments

@Alterak
Copy link

Alterak commented Jan 7, 2025

Describe the bug
A clean version from the [working-1.6] branch has been installed https://github.com/FOGProject/fogproject/tree/working-1.6
An error appears when capturing an operating system image. I also tried to increase the PHP memory limit to 512 MB, but the problem remains.
There was no such error in version 1.5, everything is working correctly.

To Reproduce
Steps to reproduce the behavior:

  1. A clean installation has been completed
  2. Client registration has been completed
  3. Image capture has been created
  4. An error appears after the capture is performed.
  5. Endless cycle of image capture after client reboot

Screenshots
2
3

I noticed some Apache errors

[Tue Jan 07 21:57:43.641101 2025] [proxy_fcgi:error] [pid 23721:tid 23721] [client 192.168.1.207:36748] AH01071: Got error 'PHP message: PHP Warning: Undefined variable $enforce in /var/www/html/fog/lib/reg-task/registration.class.php on line 233; PHP message: PHP Warning: Undefined variable $useAD in /var/www/html/fog/lib/reg-task/registration.class.php on line 240; PHP message: PHP Warning: Undefined variable $ADDomain in /var/www/html/fog/lib/reg-task/registration.class.php on line 240; PHP message: PHP Warning: Undefined variable $ADOU in /var/www/html/fog/lib/reg-task/registration.class.php on line 240; PHP message: PHP Warning: Undefined variable $ADUser in /var/www/html/fog/lib/reg-task/registration.class.php on line 240; PHP message: PHP Warning: Undefined variable $ADPass in /var/www/html/fog/lib/reg-task/registration.class.php on line 240'
[Tue Jan 07 21:55:18.272196 2025] [proxy_fcgi:error] [pid 21580:tid 21580] [client 192.168.1.203:52144] AH01071: Got error 'PHP message: PHP Warning: Undefined array key 0 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 116; PHP message: PHP Warning: Undefined array key 1 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 113; PHP message: PHP Warning: Undefined array key 2 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 114; PHP message: PHP Warning: Undefined array key 0 in /var/www/html/fog/lib/fog/fogcore.class.php on line 212; PHP message: PHP Warning: Undefined array key 1 in /var/www/html/fog/lib/fog/fogcore.class.php on line 206; PHP message: PHP Warning: Undefined array key 2 in /var/www/html/fog/lib/fog/fogcore.class.php on line 207; PHP message: PHP Warning: Undefined array key 3 in /var/www/html/fog/lib/fog/fogcore.class.php on line 208; PHP message: PHP Warning: Undefined array key 4 in /var/www/html/fog/lib/fog/fogcore.class.php on line 209; PHP message: PHP Warning: Undefined array key 5 in /var/www/html/fog/lib/fog/fogcore.class.php on line 210', referer: http://192.168.1.30/fog/management/index.php?node=schema
[Tue Jan 07 21:54:40.352803 2025] [proxy_fcgi:error] [pid 21579:tid 21579] [client 192.168.1.203:52137] AH01071: Got error 'PHP message: PHP Warning: Undefined array key 0 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 116; PHP message: PHP Warning: Undefined array key 1 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 113; PHP message: PHP Warning: Undefined array key 2 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 114; PHP message: PHP Warning: Undefined array key 0 in /var/www/html/fog/lib/fog/fogcore.class.php on line 212; PHP message: PHP Warning: Undefined array key 1 in /var/www/html/fog/lib/fog/fogcore.class.php on line 206; PHP message: PHP Warning: Undefined array key 2 in /var/www/html/fog/lib/fog/fogcore.class.php on line 207; PHP message: PHP Warning: Undefined array key 3 in /var/www/html/fog/lib/fog/fogcore.class.php on line 208; PHP message: PHP Warning: Undefined array key 4 in /var/www/html/fog/lib/fog/fogcore.class.php on line 209; PHP message: PHP Warning: Undefined array key 5 in /var/www/html/fog/lib/fog/fogcore.class.php on line 210', referer: http://192.168.1.30/fog/management/index.php?node=schema
[Tue Jan 07 21:54:40.039266 2025] [proxy_fcgi:error] [pid 21579:tid 21579] [client 192.168.1.203:52091] AH01071: Got error 'PHP message: PHP Warning: Undefined array key 0 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 116; PHP message: PHP Warning: Undefined array key 1 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 113; PHP message: PHP Warning: Undefined array key 2 in /var/www/html/fog/lib/fog/fogurlrequests.class.php on line 114; PHP message: PHP Warning: Undefined array key 0 in /var/www/html/fog/lib/fog/fogcore.class.php on line 212; PHP message: PHP Warning: Undefined array key 1 in /var/www/html/fog/lib/fog/fogcore.class.php on line 206; PHP message: PHP Warning: Undefined array key 2 in /var/www/html/fog/lib/fog/fogcore.class.php on line 207; PHP message: PHP Warning: Undefined array key 3 in /var/www/html/fog/lib/fog/fogcore.class.php on line 208; PHP message: PHP Warning: Undefined array key 4 in /var/www/html/fog/lib/fog/fogcore.class.php on line 209; PHP message: PHP Warning: Undefined array key 5 in /var/www/html/fog/lib/fog/fogcore.class.php on line 210'
[Tue Jan 07 21:53:57.216829 2025] [core:notice] [pid 21573:tid 21573] AH00094: Command line: '/usr/sbin/apache2'
[Tue Jan 07 21:53:57.216761 2025] [mpm_prefork:notice] [pid 21573:tid 21573] AH00163: Apache/2.4.62 (Debian) OpenSSL/3.0.15 configured -- resuming normal operations

Software (please complete the following information):

  • FOG version: 1.6.0-beta.2147
  • OS: Debian 12.8
@darksidemilk
Copy link
Member

So you made a clean install, did you migrate your database or import any hosts, or does this currently have just the one host you're capturing from?

@Alterak
Copy link
Author

Alterak commented Jan 7, 2025

So you made a clean install, did you migrate your database or import any hosts, or does this currently have just the one host you're capturing from?

I decided to do a clean installation on a new server. I did not transfer the database. This is the only host

@mastacontrola
Copy link
Member

mastacontrola commented Jan 7, 2025 via email

@Alterak
Copy link
Author

Alterak commented Jan 7, 2025

Is there a firewall and/or is sshd being blocked or even running? It should be but just what I’m finding seems to point to ssh services are being blocked in some way (not running or firewall is straight out blocking).

This is Debian, everything is open and accessible by default-)

root@fog:~# ss -ntlu
Netid       State        Recv-Q       Send-Q             Local Address:Port               Peer Address:Port       Process
udp         UNCONN       0            0                        0.0.0.0:42390                   0.0.0.0:*
udp         UNCONN       0            0                        0.0.0.0:42421                   0.0.0.0:*
udp         UNCONN       0            0                        0.0.0.0:20048                   0.0.0.0:*
udp         UNCONN       0            0                        0.0.0.0:69                      0.0.0.0:*
udp         UNCONN       0            0                        0.0.0.0:111                     0.0.0.0:*
udp         UNCONN       0            0                      127.0.0.1:756                     0.0.0.0:*
udp         UNCONN       0            0                           [::]:20048                      [::]:*
udp         UNCONN       0            0                           [::]:69                         [::]:*
udp         UNCONN       0            0                           [::]:111                        [::]:*
udp         UNCONN       0            0                           [::]:32892                      [::]:*
udp         UNCONN       0            0                           [::]:41392                      [::]:*
tcp         LISTEN       0            4096                     0.0.0.0:20048                   0.0.0.0:*
tcp         LISTEN       0            64                       0.0.0.0:36517                   0.0.0.0:*
tcp         LISTEN       0            4096                     0.0.0.0:46955                   0.0.0.0:*
tcp         LISTEN       0            80                       0.0.0.0:3306                    0.0.0.0:*
tcp         LISTEN       0            4096                     0.0.0.0:111                     0.0.0.0:*
tcp         LISTEN       0            64                       0.0.0.0:2049                    0.0.0.0:*
tcp         LISTEN       0            32                       0.0.0.0:21                      0.0.0.0:*
tcp         LISTEN       0            128                      0.0.0.0:22                      0.0.0.0:*
tcp         LISTEN       0            4096                   127.0.0.1:9000                    0.0.0.0:*
tcp         LISTEN       0            4096                        [::]:20048                      [::]:*
tcp         LISTEN       0            80                          [::]:3306                       [::]:*
tcp         LISTEN       0            4096                        [::]:52495                      [::]:*
tcp         LISTEN       0            64                          [::]:45875                      [::]:*
tcp         LISTEN       0            4096                        [::]:111                        [::]:*
tcp         LISTEN       0            511                            *:80                            *:*
tcp         LISTEN       0            64                          [::]:2049                       [::]:*
tcp         LISTEN       0            128                         [::]:22                         [::]:*
tcp         LISTEN       0            511                            *:443                           *:*
root@fog:~# cat /etc/nftables.conf
#!/usr/sbin/nft -f

flush ruleset

table inet filter {
        chain input {
                type filter hook input priority filter;
        }
        chain forward {
                type filter hook forward priority filter;
        }
        chain output {
                type filter hook output priority filter;
        }
}
root@fog:~#

I've tested it several times already...
If you install the stable version 1.5 - everything will work fine.
If you update from 1.5 to 1.6 - everything will work fine too.
If you do a new installation of 1.6 - here is the error I indicated.

@darksidemilk
Copy link
Member

What version of php do you have? php -v tells you I believe might be -V
There was a recent php version that caused an issue like unto this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants