Skip to content

After updating to v0.13.0 /read will not load #467

Closed

Description

@aphick

Since updating the reader feed does not load. My reverse proxy sends a 504 and loads just hang on the debug message
[READ] Updating post cache

  • Multi-user mode
  • sqlite
  • Open registration? no
  • Federation enabled? yes

Activity

  1. thebaer commented on Jun 17, 2021

    @thebaer
    Member

    Hi @stayinside, can you share some more information about your setup, as prompted in the original bug report template? For example, which database are you using?

    And just to be sure, did you run writefreely db migrate after updating the binary?

  2. aphick commented on Jun 17, 2021

    @aphick
    Author

    Oh sorry my mistake!
    Updated my post, and yes I definitely ran that.
    Running with the debug flag does not add any more information

  3. DaarkMoon commented on Jun 17, 2021

    @DaarkMoon

    Same issue for me but there is a strange point:

    Maybe the read page lock the sqlite database ?

    Application configuration

    • Single mode or Multi-user mode? Multi-user mode
    • Database? sqlite
    • Open registration? no
    • Federation enabled? yes

    Version or last commit: 0.13.0 (last binary released for linux amd64)

    PS: I have run writefreely db migrate after updating the binary

  4. thebaer commented on Jun 17, 2021

    @thebaer
    Member

    Thanks for the additional information @stayinside and @DaarkMoon -- I agree it sounds like it could be a read lock on the database. I'll try to replicate and debug more when I'm back from vacation this week. (I'm not sure what changes around the Reader query could've caused this -- it could be the additional GetCollectionAttribute call on each blog while looping through the overall Reader results.)

  5. bandicootdancing commented on Jun 18, 2021

    @bandicootdancing

    Describe the bug

    Writefreely is hanging when clicking on the reader. I'm not sure if crawlers/users are triggering the reader but writefreely is crashing daily since upgrading. I'm not sure if it's related but by the time I get around to restarting writefreely I see "too many open files." I've disabled the reader to see if the instance stays up.

    Steps to reproduce (if necessary)

    Steps to reproduce the behavior:

    1. Click on reader
    2. See [READ] Updating post cache in terminal
    3. Writefreely becomes unusable until restart

    Application configuration

    • Single mode or Multi-user mode? Multi
    • Database? sqlite
    • Open registration? no
    • Federation enabled? yes

    Version or last commit: 0.13.0

  6. added this to the 0.13.1 milestone on Jun 21, 2021
  7. added a commit that references this issue on Jun 25, 2021
    ed77138
  8. self-assigned this
    on Jun 25, 2021
  9. linked a pull request that will close this issueFix SQLite database lock on Reader #477on Jun 25, 2021
  10. poVoq commented on Jun 26, 2021

    @poVoq

    I have a similar issue on a fresh 0.13 install (same setup as OP).

    The site runs fine until I make a first post. Upon which it continues to run fine for 5 minutes or so, but the post never shows up in the /read part and soon after the entire site goes in permanent 504 timeout.

  11. thebaer commented on Jun 26, 2021

    @thebaer
    Member

    Thanks @poVoq, this should be fixed in #477. If anyone else can test out that branch and verify the fix, that'd be much appreciated!

  12. DaarkMoon commented on Jun 28, 2021

    @DaarkMoon

    I have build binary fom branch fix-sqlite-reader-lock and now it's work for me.

  13. thebaer commented on Jun 30, 2021

    @thebaer
    Member

    Great! Just merged that fix, and we'll release v0.13.1 later today.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions