[GH-ISSUE #330] Problems reading files when developing in a localhost env ? #753

Closed
opened 2026-03-15 15:17:30 +03:00 by kerem · 2 comments
Owner

Originally created by @RemyCampanals on GitHub (Mar 15, 2022).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/330

Originally assigned to: @sadok-f on GitHub.

Hello flyimg team !

I'm trying to get working flyimg on two separate docker containers and i have the following error :

Error occurred while trying to read the file Url :

Here's my docker configuration using your documentation and my configuration :

version: '3.8'

services:
 nginx:
    container_name: symbioze-nginx
    image: nginx:latest
    ports:
      - '80:80'
      - '443:443'

  images:
    container_name: symbioze-images
    image: flyimg/flyimg-build
    ports:
      - '81:80'

I did nothing into my nginx configuration because i think it's not needed (?). But when i try to use

http://localhost:81/upload/w_600,h_300,smc_1,q_90/https://www.symbioze.dev/uploads/pages/contents/destiny-2-warmind-622b6192d06bc.jpg

I can't get nothing but the error "can't read the file".
I tried to debug a little, but it seems to be the Line: 93 at /var/www/html/src/Core/Entity/Image/InputImage.php who is throwing the error :

if (!$stream = @fopen($this->sourceImageUlr, 'r', false, $context)) {

Any ideas ? :)

Thanks in advance

Originally created by @RemyCampanals on GitHub (Mar 15, 2022). Original GitHub issue: https://github.com/flyimg/flyimg/issues/330 Originally assigned to: @sadok-f on GitHub. Hello flyimg team ! I'm trying to get working flyimg on two separate docker containers and i have the following error : ``` Error occurred while trying to read the file Url : ``` Here's my docker configuration using your documentation and my configuration : ``` version: '3.8' services: nginx: container_name: symbioze-nginx image: nginx:latest ports: - '80:80' - '443:443' images: container_name: symbioze-images image: flyimg/flyimg-build ports: - '81:80' ``` I did nothing into my nginx configuration because i think it's not needed (?). But when i try to use ``` http://localhost:81/upload/w_600,h_300,smc_1,q_90/https://www.symbioze.dev/uploads/pages/contents/destiny-2-warmind-622b6192d06bc.jpg ``` I can't get nothing but the error "can't read the file". I tried to debug a little, but it seems to be the Line: 93 at /var/www/html/src/Core/Entity/Image/InputImage.php who is throwing the error : ```php if (!$stream = @fopen($this->sourceImageUlr, 'r', false, $context)) { ``` Any ideas ? :) Thanks in advance
kerem 2026-03-15 15:17:30 +03:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@sadok-f commented on GitHub (Mar 23, 2022):

Hi @RemyCampanals,

thank you for opening this issue and sorry for the late reply.
is the source of your image accessible already?
I mean https://www.symbioze.dev/uploads/pages/contents/destiny-2-warmind-622b6192d06bc.jpg ?
did you try with another one? like https://raw.githubusercontent.com/flyimg/graphic-assets/main/logo/raster/flyimg-logo-rgb.png

<!-- gh-comment-id:1076578095 --> @sadok-f commented on GitHub (Mar 23, 2022): Hi @RemyCampanals, thank you for opening this issue and sorry for the late reply. is the source of your image accessible already? I mean `https://www.symbioze.dev/uploads/pages/contents/destiny-2-warmind-622b6192d06bc.jpg` ? did you try with another one? like `https://raw.githubusercontent.com/flyimg/graphic-assets/main/logo/raster/flyimg-logo-rgb.png`
Author
Owner

@RemyCampanals commented on GitHub (Jun 27, 2022):

Sorry, it was a ssl problem between the two containers (nginx -> flyimg -> nginx) !
It was totally on my side, i close the issue ! :)

Thanks by the way !

<!-- gh-comment-id:1167371487 --> @RemyCampanals commented on GitHub (Jun 27, 2022): Sorry, it was a ssl problem between the two containers (nginx -> flyimg -> nginx) ! It was totally on my side, i close the issue ! :) Thanks by the way !
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/flyimg#753
No description provided.