In some situations Lufi can hang when uploading a file. While it is easy to work around this issue once you know about it, it can cause confusion to users.
The second file does not need to be the original one. Any file of non-smaller size will do.
If the file that is uploaded and then removed is smaller than the 760KiB size, then this problem will trigger only when trying to replace it with a larger file. Actually, it seems that the second file needs to be about the same size or larger than the original file, though I have not tested this exhaustively.
It seems to me that, when eliminating a file that had been uploaded, some state, associated with that slot, is not reset properly. Applying the old state to the new file causes the problem we see if the old state does not "fit" the new file (something to to with the file size? space allocation?).
Luc Didry (81e3a00f) at 12 Mar 07:31
... and 1 more commit
On vient de nous signaler le problème sur drop.infini.fr et je reproduis en local avec la même version 0.07.0. Si le fichier est protégé par un mot de passe et que celui(ci contient un caractère accentué, alors le téléchargement reste bloqué sur le slice 1.
Same today.
The fail command inside the container:
apk --update add ca-certificates perl perl-netaddr-ip perl-io-socket-ssl perl-dbd-pg mariadb-connector-c-dev libpng zlib && apk add --virtual .build-deps build-base perl-utils perl-dev make sudo zlib-dev libpng-dev postgresql-dev mariadb-dev && cpan Carton && sudo -u lstu carton install --deployment --without=test && perl -MCPAN -e 'install inc::latest' && perl -MCPAN -e 'install Config::FromHash' && apk del .build-deps && rm -rf /var/cache/apk/*"
Luc Didry (57b391ce) at 24 Jan 14:20
Hi,
I'm not able to build this Container https://framagit.org/fiat-tux/hat-softwares/lstu/-/blob/master/Dockerfile.
Error message:
641.1 ! Installing the dependencies failed: Module 'CHI::Driver::Memcached' is not installed, Module 'Minion::Backend::mysql' is not installed, Module 'Mojo::mysql' is not installed
How can I fix that?
Greetings dominion
Luc Didry (4efddb89) at 12 Jan 07:09
Merge branch 'weblate-lufi-default-theme' into 'development'
... and 1 more commit
Je ne sais pas, Lufi n’est pas fait pour tourner avec des ports non standards, il vous faut tester.
Super cela fonctionne par contre il y a pas Ă changer aussi d'autre fichiers de configuration pour que le lien du partage fonctionne?
Non, mettez soit :
var ws_url = 'wss://partage.exemple.fr:4455/upload';
Soit :
var ws_url = '<%= url_for('upload')->port(4455)->to_abs() %>';
Il faudra aussi modifier la ligne 2 du fichier themes/default/templates/partial/render.js.ep pour mettre
var ws_url = '<%= url_for('download')->port(4455)->to_abs().stash('file') %>';
Ou
var ws_url = 'wss://partage.exemple.fr:4455/download/'<%= stash('file') %>;
Merci pour cette aide et donc si je comprend bien cela donne ça?
var ws_url = '<%= url_for('upload:4455')->to_abs() %>';
Lufi essaye de se connecter sur 'wss://partage.exemple.fr/upload' et pas 'wss://partage.exemple.fr:4455/upload'
Vous pouvez forcer l’adresse en modifiant la ligne 5 du fichier themes/default/templates/partial/index.js.ep.
Bonjour,
J'ai un problème de WebSocket à partir de mon système. Je souhaite que l'URL se fasse à partir du port 4455. La page web s'affiche bien mais impossible d'uploader un fichier et je n'arrive pas a comprendre d'où cela viens.
Voici le fichier de configuration lifi.conf
{
####################
# Hypnotoad settings
####################
# see http://mojolicio.us/perldoc/Mojo/Server/Hypnotoad for a full list of settings
hypnotoad => {
# array of IP addresses and ports you want to listen to
# you can specify a unix socket too, like 'http+unix://%2Ftmp%2Flufi.sock'
# if you use Lufi behind a reverse proxy like Nginx, you want to set proxy to 1
listen => ['http://127.0.0.1:3000'],
# if you use Lufi directly, let it commented
proxy => 1,
# Please read http://mojolicious.org/perldoc/Mojo/Server/Hypnotoad#workers
# to adjust this to your server
workers => 30,
clients => 5,
},
# Put a way to contact you here and uncomment it
# You can put some HTML in it
# MANDATORY
contact => '<a href="https://contact.example.com">Contact page</a>',
Voici ma configuration de Nginx
server {
listen 4455 ssl;
# Adapt this to your domain!
server_name partage.exemple.fr;
access_log /var/log/nginx/lufi.success.log;
error_log /var/log/nginx/lufi.error.log;
ssl_certificate /etc/cert/certificate.crt;
ssl_certificate_key /etc/cert/certificate_decrypted.key;
location / {
# HTTPS only header, improves security
#add_header Strict-Transport-Security "max-age=15768000";
# Adapt this to your configuration (port, subdirectory (see below))
proxy_pass http://127.0.0.1:3000;
# Really important! Lufi uses WebSocket, it won't work without this
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_http_version 1.1;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
# If you want to log the remote port of the file senders, you'll need that
proxy_set_header X-Remote-Port $remote_port;
proxy_set_header X-Forwarded-Proto $scheme;
# We expect the downstream servers to redirect to the right hostname, so don't do any rewrites here.
proxy_redirect off;
}
}
Voici le message d'erreur que j'ai losque je vais sur la page web WebSocket connection to 'wss://partage.exemple.fr/upload' failed:
Pour info je suis sur une Debian 12
lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 12 (bookworm)
Release: 12
Codename: bookworm
et voici la version de Nginx
nginx -v
nginx version: nginx/1.22.1
Pourrais je avoir une petite aide SVP?
Cordialement
Axel
Luc Didry (4371e7a3) at 09 Jan 07:56
🩹 — Fix bad item URL