phpipam IP (ping) scanning not working #1997

Closed
opened 2026-02-05 03:15:18 +03:00 by OVERLORD · 21 comments
Owner

Originally created by @j4care-christianhahn on GitHub (Nov 13, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

phpipam

📂 What was the exact command used to execute the script?

phpipam Web UI

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

No response

📈 Which Proxmox version are you on?

9.0.11

📝 Provide a clear and concise description of the issue.

I'm trying to install phpipam but when I try to use the application afterwards for IP scanning I get the following error:

Error executing scan! Error code - 255

anyone else encounters that issue or knows hot to solve it ?

🔄 Steps to reproduce the issue.

install phpipam with default profile

Paste the full error output (if available).

Error executing scan! Error code - 255

🖼️ Additional context (optional).

No response

Originally created by @j4care-christianhahn on GitHub (Nov 13, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? phpipam ### 📂 What was the exact command used to execute the script? phpipam Web UI ### ⚙️ What settings are you using? - [ ] Default Settings - [ ] Advanced Settings ### 🖥️ Which Linux distribution are you using? _No response_ ### 📈 Which Proxmox version are you on? 9.0.11 ### 📝 Provide a clear and concise description of the issue. I'm trying to install phpipam but when I try to use the application afterwards for IP scanning I get the following error: Error executing scan! Error code - 255 anyone else encounters that issue or knows hot to solve it ? ### 🔄 Steps to reproduce the issue. install phpipam with default profile ### ❌ Paste the full error output (if available). Error executing scan! Error code - 255 ### 🖼️ Additional context (optional). _No response_
OVERLORD added the bug label 2026-02-05 03:15:18 +03:00
Author
Owner

@MickLesk commented on GitHub (Nov 16, 2025):

Please Install new, Check again and give Feedback. In meantime i complete the issue

@MickLesk commented on GitHub (Nov 16, 2025): Please Install new, Check again and give Feedback. In meantime i complete the issue
Author
Owner

@unnerving-sprinkler commented on GitHub (Nov 16, 2025):

@MickLesk -- I was able to replicate the same issue. Fresh install of phpipam via script.

Image
@unnerving-sprinkler commented on GitHub (Nov 16, 2025): @MickLesk -- I was able to replicate the same issue. Fresh install of phpipam via script. <img width="813" height="319" alt="Image" src="https://github.com/user-attachments/assets/76abfeba-2c04-47ee-9010-1e07baef3ce4" />
Author
Owner

@MickLesk commented on GitHub (Nov 16, 2025):

Then i dont know. Nothing more is marked in there Docs. If it not Work - we remove the Script asap

@MickLesk commented on GitHub (Nov 16, 2025): Then i dont know. Nothing more is marked in there Docs. If it not Work - we remove the Script asap
Author
Owner

@MickLesk commented on GitHub (Nov 16, 2025):

@bvdberg01 do you have an idea? i dont know where i can find the place of screenshot, all its installed, fping, all rights are fine

@MickLesk commented on GitHub (Nov 16, 2025): @bvdberg01 do you have an idea? i dont know where i can find the place of screenshot, all its installed, fping, all rights are fine
Author
Owner

@unnerving-sprinkler commented on GitHub (Nov 20, 2025):

@MickLesk - I apologize, I was out of town this week.

Easiest way to replicate it to setup a network and use the gear button to scan subnet for new hosts. (See icon below)

If you need additional context let me know.

Image
@unnerving-sprinkler commented on GitHub (Nov 20, 2025): @MickLesk - I apologize, I was out of town this week. Easiest way to replicate it to setup a network and use the gear button to scan subnet for new hosts. (See icon below) If you need additional context let me know. <img width="587" height="221" alt="Image" src="https://github.com/user-attachments/assets/d67730de-a7ff-430a-b1a8-17be9a9736ef" />
Author
Owner

@uppsju commented on GitHub (Nov 21, 2025):

From a command line in the LXC container, could you run the following please?

php /opt/phpipam/functions/scripts/discoveryCheck.php

Expected output (example):
discoveryCheck: Scan start, 215 IPs discoveryCheck: Scan complete, 0 new hosts

Or:

php /opt/phpipam/functions/scripts/pingCheck.php

Expected output (example):
pingCheck: Scan start, 33 IPs pingCheck: Scan complete, 33 updates

@uppsju commented on GitHub (Nov 21, 2025): From a command line in the LXC container, could you run the following please? > php /opt/phpipam/functions/scripts/discoveryCheck.php Expected output (example): `discoveryCheck: Scan start, 215 IPs discoveryCheck: Scan complete, 0 new hosts` Or: > php /opt/phpipam/functions/scripts/pingCheck.php Expected output (example): `pingCheck: Scan start, 33 IPs pingCheck: Scan complete, 33 updates`
Author
Owner

@unnerving-sprinkler commented on GitHub (Nov 21, 2025):

@uppsju - See output below. Let me know if you need any additional system details.

root@phpipam:~# php /opt/phpipam/functions/scripts/discoveryCheck.php PHP Fatal error: Uncaught Exception: Could not connect to database! could not find driver in /opt/phpipam/functions/classes/class.PDO.php:249 Stack trace: #0 /opt/phpipam/functions/classes/class.PDO.php(1224): DB->connect() #1 /opt/phpipam/functions/classes/class.PDO.php(506): Database_PDO->connect() #2 /opt/phpipam/functions/classes/class.Common.php(266): DB->escape() #3 /opt/phpipam/functions/classes/class.Common.php(441): Common_functions->fetch_object() #4 /opt/phpipam/functions/classes/class.Log.php(292): Common_functions->get_settings() #5 /opt/phpipam/functions/classes/class.Admin.php(78): Logging->__construct() #6 /opt/phpipam/functions/scripts/discoveryCheck.php(31): Admin->__construct() #7 {main} thrown in /opt/phpipam/functions/classes/class.PDO.php on line 249

root@phpipam:~# php /opt/phpipam/functions/scripts/pingCheck.php PHP Fatal error: Uncaught Exception: Could not connect to database! could not find driver in /opt/phpipam/functions/classes/class.PDO.php:249 Stack trace: #0 /opt/phpipam/functions/classes/class.PDO.php(1224): DB->connect() #1 /opt/phpipam/functions/classes/class.PDO.php(506): Database_PDO->connect() #2 /opt/phpipam/functions/classes/class.Common.php(266): DB->escape() #3 /opt/phpipam/functions/classes/class.Common.php(441): Common_functions->fetch_object() #4 /opt/phpipam/functions/classes/class.Log.php(292): Common_functions->get_settings() #5 /opt/phpipam/functions/classes/class.Subnets.php(103): Logging->__construct() #6 /opt/phpipam/functions/scripts/pingCheck.php(38): Subnets->__construct() #7 {main} thrown in /opt/phpipam/functions/classes/class.PDO.php on line 249 root@phpipam:~#

@unnerving-sprinkler commented on GitHub (Nov 21, 2025): @uppsju - See output below. Let me know if you need any additional system details. > `root@phpipam:~# php /opt/phpipam/functions/scripts/discoveryCheck.php PHP Fatal error: Uncaught Exception: Could not connect to database! could not find driver in /opt/phpipam/functions/classes/class.PDO.php:249 Stack trace: #0 /opt/phpipam/functions/classes/class.PDO.php(1224): DB->connect() #1 /opt/phpipam/functions/classes/class.PDO.php(506): Database_PDO->connect() #2 /opt/phpipam/functions/classes/class.Common.php(266): DB->escape() #3 /opt/phpipam/functions/classes/class.Common.php(441): Common_functions->fetch_object() #4 /opt/phpipam/functions/classes/class.Log.php(292): Common_functions->get_settings() #5 /opt/phpipam/functions/classes/class.Admin.php(78): Logging->__construct() #6 /opt/phpipam/functions/scripts/discoveryCheck.php(31): Admin->__construct() #7 {main} thrown in /opt/phpipam/functions/classes/class.PDO.php on line 249 ` > `root@phpipam:~# php /opt/phpipam/functions/scripts/pingCheck.php PHP Fatal error: Uncaught Exception: Could not connect to database! could not find driver in /opt/phpipam/functions/classes/class.PDO.php:249 Stack trace: #0 /opt/phpipam/functions/classes/class.PDO.php(1224): DB->connect() #1 /opt/phpipam/functions/classes/class.PDO.php(506): Database_PDO->connect() #2 /opt/phpipam/functions/classes/class.Common.php(266): DB->escape() #3 /opt/phpipam/functions/classes/class.Common.php(441): Common_functions->fetch_object() #4 /opt/phpipam/functions/classes/class.Log.php(292): Common_functions->get_settings() #5 /opt/phpipam/functions/classes/class.Subnets.php(103): Logging->__construct() #6 /opt/phpipam/functions/scripts/pingCheck.php(38): Subnets->__construct() #7 {main} thrown in /opt/phpipam/functions/classes/class.PDO.php on line 249 root@phpipam:~# `
Author
Owner

@uppsju commented on GitHub (Nov 21, 2025):

Ah yes, then it is similar to the same type of issue I had. Can you install these two packages, then try again?

apt install php8.4-mysql php8.4-gmp

@uppsju commented on GitHub (Nov 21, 2025): Ah yes, then it is similar to the same type of issue I had. Can you install these two packages, then try again? > apt install php8.4-mysql php8.4-gmp
Author
Owner

@MickLesk commented on GitHub (Nov 21, 2025):

8.3*

The 8.4 is a little Bit buggy atm, we have forced to 8.3

@MickLesk commented on GitHub (Nov 21, 2025): 8.3* The 8.4 is a little Bit buggy atm, we have forced to 8.3
Author
Owner

@unnerving-sprinkler commented on GitHub (Nov 21, 2025):

apt install php8.3-mysql php8.3-gmp : No Change

root@phpipam:~# apt install php8.3-mysql php8.3-gmp php8.3-mysql is already the newest version (8.3.27-1+0~20251113.72+debian13~1.gbpd9af90). php8.3-gmp is already the newest version (8.3.27-1+0~20251113.72+debian13~1.gbpd9af90). Summary: Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0

apt install php8.4-mysql php8.4-gmp : Resolved Issue

@unnerving-sprinkler commented on GitHub (Nov 21, 2025): `apt install php8.3-mysql php8.3-gmp` : No Change > `root@phpipam:~# apt install php8.3-mysql php8.3-gmp php8.3-mysql is already the newest version (8.3.27-1+0~20251113.72+debian13~1.gbpd9af90). php8.3-gmp is already the newest version (8.3.27-1+0~20251113.72+debian13~1.gbpd9af90). Summary: Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 0` `apt install php8.4-mysql php8.4-gmp` : Resolved Issue
Author
Owner

@uppsju commented on GitHub (Nov 21, 2025):

I believe what is happening is that the PDO driver that is needed to connect PHP to MySQL/MariaDB doesn't get installed fully. Getting the php8.4-mysql package then (re-)installs it. There's a little test that can be run to see if this is the issue.

Create a phpinfo.php with the following:

<?php phpinfo(); ?>

then run

php phpinfo.php

The output should have the following:
`
PDO

PDO support => enabled
PDO drivers => mysql
`

In my case the "PDO drivers" line was empty.

the GMP module is another dependency to export the ip addresses as strings I think.

@uppsju commented on GitHub (Nov 21, 2025): I believe what is happening is that the PDO driver that is needed to connect PHP to MySQL/MariaDB doesn't get installed fully. Getting the php8.4-mysql package then (re-)installs it. There's a little test that can be run to see if this is the issue. Create a phpinfo.php with the following: `<?php phpinfo(); ?>` then run > php phpinfo.php The output should have the following: ` PDO PDO support => enabled PDO drivers => mysql ` In my case the "PDO drivers" line was empty. the GMP module is another dependency to export the ip addresses as strings I think.
Author
Owner

@MickLesk commented on GitHub (Nov 21, 2025):

But i dont know why, i check it, our function Work smooth at xx other Scripts 🤔

@MickLesk commented on GitHub (Nov 21, 2025): But i dont know why, i check it, our function Work smooth at xx other Scripts 🤔
Author
Owner

@MickLesk commented on GitHub (Nov 21, 2025):

PDO

PDO support | enabled -- | -- PDO drivers | mysql

PDO
PDO support enabled
PDO drivers mysql

Look good to me

@MickLesk commented on GitHub (Nov 21, 2025): <h2 style="font-size: 20px; color: rgb(226, 228, 239); font-family: sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: center; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; white-space: normal; background-color: rgb(51, 51, 51); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial;"><a name="module_pdo" href="http://192.168.3.14/index.php#module_pdo" style="color: inherit; text-decoration: none; background: inherit;">PDO</a></h2> PDO support | enabled -- | -- PDO drivers | mysql [PDO](http://192.168.3.14/index.php#module_pdo) PDO support enabled PDO drivers mysql Look good to me
Author
Owner

@uppsju commented on GitHub (Nov 22, 2025):

Yeah I don't have any good answers. Perhaps there is some kind of timing issue. PHP always seemed like a mess to me :)
It probably needs some input from the people over at phpipam. From the issue tracker it seems like a new version is coming soon.

@uppsju commented on GitHub (Nov 22, 2025): Yeah I don't have any good answers. Perhaps there is some kind of timing issue. PHP always seemed like a mess to me :) It probably needs some input from the people over at phpipam. From the issue tracker it seems like a new version is coming soon.
Author
Owner

@tremor021 commented on GitHub (Nov 22, 2025):

People have weirdest bugs :)

@tremor021 commented on GitHub (Nov 22, 2025): People have weirdest bugs :)
Author
Owner

@askarsat commented on GitHub (Dec 25, 2025):

had same issue. installing 8.4 php packages for mysql and gmp fixed the issue for me. Thank you for troubleshooting and resolution everyone!

@askarsat commented on GitHub (Dec 25, 2025): had same issue. installing 8.4 php packages for mysql and gmp fixed the issue for me. Thank you for troubleshooting and resolution everyone!
Author
Owner

@SeeJayEmm commented on GitHub (Dec 26, 2025):

Chiming in that this is still a problem as-of this morning. Running apt install php8.4-mysql php8.4-gmp did resolve it. Does a new issue need to be opened @MickLesk ?

@SeeJayEmm commented on GitHub (Dec 26, 2025): Chiming in that this is still a problem as-of this morning. Running `apt install php8.4-mysql php8.4-gmp` did resolve it. Does a new issue need to be opened @MickLesk ?
Author
Owner

@gaston-senac commented on GitHub (Jan 5, 2026):

Although I got rid of the errors after installing those 2 packages, I cannot get the tool to either scan for IPs or check for status of current IPs. Anyone having the same issue?

@gaston-senac commented on GitHub (Jan 5, 2026): Although I got rid of the errors after installing those 2 packages, I cannot get the tool to either scan for IPs or check for status of current IPs. Anyone having the same issue?
Author
Owner

@SeeJayEmm commented on GitHub (Jan 5, 2026):

Although I got rid of the errors after installing those 2 packages, I cannot get the tool to either scan for IPs or check for status of current IPs. Anyone having the same issue?

Does it work when you manually scan? If so, did you install a cron job to run the periodic scans?

@SeeJayEmm commented on GitHub (Jan 5, 2026): > Although I got rid of the errors after installing those 2 packages, I cannot get the tool to either scan for IPs or check for status of current IPs. Anyone having the same issue? Does it work when you manually scan? If so, did you install a cron job to run the periodic scans?
Author
Owner

@gaston-senac commented on GitHub (Jan 8, 2026):

Does it work when you manually scan? If so, did you install a cron job to run the periodic scans?

I've figured out that it will only do it manually from the command line, so I've followed your advice of doing it this way via cron. Another thing that got me was the setting per subnet to allow checks for new hosts and ping them for availability.
So for anyone having this issue, please check these settings.
Thanks for your help.

@gaston-senac commented on GitHub (Jan 8, 2026): > Does it work when you manually scan? If so, did you install a cron job to run the periodic scans? I've figured out that it will only do it manually from the command line, so I've followed your advice of doing it this way via cron. Another thing that got me was the setting per subnet to allow checks for new hosts and ping them for availability. So for anyone having this issue, please check these settings. Thanks for your help.
Author
Owner

@uppsju commented on GitHub (Jan 8, 2026):

Just to add, in case anyone gets confused by the phpipam.net example on automatic host scanning , the paths are different:

/usr/bin/php /opt/phpipam/functions/scripts/pingCheck.php

/usr/bin/php /opt/phpipam/functions/scripts/discoveryCheck.php

@uppsju commented on GitHub (Jan 8, 2026): Just to add, in case anyone gets confused by the [phpipam.net example on automatic host scanning](https://phpipam.net/news/automatic-host-availability-check/) , the paths are different: > /usr/bin/php /opt/phpipam/functions/scripts/pingCheck.php > /usr/bin/php /opt/phpipam/functions/scripts/discoveryCheck.php
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1997