Giter Club home page Giter Club logo

Comments (5)

FrancisTurner avatar FrancisTurner commented on August 12, 2024

Note that if I continually restart commentoplusplus it will eventually run anyway and I can attempt to sign up a user. However that doesn't actually work and gives an error. I can probably provide the additional syslog errors but there doesn't seem to be much point because I'm sure the errors are related to the initial database initialization failing

from commentoplusplus.

FrancisTurner avatar FrancisTurner commented on August 12, 2024

And when I try the devel build it works....

from commentoplusplus.

souramoo avatar souramoo commented on August 12, 2024

Thanks for the bug report! The errors you're getting appear to be due to the database not being set up by commentoplusplus correctly. The database setup happens by loading in all the migrations in the db/ folder one by one, which creates the appropriate tables, upgrades the database structure from previous commento versions, etc.

From the sound of things, since the make devel build works, it's unlikely to be an issue with the code. What is more likely from the logs is that the folder full of migrations at build/prod/db is incomplete for some reason (filesystem error?) and so the initialisation never quite finishes properly.

Can you please report back the results of ls -la build/prod/db and ls -la build/devel/db?

from commentoplusplus.

FrancisTurner avatar FrancisTurner commented on August 12, 2024

prod.txt
dev.txt
prod.txt is ls -la build/prod/db
dev.txt is ls -la build/devel/db

The prod files are all 0 length, which is undoubtedly the problem. I'll try a rebuild and I plan to mix and match binaries and directories today and see the prod binary works with everything else from devel. I'll let you know. The devel binary and scripts etc. seems to be working just fine for me now but I assume it's better to deploy the prod binary in production

from commentoplusplus.

souramoo avatar souramoo commented on August 12, 2024

Ah I see the issue, for some reason the file sizes for all of the database schemas are indeed 0 in the build/prod/db folder!

It looks like for some reason the file copy command partially failed? If you copy the schemas over manually it should hopefully fix this issue (or run a make clean && make prod!) Also I think microSD card write failures are quite common in raspberry Pis (I've certainly had a fair few from overuse) so please do check that yours hasn't been worn out!

The devel build process should work just fine but I would highly recommend using the prod build process if you are deploying as it should be getting rid of debug code, run faster and minify the JavaScript :)

from commentoplusplus.

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.