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

Default favicon.ico not found #9462

Closed
nhlpl opened this issue Apr 6, 2021 · 5 comments
Closed

Default favicon.ico not found #9462

nhlpl opened this issue Apr 6, 2021 · 5 comments
Assignees
Labels
Milestone

Comments

@nhlpl
Copy link

nhlpl commented Apr 6, 2021

Issue?
Default favicon not found after upgrading from NodeBB 1.17.0-beta.4 to 1.17.0-beta.5.

How to reproduce?
Install NodeBB 1.17.0-beta.4 and upgrade it to 1.17.0-beta.5.
Open any topic/post to get error.
/assets/uploads/system/favicon.ico?v=8dp9m91e5g4 path returns 'Not Found'.

What is expected?
Default favicon installed and served by nginx.

Screenshot:
favupgr

Hosted on Alpine Linux edge using Podman v3.1.0
Running on a machine with 4 CPU(s) and 7962 MB RAM
NodeBB v1.17.0-beta.5 is run with Node.js v14.16.0 on a single process (port 4567)
NodeBB SHA:42c4f963f91669784366b2dc61a0493b8f70d571
Built with Nobbic v0.5.0
It uses:

  • nginx (docker.io/nginx:alpine)
    with NJS_VERSION=0.5.3 NGINX_VERSION=1.19.9
  • redis (docker.io/redis:alpine)
    with REDIS_VERSION=6.2.1
  • nodebb (localhost/nodebb:14.16.0-1.17.0-beta.5)
    with NODE_VERSION=14.16.0 YARN_VERSION=1.22.5 NODEBB_VERSION=1.17.0-beta.5
@barisusakli
Copy link
Member

Could be docker related, the upgrade script should place the favicon at /assets/uploads/system/favicon.ico is the file in that folder?

@barisusakli
Copy link
Member

@nhlpl
Copy link
Author

nhlpl commented Apr 6, 2021

Parsing upgrade scripts executed only Add "schedule" to default privileges of admins and gmods for existing categories and ended with OK and Schema update complete! No word about favicon.

Favicon can be opened via /favicon.ico.

You're right when it comes to how Docker/Podman handle files so please close this issue.

@nhlpl
Copy link
Author

nhlpl commented Apr 6, 2021

Tested it again on a fresh install. It works just like upgrade. File not found.

Good news. Uploading file (/admin/settings/general#favicon) creates folder and file here /assets/uploads/system/favicon.ico and it works fine. No more favicon errors in the browser's console.

@barisusakli
Copy link
Member

I think we should fix it for new installs. On a new install it should copy the favicon just like the upgrade script.

@barisusakli barisusakli added this to the 1.17.0 milestone Apr 6, 2021
@barisusakli barisusakli self-assigned this Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants