Giter VIP home page Giter VIP logo

Comments (7)

arp242 avatar arp242 commented on September 26, 2024 1

I can't really reproduce the failing 2022-11-15-1-correct-hit-stats migration; this always works for me, no matter what I try. "Killed" is a rather odd message 🤔 Maybe the system is killing the migration for some reason?

The error you get in the UI is not related to that though; in f9bd099 I removed all "2.0 migrations" and it seems I also accidentally removed a 2.1 migration with that (2021-03-29-1-widgets).

Running migrations from 2.2 and then 2.4 seems to work.

from goatcounter.

arp242 avatar arp242 commented on September 26, 2024 1

Looks like our replies crossed.

I downgraded to v2.3.0, reset my db folder from the backup (google drive link), ran the migrations and now it works!

2.3.0 should be fine too; this should fix the "v2.4.0 and v2.4.1 don't serve a homepage on my database with error interface {} is nil, not a string." problem.

As for the other: maybe check the shell limits? OOM killer? dmesg? That's where I would start anyway; the message "Killed" makes me suspect it's something outside of GoatCounter killing it (also: check the return code: $?).

Or I can send you a fixed database if you want, since it works on my system.

from goatcounter.

arp242 avatar arp242 commented on September 26, 2024 1

This one should work for 2.4.1 (only tested public dashboard, not logging in): https://user.fm/files/v2-d47d3be3ceaf18d3f38fbaba7abaac66/goatcounter.sqlite3.gz

Make sure you remove or move the -shm and -wal files belonging to the old database.

from goatcounter.

fonsp avatar fonsp commented on September 26, 2024

I downgraded to v2.4.0 (to avoid the failing migration introduced in v2.4.1), reset my db folder from the backup (google drive link), ran the migrations and it still fails with "16r5jg1" and "interface {} is nil, not a string".

Was this fixed by 5cbc382, but not included in a release? I ran into #526 and I am trying to update :)

from goatcounter.

fonsp avatar fonsp commented on September 26, 2024

I downgraded to v2.3.0, reset my db folder from the backup (google drive link), ran the migrations and now it works! https://stats.plutojl.org/

So I suppose my issue is:

  • The 2022-11-15-1-correct-hit-stats migration does not work (on my database, see gdrive link).
  • v2.4.0 and v2.4.1 don't serve a homepage on my database with error interface {} is nil, not a string.

from goatcounter.

fonsp avatar fonsp commented on September 26, 2024

Oooh a fixed database would be awesome! Since this is a one-time thing I am just happy to get it running :)

It might be memory-related, I was running the migrations on the server that I use for goatcounter, which only has 1GB ram.

from goatcounter.

fonsp avatar fonsp commented on September 26, 2024

It works, awesome, thanks!

from goatcounter.

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.