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

Prestashop installation > unable to connect to tcp://api.segment.io:80 (Connection timed out) #409

Open
hamadodene opened this issue Nov 28, 2024 · 1 comment

Comments

@hamadodene
Copy link

hamadodene commented Nov 28, 2024

I'm encountering a particular issue:
I'm setting up PrestaShop on Kubernetes using my base Helm chart with prestashop docker image. I was able to configure several PrestaShop instances without issues, but at some point, I started getting this error when trying to install new PrestaShop instances:

[Thu Nov 28 15:07:18.988235 2024] [php7:warn] [pid 25] [client 172.20.136.27:35114] PHP Warning:  pfsockopen(): unable to connect to tcp://api.segment.io:80 (Connection timed out) in /var/www/html/modules/ps_metrics/vendor/segmentio/analytics-php/lib/Segment/Consumer/Socket.php on line 49, referer:

This is my helm chart config:

containers:
  - name: prestashop-auto
    image:
      repository: prestashop/prestashop
      pullPolicy: IfNotPresent
      tag: "1.7.8.11-apache"
    env:
      - name: PS_FOLDER_ADMIN
        value: "admin"
      - name: PS_FOLDER_INSTALL
        value: "install"
      - name: PS_DOMAIN
        value: "prestashop.example.com"
      - name: PS_INSTALL_AUTO
        value: "0"
    volumeMounts:
      - name: my-volume-name
        mountPath: /var/www/html
        subPath: prestashop/
    resources:
      limits:
        cpu: "375m"
        memory: 1Gi
      requests:
        cpu: 250m
        memory: 512Mi

I also tried checking if api.segment.io on port 80 was reachable with telnet, but it seems it's not. The only reachable port appears to be port 443.

Do you have any idea how I can resolve this issue? Until yesterday, I was able to install PrestaShop without problems.
I'm doing the installation through the guided setup at https://my.domain/install."

Thanks in advance for your help

@Quetzacoalt91
Copy link
Member

This error is coming from a module pre-installed with PrestaShop 1.7. It is not related to this image because you'll get it as well in other environments, outside Docker.
But it does not prevent PrestaShop to be installed, the only effect is one module being unable to track that it has been installed.

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

2 participants