Skip to content

Creating root after databases already exists makes whole REST API insane #2150

Closed

Description

@ExtReMLapin

As suggested here : #2058 (comment)

To be able to change the root password on the fly, i use this pr : #2149
And on each boot i remove the root line in the users jsonl file.

Now when i do this there is something REALLY WEIRD going on :

'list databases' returns []

'create database test1' returns ok

re run 'list databases' still returns [] but

run again 'create database test1' and it returns Database 'test1' already exists

Postman_tEaOC57Y4B.mp4

Activity

  1. ExtReMLapin commented on Apr 11, 2025

    @ExtReMLapin
    ContributorAuthor

    console.sh corretly lists it

    > list databases
    
    Databases:
    - yoloooo1
    - TITI
    - test1
    - titi
    - AAAAAAAAAAAAA
    - YOLO
    - TOTO
  2. gramian commented on Apr 11, 2025

    @gramian
    Collaborator

    May be the server script is run from the wrong folder. Can you post the contents of the entrypoint.sh?

    BTW: you could consider using the ready endpoint /api/V1/ready for the healthcheck

  3. ExtReMLapin commented on Apr 11, 2025

    @ExtReMLapin
    ContributorAuthor

    I found the issue cause, will rename the issue, it's when creating root session when databases already exists it completly makes it unworking.

    As suggested here #2058 (comment)

    The idea was to kill the root line in the jsonl file but it makes the whole arcadedb server unusable (see first message)

  4. changed the title [-]Creating a database inside a docker image confirms it's created, but REST API refuses to list it in `list databases`[/-] [+]Creating root after databases already exists makes whole REST API insane[/+] on Apr 11, 2025
  5. gramian commented on Apr 11, 2025

    @gramian
    Collaborator

    This could be due to file permissions. You can temporarily give all the files in the mounted folders all permissions like 777 and see if it works. I ran into this in another context where mounted files where made by a root but another UID then the container root.

  6. added a commit that references this issue on Apr 11, 2025
    95047eb
  7. ExtReMLapin commented on Apr 11, 2025

    @ExtReMLapin
    ContributorAuthor

    Pushed a fix to the PR

  8. lvca commented on Jan 24, 2026

    @lvca
    Member

    @ExtReMLapin sorry I lost track of this. Where is the PR? Is it already merged? Issue fixed?

  9. self-assigned this
    on Jan 24, 2026
  10. added theissue type on Jan 24, 2026
  11. added this to the 26.2.1 milestone on Jan 24, 2026
  12. ExtReMLapin commented on Jan 24, 2026

    @ExtReMLapin
    ContributorAuthor

    @lvca very likely this PR #2149 and this specific commit ExtReMLapin@95047eb

    As far as I know the issue is not fixed

  13. lvca commented on Jan 25, 2026

    @lvca
    Member

    That PR is about recreating the root user, but as commented it was not a good idea. Did you find a workaround for this? Can I close this?

  14. ExtReMLapin commented on Jan 25, 2026

    @ExtReMLapin
    ContributorAuthor

    Let's close it for now, if we end up meeting the issue again, i'll make another issue

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions