# Seafile: Can not download files, can not preview pdf

**URL:** <https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885>\
**Category:** Support apps\
**Tags:** seafile, english\
**Created:** [March 23, 2026, 9:43am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885 "2026-03-23T09:43:16Z")\
**Posts on this page:** 10\
**Page:** 3

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [March 27, 2026, 1:47am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/41 "2026-03-27T01:47:18Z")

</div>

Ah, I missed the rewrite directive.

Try force upgrading (after a full backup)

---

<div class="post-metadata">

**Author:** ![idunno](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@idunno](https://forum.yunohost.org/u/idunno)\
**Post date:** [March 27, 2026, 1:49am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/42 "2026-03-27T01:49:15Z")

</div>

> [@jarod5001](#):
>
> Try force upgrading

Already did that, but did not change anything.

> [@idunno](#):
>
> Did “yunohost app upgrade seafile --force”, nothing changed…

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [March 27, 2026, 1:57am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/43 "2026-03-27T01:57:09Z")

</div>

> [@idunno](#):
>
> `/var/www/seafile/seafile_image/opt/seafile/seafile-server-13.0.19/seahub/media`

Does this folder exist?

> [@idunno](#):
>
> `js/pdf/web/viewer.js`

And does this file exist inside it?

Can you share the force upgrade log?

---

<div class="post-metadata">

**Author:** ![idunno](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@idunno](https://forum.yunohost.org/u/idunno)\
**Post date:** [March 27, 2026, 2:10am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/44 "2026-03-27T02:10:11Z")

</div>

> [@jarod5001](#):
>
> Does this folder exist?

Yes.

```auto
ls -al /var/www/seafile/seafile_image/opt/seafile/seafile-server-13.0.19/seahub/media
insgesamt 52
drwxr-x---+ 13 seafile seafile 4096 17. Mär 23:35 .
drwxr-x---+ 16 seafile seafile 4096 23. Dez 10:43 ..
drwxr-x---+ 4 seafile seafile 4096 9. Mär 04:04 assets
drwxr-x---+ 2 seafile seafile 4096 27. Jun 2025 audio
lrwxrwxrwx 1 seafile seafile 28 17. Mär 23:35 avatars -> ../../../seahub-data/avatars
drwxr-x---+ 2 seafile seafile 4096 27. Jun 2025 bootstrap
drwxr-x---+ 3 seafile seafile 4096 28. Aug 2025 comment-editor
drwxr-x---+ 4 seafile seafile 4096 23. Dez 10:43 css
lrwxrwxrwx 1 seafile seafile 27 17. Mär 23:35 custom -> ../../../seahub-data/custom
drwxr-x---+ 2 seafile seafile 4096 19. Sep 2025 favicons
drwxr-x---+ 7 seafile seafile 4096 23. Dez 10:43 img
drwxr-x---+ 5 seafile seafile 4096 27. Jun 2025 js
drwxr-x---+ 3 seafile seafile 4096 27. Jun 2025 office-template
drwxr-x---+ 4 seafile seafile 4096 23. Dez 10:43 sdoc-editor
drwxr-x---+ 4 seafile seafile 4096 30. Jul 2025 seafile-editor

```

> [@jarod5001](#):
>
> And does this file exist inside it?

Yes.

```auto
ls -al /var/www/seafile/seafile_image/opt/seafile/seafile-server-13.0.19/seahub/media/js/pdf/web/
insgesamt 524
drwxr-x---+ 6 seafile seafile 4096 23. Dez 10:43 .
drwxr-x---+ 4 seafile seafile 4096 27. Jun 2025 ..
drwxr-x---+ 2 seafile seafile 12288 27. Jun 2025 cmaps
-rw-r-----+ 1 seafile seafile 726 27. Jun 2025 custom.css
drwxr-x---+ 3 seafile seafile 4096 27. Jun 2025 images
drwxr-x---+ 113 seafile seafile 4096 27. Jun 2025 locale
drwxr-x---+ 2 seafile seafile 4096 27. Jun 2025 standard_fonts
-rw-r-----+ 1 seafile seafile 63481 27. Jun 2025 viewer.css
-rw-r-----+ 1 seafile seafile 432300 23. Dez 10:43 viewer.js

```

> [@jarod5001](#):
>
> Can you share the force upgrade log?

Sure! [https://pastebin.com/raw/0Nak4UJW](https://pastebin.com/raw/0Nak4UJW)

---

<div class="post-metadata">

**Author:** ![jarod5001](https://forum.yunohost.org/user_avatar/forum.yunohost.org/jarod5001/32/5323_2.png) [@jarod5001](https://forum.yunohost.org/u/jarod5001)\
**Post date:** [March 27, 2026, 2:21am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/45 "2026-03-27T02:21:25Z")

</div>

Argh. Set debug to true in config file and restart seafile services and try to reproduce the error. Hoping you get a more explicit error

---

<div class="post-metadata">

**Author:** ![idunno](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@idunno](https://forum.yunohost.org/u/idunno)\
**Post date:** [March 27, 2026, 9:56am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/46 "2026-03-27T09:56:56Z")

</div>

Added “Debug = True” to seahub\_settings.py, but don’t find any more details in the usual logs (mainnohostsubdomain.noho.st-access.log, mainnohostsubdomain.noho.st-error.log), where else should I look?

Also should mention that with @otm33 we found out that there is an issue with sso, the fileserver part is protected by it, but shouldn’t be. When I do:  
curl -I [https://mainnohostsubdomain.noho.st/seafhttp/](https://mainnohostsubdomain.noho.st/seafhttp/)  
I get

```auto
HTTP/2 404
server: nginx
date: Thu, 26 Mar 2026 21:31:13 GMT
content-type: text/plain; charset=utf-8
content-length: 19
x-sso-wat: You’ve just been SSOed
x-content-type-options: nosniff
content-security-policy: upgrade-insecure-requests
x-xss-protection: 1; mode=block
x-download-options: noopen
x-permitted-cross-domain-policies: none
x-frame-options: SAMEORIGIN
permissions-policy: interest-cohort=()
strict-transport-security: max-age=63072000; includeSubDomains; preload

```

Most interesting is the “You’ve just been SSOed” part, does not appear for @otm33, and works great there.  
So currently my assumption is:

Installing seafile in a “subfolder” will break SSO config for seafile and prevent downloads.

No idea how to fix though. Would be really helpful if someone else tried this, because if it actually works for nobody, we should enforce a separate subdomain for it when installing.

---

<div class="post-metadata">

**Author:** ![otm33](https://forum.yunohost.org/user_avatar/forum.yunohost.org/otm33/32/11941_2.png) [@otm33](https://forum.yunohost.org/u/otm33)\
**Post date:** [March 27, 2026, 10:13am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/47 "2026-03-27T10:13:24Z")

</div>

No, sorry, that’s another false lead: I didn’t pay attention (it was late…) but I tried without the trailing slash. If you run curl -I [https://mainnohostsubdomain.noho.st/seafhttp](https://mainnohostsubdomain.noho.st/seafhttp/) you will also get a 301.

---

<div class="post-metadata">

**Author:** ![idunno](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@idunno](https://forum.yunohost.org/u/idunno)\
**Post date:** [March 27, 2026, 10:18am UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/48 "2026-03-27T10:18:17Z")

</div>

> [@otm33](#):
>
> If you run curl -I [https://mainnohostsubdomain.noho.st/seafhttp](https://mainnohostsubdomain.noho.st/seafhttp/) you will also get a 301.

Oh well, yes I do… 😅

> Would be really helpful if someone else tried this, because if it actually works for nobody, we should enforce a separate subdomain for it when installing.

That still stands though, I need a volunteer without seafile currently installed.

---

<div class="post-metadata">

**Author:** ![idunno](https://forum.yunohost.org/letter_avatar_proxy/v4/letter/i/e8c25b/32.png) [@idunno](https://forum.yunohost.org/u/idunno)\
**Post date:** [April 6, 2026, 4:20pm UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/49 "2026-04-06T16:20:33Z")

</div>

I fully removed onlyoffice and seafile, reinstalled only seafile to a new, free subdomain. Still the same issue. Created new user, adding a file to default library: same issue… Can’t understand how I am the only one with the issue 🫠

---

<div class="post-metadata">

**Author:** ![system](https://forum.yunohost.org/uploads/default/original/2X/f/f59fe8e3ee6b100b4f574d30d6e30479c68b89f0.png) [@system](https://forum.yunohost.org/u/system)\
**Post date:** [April 21, 2026, 4:20pm UTC](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885/50 "2026-04-21T16:20:49Z")

</div>

Closed on April 21, 2026, 4:20pm UTC

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.

[Previous page](https://forum.yunohost.org/t/seafile-can-not-download-files-can-not-preview-pdf/41885.md?page=2)
