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

After upload (image or video) Phraseanet 4.1 Production do not show any asset #3809

Open
jasseral opened this issue Jun 10, 2021 · 6 comments

Comments

@jasseral
Copy link

Phraseanet Production do not show any asset

I have uploaded video and image files and images successful but are not showing , I have check the folder datas and the files uploaded exists

I have the search filters open for all , any idea what is happening ?

@nmaillat
Copy link
Member

Hello,
In what context are you "docker" and "docker-compose"? or installation on a machine (vm or baremetal)?
what do you mean by "Phraseanet Production do not show any asset"

Do you see results in "Production" without the thumbnails or do you not see any results?

Some check to do :
Check that the worker process is started
To launch it from the root of the installation with same account who launch the NGINX process
bin/console worker: execute -m 3

-m is the number of worker

check also bin/console worker: execute --help

in Docker context check if the worker containers is running and check the container logs.

@LelouBil
Copy link

LelouBil commented Mar 4, 2022

Hi, I am having the same issue, I installed Phraseanet 4.1.5 using docker-compose and the images on docker hub.

I then set it up using a MariaDB database that is not in a container, but left other data stores as containers.

I also used the “worker” profile to have one container per worker.

When I upload an image via the upload panel, everything goes without errors, but it doesn't appear on the main search page, on a fresh installation.

Maybe I missed some option ?

@LelouBil
Copy link

LelouBil commented Mar 5, 2022

I got some more info, upon restarting everything with docker-compose down and docker-compose up -d, the workers were not registered by Phraseanet.
I found that every single worker container was stuck in this chown call :

&& chown -R app:app "${APP_DIR}/tmp"

It was stuck because $APP_DIR was empty.

I don't know why this happened, because it didn't happen the first time I launched them.
More mysteriously, I did not find a single reference in this repository to the “APP_DIR” environment variable, so I am not sure where it should have been set.

@LelouBil
Copy link

LelouBil commented Mar 5, 2022

Also, using the “queues” tab of the “worker manager” part of the admin panel upon uploading an image, I can see the different workers getting messages sent to them and consuming them.
However, at the end I have one message in the “validationReminder_loop” queue but 0 workers for it.

@LelouBil
Copy link

LelouBil commented Mar 5, 2022

Okay I think I figured it out, when searching it tries to do the request via http, however I have a reverse proxy that adds SSL so the URL of the application starts with https.

The script still does the request with http, which gets blocked by the browser.
How can I fix this ?

@LelouBil
Copy link

LelouBil commented Mar 5, 2022

For now I fixed it by replacing all the getBaseUriForPath() calls in templates with my specific url

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