Giter Site home page Giter Site logo

Comments (16)

AeliusSaionji avatar AeliusSaionji commented on June 6, 2024 1

I did not change 3306, but I tried exposing it anyway: no luck!

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024 1

I identified the problem with logging in, and I have pushed a fix.

Please use git pull and run docker-compose up now, and see if it works.

You won't be able to login with the user that you have created, unless you reset the password. To reset the password, you'll need to set the SMTP settings, as it needs to send an OTP to your email.

If you don't want to bother with that, I recommend that you nuke the mysql container that was created, so it deletes the installed db tables.

I think everything should work now.

Thanks for your patience

from manage-my-damn-life-nextjs.

AeliusSaionji avatar AeliusSaionji commented on June 6, 2024 1

thanks! It's all up and running now.

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024

Are you trying to run and install via docker compose or by using the docker image?

from manage-my-damn-life-nextjs.

AeliusSaionji avatar AeliusSaionji commented on June 6, 2024

Compose

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024

| Error: 'sharp' is required to be installed in standalone mode for the image optimization to function correctly. Read more at: https://nextjs.org/docs/messages/sharp-missing-in-production

This particular error isn't really fatal. It's just NextJS complaining about missing sharp library. You can install it via
npm i sharp

Can you try navigating to localhost:3000/install, and see if the installation process finishes?

from manage-my-damn-life-nextjs.

AeliusSaionji avatar AeliusSaionji commented on June 6, 2024

That error is triggered by loading the install page. But nothing happens when I go there- I see what appears to be a static page with non clickable text "install"

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024

I did some testing, and I think this is triggered by wrong db settings.

On the install page, the first thing the backend does it to check if there's valid connection to database. Looks like the mysql library isn't throwing an error in case db settings are completely incorrect, and thus MMDL's UI doesn't move forward.

Did you make any changes to the docker-compose.yml?

from manage-my-damn-life-nextjs.

AeliusSaionji avatar AeliusSaionji commented on June 6, 2024

Only to change the port. I also tested with the docker sample env file (unmodified)

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024

I am guessing 3306 port was already in use, so you had to change the port binding?

In your docker-compose.yml, in services 'db', try changing the ports directive to expose.

Delete this

ports:
  - "3306:3306"    

And replace it with:

expose: 
     - 3306    

We are exposing the port 3306 to other docker containers, but not the host, so there should be no conflict and the MMDL container should be able to reach the mysql container.

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024

Closed by mistake

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024

I have pushed some changes to the repo, and I tested it in a fresh machine and it seems to be working. My guess is something is wrong with the db settings, but we can't put our finger on the "what".

If possible, try the following:

  1. Remove your docker-compose file
    rm docker-compose.yml
  2. Pull new changes to the repo
    git pull
  3. Copy docker sample docker-compose file.
    cp docker-compose.yml.sample docker-compose.yml
  4. Run docker-compose up

Let's see if it runs out of the box.

from manage-my-damn-life-nextjs.

AeliusSaionji avatar AeliusSaionji commented on June 6, 2024

This is what I see at the install page.
image

The base page seems to be working without having gone through any install, though, I'll try to set up my caldav account

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024

I doubt the CalDav account addition will work without install. Tables need to be created in the db for it to function.

Are you using it locally? Can you see any errors in the console log? If you're seeing 404 in the console logs, the front end probably can't talk to the backend api.

If you're using the app with a domain name, or using port other than 3000, You'll need to change the value of NEXT_PUBLIC_BASE_URL variable in docker compose to your URL

from manage-my-damn-life-nextjs.

AeliusSaionji avatar AeliusSaionji commented on June 6, 2024

OK, I had to change the values from localhost to my physical LAN IP address.

But now I cannot create a user- I make it through user creation, but when trying to log in I always get "invalid password"

from manage-my-damn-life-nextjs.

intri-in avatar intri-in commented on June 6, 2024

Great! Will close this issue for now. If you face other problems, you can reopen it.

from manage-my-damn-life-nextjs.

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.