Giter VIP home page Giter VIP logo

Comments (13)

lapineige avatar lapineige commented on September 26, 2024

If we can help to debug this (by explaining the CI context for instance), feel free to ping :)

from tz.

lapineige avatar lapineige commented on September 26, 2024

Referencing YunoHost-Apps/bonfire_ynh#5 (comment)

Apparently it's not only a CI issue.
If you have any idea of to debug this, it would be very appreciated :)

from tz.

mathieuprog avatar mathieuprog commented on September 26, 2024

Looking at the error of @lapineige it doesn't prevent your app to start but only prevents updating tz, right?

What is your tz config? Are you using the :data_dir option? In which environment does this happen? Do you have that problem in localhost/dev or only when deployed?

from tz.

mayel avatar mayel commented on September 26, 2024

Based on messages like Erlang has closed or Application bonfire exited: Bonfire.Application.start(:normal, []) returned an error: shutdown: failed to start child: Tz.UpdatePeriodically I'm pretty sure it's preventing the app from starting, right @lapineige?

IIRC the only config is:

config :tzdata, :autoupdate, :disabled
config :elixir, :time_zone_database, Tz.TimeZoneDatabase

and in Application supervision tree {Tz.UpdatePeriodically, [interval_in_days: 10]}

The environment is an Elixir/OTP release built and running within https://yunohost.org (Debian-based and the whole setup is defined in code rather than manually). I haven't seen this issue when running a release in Docker or in dev.

from tz.

lapineige avatar lapineige commented on September 26, 2024

Looking at the error of @lapineige it doesn't prevent your app to start but only prevents updating tz, right?

In that case it seems to fail the app start.
In the CI and other people install situations, it prevent the first start.

In which environment does this happen?

A Yunohost x86 server on Debian 11, I don't know what information would be meaningful.

Do you have that problem in localhost/dev or only when deployed?

I'm deploying and app.

from tz.

lapineige avatar lapineige commented on September 26, 2024

I can provide details about how the thing is installed in Yunohost environment. The main thing I guess is that it's a dedicated NodeJS (18 if I remember correctly) version for this app, and not a global npm package installation. It's running with the bonfire user and file rights, not root or whatever.

from tz.

lapineige avatar lapineige commented on September 26, 2024

Do you need additional details to help us on this issue ?

from tz.

mayel avatar mayel commented on September 26, 2024

@lapineige how can one trigger such a build and observe its output?

from tz.

lapineige avatar lapineige commented on September 26, 2024

It's not that quick, but relatively simple.
You would need a Yunohost environment.

Basically:

  • Install Debian 11 (for instance get a VPS preinstalled).
  • Install Yunohost : https://yunohost.org/fr/install and run the post-install step (you will need a domain name, or to generate a new sub-domain provided by Yunohost)
    This takes around 20min (depending on your internet connection).
  • Then run yunohost app install bonfire, possibly adding --no-remove-on-failure if you don't want it to revert the installation when it will fail (this mean files will be kept).
  • See the related log it provides

I can provide more details if needed.

from tz.

mayel avatar mayel commented on September 26, 2024

couldn't we also do it by forking a repo and getting github's CI to run it?

from tz.

lapineige avatar lapineige commented on September 26, 2024

Oh yes you're right. A PR with a dedicated branch in the repo is possible too (I can provide help on this, because you need write access). As for forking the repo, the CI won't be launched if it's not in Yunohost-Apps.

from tz.

mathieuprog avatar mathieuprog commented on September 26, 2024

Sorry I'm not proficient with CI/deploys. We expect the files to be there:
https://github.com/mathieuprog/tz/blob/v0.26.5/lib/tz/compiler.ex#L15

Those are under the /priv folder in this library: https://github.com/mathieuprog/tz/tree/v0.26.5/priv/tzdata2023c

Could you clarify the problem and context in further details?

from tz.

Related Issues (18)

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.