Unable to open database file

Any one know How solve the issue check

root2@linux:/var/www/dumup_com$ ghost run -D

Love open source? We’re hiring JavaScript Engineers to work on Ghost full-time.
https://careers.ghost.org

The `ghost run` command is used by the configured Ghost process manager and for debugging. If you're not running this to debug something, you should run `ghost start` instead.
+ sudo node current/index.js
[2023-11-12 10:51:10] INFO Ghost is running in development...
[2023-11-12 10:51:10] INFO Listening on: 127.0.0.1:2368
[2023-11-12 10:51:10] INFO Url configured as: http://localhost:2368/
[2023-11-12 10:51:10] INFO Ctrl+C to shut down
[2023-11-12 10:51:10] INFO Ghost server started in 1.822s
[2023-11-12 10:51:10] ERROR SQLITE_CANTOPEN: unable to open database file

SQLITE_CANTOPEN: unable to open database file

"Unknown database error"

Error ID:
    500

Error Code: 
    SQLITE_CANTOPEN

----------------------------------------

Error: SQLITE_CANTOPEN: unable to open database file
    at /var/www/dumup_com/versions/5.72.2/node_modules/knex-migrator/lib/database.js:57:19

[2023-11-12 10:51:10] WARN Ghost is shutting down
[2023-11-12 10:51:10] WARN Ghost has shut down
[2023-11-12 10:51:10] WARN Ghost was running for a few seconds
root2@linux:/var/www/dumup_com$ . sudo -u ghost /usr/bin/whoami
-bash: .: /usr/bin/sudo: cannot execute binary file
root2@linux:/var/www/dumup_com$ sudo -u ghost /usr/bin/whoami

@Jasosn88, please do not post new requests in a existing thread. Thanks.

2 Likes

Ok, you can close threads, Everytopic explain différents issues.I’m trying to help others to find answers by creating multiple threads related to one problems. I don’t understand why your team merge diffrent issues with same post. For example DATA BASE is not same as connections errors

This is a community forum - There are no full-time staff here. Ghost is an open source project run by about 3 full time maintainers who work for a non-profit foundation. This forum exists for Ghost users to help each other.

So, please read the community guidelines, and help others who are trying assist you by providing any information requested.

Moreover, if English isn’t your first language, consider writing a post in your parent language first, and use Deepl or another service to translate into English.

Finally, please make the effort to put things in the right place, so that we can spend more time discussing and less cleaning up. So:

  • Don’t start a topic in the wrong category.
  • Don’t cross-post the same thing in multiple topics.
  • Don’t post no-content replies.
  • Don’t divert a topic by changing it midstream.

Rather than taking an existing topic in a radically different direction, use Reply as a Linked Topic. And, always use the Developer help template provided when starting a new thread.

1 Like

My website show green and works but my url 502 bad gateway, I try to restart my ghost and stuck at “restarting ghost”