Comments (13)
If we can help to debug this (by explaining the CI context for instance), feel free to ping :)
from tz.
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.
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.
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.
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.
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.
Do you need additional details to help us on this issue ?
from tz.
@lapineige how can one trigger such a build and observe its output?
from tz.
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.
couldn't we also do it by forking a repo and getting github's CI to run it?
from tz.
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.
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)
- Wrong zone_abbr in some time zones HOT 3
- Allow Tz.WatchPeriodically to accept and call a function when triggered. HOT 2
- Is it possible to make the custom data dir a runtime value? HOT 8
- Zone abbreviation lookup inconsistent (EST and EDT) HOT 5
- WatchPeriodically keeps complaining about a new version HOT 19
- Add option to force the use of a specific iana version? HOT 1
- Error with Iana version 2023a HOT 5
- (RuntimeError) unexpected case: 3 ongoing rules for rule "Palestine" (2023c) HOT 3
- Logger.warn/1 is deprecated on Elixir 1.15 in favour of Logger.warning/2 HOT 2
- Release crashes when configuring data_dir at runtime HOT 7
- print a warning but allow the app to start if there's an HTTP error HOT 2
- Time converting and back is not symmetrical HOT 2
- Warnings for behaviour not implented in Elixir 1.17 HOT 1
- Question: avoid compile on unit test but keep update in app HOT 5
- Suggestion: Add a CHANGELOG HOT 2
- `(CaseClauseError) no case clause matching: nil` for some lookups HOT 10
- Out of memory when recompiling time zone periods on a memory-limited system HOT 17
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tz.