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

🐛 [Seafile] Download URLs seems incorrect #1753

Open
igorsantos07 opened this issue Feb 4, 2025 · 0 comments
Open

🐛 [Seafile] Download URLs seems incorrect #1753

igorsantos07 opened this issue Feb 4, 2025 · 0 comments
Labels
bug Something isn't working prevent stale Prevents stale being applied

Comments

@igorsantos07
Copy link
Contributor

igorsantos07 commented Feb 4, 2025

Description

Description

This is possibly a follow up from #647, and a recreation of #1727

I've had just installed the add-on, but I'm unable to configure it properly.

My server is accessible via http://hass.local:8123, and thus the add-on config is as follows:

CONFIG_LOCATION: /config/addons_config/seafile/config.yaml # nothing here but the standard comments
FILE_SERVER_ROOT: http://hass.local:8082
PGID: 1000
PORT: "8082"
PUID: 1000
SEAFILE_ADMIN_EMAIL: ***
SEAFILE_ADMIN_PASSWORD: ***
SERVER_IP: hass.local
TZ: America/Sao_Paulo
data_location: /media/backup # this is the same path I can use to access my external drive from the SSH add-on
database: sqlite
url: seafile.example.com # not really sure what this is? that's the default value
localdisks: sdb1

The path it generates to download a file is something like http://hass.local/seafhttp/files/«hash/file.ext», but the one I got working (from trial and error) should be http://hass.local:8082/files/«hash/file.ext» - thus, the first part of the path got removed and it was missing the add-on PORT.

I've already tried the actual IP under SERVER_IP, as well as adding the port or protocol. The port even shows up correctly, but nothing (not even a leading slash) could remove the seafhttp from the path.

Additionally, every time I reboot to apply a new config, it prompts me to login again, and shows the welcome popup - I guess no data is being saved? I saw the discussion at #710 about the SQLite file needing to be in the same disk, but I'm not sure how to achieve that 😅

Reproduction steps

1. Install
2. Try to download a sample file
3. Get a `400: Bad Request`

Addon Logs

No errors have been reported

Architecture

amd64

OS

HAos

@igorsantos07 igorsantos07 added the bug Something isn't working label Feb 4, 2025
@alexbelgium alexbelgium added the prevent stale Prevents stale being applied label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working prevent stale Prevents stale being applied
Projects
None yet
Development

No branches or pull requests

2 participants