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

[BUG] Fail to ping IPv6 #879

Closed
fgsl opened this issue Mar 24, 2020 · 5 comments
Closed

[BUG] Fail to ping IPv6 #879

fgsl opened this issue Mar 24, 2020 · 5 comments
Labels
Type: bug Owh no there is a bug in the system. Please provide the version the bug is on!

Comments

@fgsl
Copy link
Contributor

fgsl commented Mar 24, 2020

Describe the bug
phpservermon version version 3.4.5 and master (until 24 march, 2020) presents a fail when a address IPv6 is added to ping.
In version 3.4.5 occurs the error: "Couldn't create socket [1]: Operation not permitted"
In master occurs the error: "Server '[name of server]' is OFFLINE: ip=[ipv6], porta=0. Erro=PING [ipv6]([ipv6]) ... data bytes"

To Reproduce
Steps to reproduce the behavior:
0. Install phpservermon from version 3.4.5 or from master.

  1. Go to 'Servers'
  2. Click on 'Add New'
  3. Put a IPv6 address online into field Domain/IP
  4. Select Type 'Ping'
  5. Save
  6. See in Status that server appear as offline (in red)

Expected behavior
A online server must be appear as online.

Screenshots
phpservermon shows server [Ingress_03 IPV6] as offline
screen01
but a ping in terminal shows it as online
screen02

Version (please complete the following information):

  • Version 3.4.5 and master (24 march, 2020)
  • PHP 7.2.28

Additional context
Add any other context about the problem here.

@fgsl fgsl added the Type: bug Owh no there is a bug in the system. Please provide the version the bug is on! label Mar 24, 2020
fgsl added a commit to fgsl/phpservermon that referenced this issue Mar 24, 2020
@wienfuchs
Copy link
Contributor

#835 should probably have solved this (too) in develop

@fgsl
Copy link
Contributor Author

fgsl commented Mar 24, 2020

#835 should probably have solved this (too) in develop

Strange, because I pulled from branch develop this month (I wrote 'master' in description, in fact it is 'develop').

@wienfuchs
Copy link
Contributor

Strange, because I pulled from branch develop this month (I wrote 'master' in description, in fact it is 'develop').

Develop is v3.4.6-beta.2, not 3.4.5 -so, are u sure? :)

@fgsl
Copy link
Contributor Author

fgsl commented Mar 24, 2020

Strange, because I pulled from branch develop this month (I wrote 'master' in description, in fact it is 'develop').

Develop is v3.4.6-beta.2, not 3.4.5 -so, are u sure? :)

Yes, I have cloned develop from Github. The last commit is ee16078

I tried with 3.4.5 stable and with branch develop. The fail happened in both of them.

@fgsl
Copy link
Contributor Author

fgsl commented Mar 25, 2020

To confirm, I installed again from develop and ping fails for IPv6.

I am using an Amazon Linux AMI and command ping does not work for IPv6, only command ping6.

And current StatusUpdater uses only command ping.

https://github.com/phpservermon/phpservermon/blob/develop/src/psm/Util/Server/Updater/StatusUpdater.php

@TimZ99 TimZ99 closed this as completed in b346cd9 Apr 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: bug Owh no there is a bug in the system. Please provide the version the bug is on!
Projects
None yet
Development

No branches or pull requests

2 participants