GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Console cannot connect to remote database · Issue #27 · ArcadeData/arcadedb

Console cannot connect to remote database #27

New issue
Copy link
New issue
Copy link
Closed
Closed
Console cannot connect to remote database#27
Copy link
Assignees
lvca
Milestone
21.9.1

Description

@giastfader
giastfader
opened on Sep 3, 2021
Issue body actions

ArcadeDB Version: v21.9.1-SNAPSHOT

JDK Version: openjdk version "11.0.2" 2019-01-15

OS: macOS Mojave v.10.14.6

Expected behavior

Console must connect to a remote database

Actual behavior

Console returns the following error:

 WARNI [RemoteDatabase] Error on executing command, retrying... (payload=Not Found, error=org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1])
Error: A JSONObject text must begin with '{' at 1 [character 2 line 1]

Steps to reproduce

  1. Start the server (server.sh)
  2. Create a database (via Studio)
  3. Start the console (console.sh)
  4. Try to connect to the remote database:
> connect remote:127.0.0.1/ciaone root ciaone1234
connect remote:127.0.0.1/ciaone root ciaone1234

2021-09-03 07:52:03.952 WARNI [RemoteDatabase] Error on executing command, retrying... (payload=Not Found, error=org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1])
Error: A JSONObject text must begin with '{' at 1 [character 2 line 1]

>

The problem is that Console doesn't use the API version prefix. It tries to connect to the URL http://127.0.0.1:2480/server instead of http://127.0.0.1:2480/api/v1/server.

See:

arcadedb/network/src/main/java/com/arcadedb/remote/RemoteDatabase.java

Line 218 in 13276ff

String url = protocol + "://" + connectToServer.getFirst() + ":" + connectToServer.getSecond() + "/" + operation;

and:

arcadedb/server/src/main/java/com/arcadedb/server/http/HttpServer.java

Line 81 in 13276ff

routes.addPrefixPath("/api/v1",//

At the moment, the fix is trivial, but we should find a way to sync the API version among the projects to avoid a similar problem in the future.

Activity

  1. giastfader
    added a commit that references this issue on Sep 3, 2021

    Fix ArcadeData#27

    This issue will close once commit 51e8c02 is merged into the 'main' branch.
    51e8c02
  2. lvca commented on Sep 3, 2021

    @lvca
    lvca
    on Sep 3, 2021
    Member
    More actions

    @giastfader nice to see you here! We changed the API to be /api/v1 and I guess the RemoteDatabase wasn't updated. I guess some test are missing from it. Thanks for pointing it out. Would you like to send a PR?

  3. lvca
    self-assigned this
    on Sep 3, 2021
  4. lvca
    added
    bug
    on Sep 3, 2021
  5. lvca commented on Sep 3, 2021

    @lvca
    lvca
    on Sep 3, 2021
    Member
    More actions

    Ok that part was covered by IT test on server project and in fact they failed. Fixing it asap.

  6. lvca
    added a commit that references this issue on Sep 3, 2021

    Fixed issue #27

    e5c3c0b
  7. lvca
    added this to the 21.9.1 milestone on Sep 3, 2021
  8. lvca
    closed this as completedon Sep 3, 2021
  9. giastfader commented on Sep 3, 2021

    @giastfader
    giastfader
    on Sep 3, 2021
    ContributorAuthor
    More actions

    Hi lvca,
    PR is on the way.

    BTW the tests (RemoteConsoleIT class) for remote connections are not executed by the test suite.

    If I manually execute it, then it hangs indefinitely because the server waits for the root password.

    Digging on it, I think I found another bug because the ServerSecurity class does not use the configuration object passed to it but uses the GlobalConfiguration class instead into the createDefaultSecurity() method.

  10. lvca
    added a commit that references this issue on Sep 3, 2021

    Server security now uses server configuration

    d6ecdc9
  11. lvca commented on Sep 3, 2021

    @lvca
    lvca
    on Sep 3, 2021
    Member
    More actions

    I guess I found the code you're mentioning. Fixed with this commit

  12. mergify
    added a commit that references this issue on Dec 1, 2025

    chore(deps): bump org.apache.maven.plugins:maven-source-plugin from 3…

    bfe311a
  13. tae898
    added 3 commits that reference this issue on Jun 28, 2026

    Fixed issue ArcadeData#27

    79cd32f

    Server security now uses server configuration

    a77df02

    chore(deps): bump org.apache.maven.plugins:maven-source-plugin from 3…

    9df5d6d
  14. mergify
    added a commit that references this issue on Aug 18, 2026

    chore(deps): bump the go-modules group across 1 directory with 3 upda…

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

Metadata

Metadata

Assignees

  • @lvca
    lvca

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    • 21.9.1

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.