Coder Social home page Coder Social logo

rustlog's Issues

Internal DB Error after Database-Migration

A few days ago after running an rustlog update, I got this error message:

2024-06-21T09:14:59.090848Z ERROR rustlog::error: Error: The current version of rustlog needs to perform a migration to a new database structure. This process can take from a few minutes to several hours depending on the database size. The database will also increase in size up to a factor of 1.5x in the process, but after it's done it will become smaller. Set the environment variable RUSTLOG_ACKNOWLEDGE_STRUCTURE_MIGRATION=1 to confirm and run the migration, or downgrade to an older version if you don't want to run it right now.

I tried setting the environment variable and let the migration run for a few hours. It looked like it was finished. After that I received an 500 Statuscode on the website and the following error message while starting the container, regardless of whether the variable is set or not:

Caused by:
    0: Database error
    1: network error: error trying to connect: tcp connect error: Connection refused (os error 111)
    2: error trying to connect: tcp connect error: Connection refused (os error 111)
    3: tcp connect error: Connection refused (os error 111)
    4: Connection refused (os error 111)
2024-07-03T19:28:36.277393Z  INFO rustlog::db::migrations: Running migration 6_structured_message
2024-07-03T19:28:36.358632Z ERROR rustlog::error: Error: bad response: Code: 57. DB::Exception: Table rustlog.message_structured already exists. (TABLE_ALREADY_EXISTS) (version 24.5.3.5 (official build))
Error: Could not run DB migrations

Any Ideas what i could do?

Admins should be able to optout users

The !rustlog optout <arg> command should check that if the provided value is not a known code, and the user calling it is an admin, the argument should be treated as a username

Add support for `from` and `to` log query parameters

It would be nice if it was possible to query arbitrary log date ranges. I think it could look something like like /channel/channelname?from=2023-08-01T15:42:23.1Z&to=2023-08-25T15:42:23.1Z (and same for user endpoints). The parameters translate 1 to 1 to an SQL query, so it should be fairly easy to do.

windows permission issue with clickhouse

In contrast to justlog it does not work on windows with docker desktop using wsl for me, due to permission error because of clickhouse.
rustlogerror
Fixed by using docker engine on ubuntu distro in wsl instead

Inconsistently with justlog opt out errors

Full gui logs

"https://$INSTANCE/?channel=$CHANNEL&username=$USERNAME"

error as expected in rustlog (User or channel has opted out).

However, if you navigate to a file for a user who's opted out

"https://$INSTANCE/channel/$CHANNEL/user/$USERNAME"

the error is returned as Not Found, while justlog returns User or channel has opted out

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.