GithubHelp home page GithubHelp logo

Comments (14)

vladgh avatar vladgh commented on June 28, 2024 1

So I see!

In Alpine setting manually the timezone is obsolete (https://wiki.alpinelinux.org/wiki/Setting_the_timezone) and the recommended way is to use the setup-timezone script (https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-timezone)

I think this is the culprit, and it does not update the repository cache.

I will look into a way to override this or manually install it.

from docker_base_images.

vladgh avatar vladgh commented on June 28, 2024

On start, the container installs tzdata and sets up the timezone. I think the problem here is internet connectivity. I see a "temporary error (try again later)" which means that the packages were not downloaded, so the zoneinfo is missing. Make sure that the container has access to internet.

However, thanks for bringing this up, because I think I should change this in a future release, and not rely on internet for the container to start.

from docker_base_images.

vsimanin avatar vsimanin commented on June 28, 2024

Ошибка никуда не ушла. Все работает на версии 0.5.0, но начиная с последующих версий dlna не стартует (постоянно перезагружается сам):

usermod: no changes,
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: temporary error (try again later),
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: temporary error (try again later),
cp: can't stat '/usr/share/zoneinfo/UTC': No such file or directory,
minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.,
minidlna.c:395: warn: Creating new database at /minidlna/cache/files.db,
minidlna.c:1193: warn: HTTP listening on port 8200,
playlist.c:135: warn: Parsing playlists...,
playlist.c:269: warn: Finished parsing playlists.,
monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [4] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.,
usermod: no changes,
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: temporary error (try again later),
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: temporary error (try again later),
cp: can't stat '/usr/share/zoneinfo/UTC': No such file or directory,
minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.,
minidlna.c:1193: warn: HTTP listening on port 8200,
monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [4] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.,
usermod: no changes,
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: temporary error (try again later),
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: temporary error (try again later),
cp: can't stat '/usr/share/zoneinfo/UTC': No such file or directory,
minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.,
minidlna.c:1193: warn: HTTP listening on port 8200,
monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [4] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.,
usermod: no changes,
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: temporary error (try again later),
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: temporary error (try again later),
cp: can't stat '/usr/share/zoneinfo/UTC': No such file or directory,
minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.,
minidlna.c:1193: warn: HTTP listening on port 8200,
monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [4] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.,
usermod: no changes,
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: temporary error (try again later),
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: temporary error (try again later),
cp: can't stat '/usr/share/zoneinfo/UTC': No such file or directory,
minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.,
minidlna.c:1193: warn: HTTP listening on port 8200,
monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [4] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.,
usermod: no changes,
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/main: temporary error (try again later),
ERROR: https://dl-cdn.alpinelinux.org/alpine/v3.14/community: temporary error (try again later),
cp: can't stat '/usr/share/zoneinfo/UTC': No such file or directory,
minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.,
minidlna.c:1193: warn: HTTP listening on port 8200,
monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [4] and I do not have permission to increase this limit. Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.,

from docker_base_images.

vladgh avatar vladgh commented on June 28, 2024

Does the container have access to the internet? And are you still using the TZ environment variable? If you do, then it requires the internet.

from docker_base_images.

vsimanin avatar vsimanin commented on June 28, 2024

Does the container have access to the internet? And are you still using the TZ environment variable? If you do, then it requires the internet.

I do not restrict Internet access to the content (Network = host)
The only thing I change is the build parameter. With 0.5.0 the image is started, and with the latest - no.

from docker_base_images.

vsimanin avatar vsimanin commented on June 28, 2024

I collected again, explicitly indicating TZ:
1
2
3

Something prevents it from starting. I see 2 problems: Time zone and lack of communication with the alpin server.
Version 0.5.0 does not have these problems.
The time zone Moscow is on my server (screenshot in the topic)

from docker_base_images.

vladgh avatar vladgh commented on June 28, 2024

Can you ping the servers?

ping dl-cdn.alpinelinux.org

from docker_base_images.

vsimanin avatar vsimanin commented on June 28, 2024

ping dl-cdn.alpinelinux.org

изображение
There is an Internet connection, this is not the source of the problem = (

from docker_base_images.

vladgh avatar vladgh commented on June 28, 2024

I gave tested and retested this in every scenario I could imagine, but I was unable to recreate your issue. The script works as intended, and it changes the timezone without a problem. I can only suggest you cleanup/prune your images and make sure you have the latest one.
I also don't understand why you have that PATH environment variable, because that is already declared. I don't see very clearly but maybe there is a typo there, in the formatting.

from docker_base_images.

vsimanin avatar vsimanin commented on June 28, 2024

I gave tested and retested this in every scenario I could imagine, but I was unable to recreate your issue. The script works as intended, and it changes the timezone without a problem. I can only suggest you cleanup/prune your images and make sure you have the latest one. I also don't understand why you have that PATH environment variable, because that is already declared. I don't see very clearly but maybe there is a typo there, in the formatting.

The latest version doesn't throw a timezone error, but it doesn't work for me.


=== Set user and group identifier


usermod: no changes


=== Set standard configuration


=== Set configuration from environment variables


=== Set permissions


=== Generate scan/rebuild flags


=== Start daemon


minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.


minidlna.c:395: warn: Creating new database at /minidlna/cache/files.db


scanner.c:731: warn: Scanning /mnt


minidlna.c:1193: warn: HTTP listening on port 8200


scanner.c:820: warn: Scanning /mnt finished (0 files)!


playlist.c:135: warn: Parsing playlists...


playlist.c:269: warn: Finished parsing playlists.


monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [7] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.


=== Set user and group identifier


usermod: no changes


=== Set standard configuration


=== Set configuration from environment variables


=== Set permissions


=== Generate scan/rebuild flags


=== Start daemon


minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.


minidlna.c:1193: warn: HTTP listening on port 8200


monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [7] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.


upnphttp.c:1250: error: send(res_buf): Connection reset by peer


upnphttp.c:1250: error: send(res_buf): Connection reset by peer


=== Set user and group identifier


usermod: no changes


=== Set standard configuration


=== Set configuration from environment variables


=== Set permissions


=== Generate scan/rebuild flags


=== Start daemon


minidlna.c:1124: warn: Starting MiniDLNA version 1.3.0.


minidlna.c:1193: warn: HTTP listening on port 8200


monitor.c:222: warn: WARNING: Inotify max_user_watches [8192] is low or close to the number of used watches [7] and I do not have permission to increase this limit.  Please do so manually by writing a higher value into /proc/sys/fs/inotify/max_user_watches.


upnphttp.c:1250: error: send(res_buf): Connection reset by peer


upnphttp.c:1250: error: send(res_buf): Connection reset by peer

изображение

I can see the DLNA icon, but I can't log in.

from docker_base_images.

github-actions avatar github-actions commented on June 28, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

from docker_base_images.

vsimanin avatar vsimanin commented on June 28, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Problem is actual!

from docker_base_images.

github-actions avatar github-actions commented on June 28, 2024

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

from docker_base_images.

github-actions avatar github-actions commented on June 28, 2024

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

from docker_base_images.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.