SoftInstigate / restheart-website

restheart.org main website
https://restheart.org
5 stars 25 forks source link

Doc https://restheart.org/learn/docker/ is outdated #11

Closed jwausle closed 5 years ago

jwausle commented 5 years ago

Bug or feature? Bug

Environment?

Description?

As I followed the steps here described than I couldn't open the http://localhost:8080/browser. Always {"http status code":404,"http status description":"Not Found","message":"Db 'browser' does not exist"} response.

Full log - without any error

``` $ docker-compose up Creating restheart-mongo ... done Creating restheart ... done Attaching to restheart-mongo, restheart restheart-mongo | 2019-08-13T14:50:31.652+0000 I STORAGE [main] Max cache overflow file size custom option: 0 restheart-mongo | about to fork child process, waiting until server is ready for connections. restheart-mongo | forked process: 25 restheart-mongo | 2019-08-13T14:50:31.657+0000 I CONTROL [main] ***** SERVER RESTARTED ***** restheart-mongo | 2019-08-13T14:50:31.663+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' restheart-mongo | 2019-08-13T14:50:31.672+0000 I CONTROL [initandlisten] MongoDB starting : pid=25 port=27017 dbpath=/data/db 64-bit host=db6d2731f857 restheart-mongo | 2019-08-13T14:50:31.672+0000 I CONTROL [initandlisten] db version v4.0.12 restheart-mongo | 2019-08-13T14:50:31.672+0000 I CONTROL [initandlisten] git version: 5776e3cbf9e7afe86e6b29e22520ffb6766e95d4 restheart-mongo | 2019-08-13T14:50:31.673+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016 restheart-mongo | 2019-08-13T14:50:31.673+0000 I CONTROL [initandlisten] allocator: tcmalloc restheart-mongo | 2019-08-13T14:50:31.673+0000 I CONTROL [initandlisten] modules: none restheart-mongo | 2019-08-13T14:50:31.674+0000 I CONTROL [initandlisten] build environment: restheart-mongo | 2019-08-13T14:50:31.674+0000 I CONTROL [initandlisten] distmod: ubuntu1604 restheart-mongo | 2019-08-13T14:50:31.675+0000 I CONTROL [initandlisten] distarch: x86_64 restheart-mongo | 2019-08-13T14:50:31.675+0000 I CONTROL [initandlisten] target_arch: x86_64 restheart-mongo | 2019-08-13T14:50:31.675+0000 I CONTROL [initandlisten] options: { net: { bindIp: "127.0.0.1", port: 27017, ssl: { mode: "disabled" } }, processManagement: { fork: true, pidFilePath: "/tmp/docker-entrypoint-temp-mongod.pid" }, systemLog: { destination: "file", logAppend: true, path: "/proc/1/fd/1" } } restheart-mongo | 2019-08-13T14:50:31.676+0000 I STORAGE [initandlisten] restheart-mongo | 2019-08-13T14:50:31.676+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine restheart-mongo | 2019-08-13T14:50:31.676+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem restheart-mongo | 2019-08-13T14:50:31.676+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1962M,cache_overflow=(file_max=0M),session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), restheart-mongo | 2019-08-13T14:50:32.227+0000 I STORAGE [initandlisten] WiredTiger message [1565707832:227508][25:0x7fbb2d5bea80], txn-recover: Set global recovery timestamp: 0 restheart-mongo | 2019-08-13T14:50:32.235+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0) restheart-mongo | 2019-08-13T14:50:32.247+0000 I CONTROL [initandlisten] restheart-mongo | 2019-08-13T14:50:32.247+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database. restheart-mongo | 2019-08-13T14:50:32.247+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted. restheart-mongo | 2019-08-13T14:50:32.247+0000 I CONTROL [initandlisten] restheart-mongo | 2019-08-13T14:50:32.248+0000 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: 192eef67-94d6-4895-a929-e586b93394fd restheart-mongo | 2019-08-13T14:50:32.256+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 4.0 restheart-mongo | 2019-08-13T14:50:32.261+0000 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: 1d5a62fc-f5dc-4caa-be10-6dbb9795a979 restheart-mongo | 2019-08-13T14:50:32.271+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data' restheart-mongo | 2019-08-13T14:50:32.274+0000 I NETWORK [initandlisten] waiting for connections on port 27017 restheart-mongo | child process started successfully, parent exiting restheart-mongo | 2019-08-13T14:50:32.276+0000 I STORAGE [LogicalSessionCacheRefresh] createCollection: config.system.sessions with generated UUID: 1a13cc1d-71c8-4923-800b-bb47a1dc10cb restheart-mongo | 2019-08-13T14:50:32.292+0000 I INDEX [LogicalSessionCacheRefresh] build index on: config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 } restheart-mongo | 2019-08-13T14:50:32.293+0000 I INDEX [LogicalSessionCacheRefresh] building index using bulk method; build may temporarily use up to 500 megabytes of RAM restheart-mongo | 2019-08-13T14:50:32.294+0000 I INDEX [LogicalSessionCacheRefresh] build index done. scanned 0 total records. 0 secs restheart-mongo | 2019-08-13T14:50:32.326+0000 I NETWORK [listener] connection accepted from 127.0.0.1:47106 #1 (1 connection now open) restheart-mongo | 2019-08-13T14:50:32.326+0000 I NETWORK [conn1] received client metadata from 127.0.0.1:47106 conn1: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.12" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } } restheart-mongo | 2019-08-13T14:50:32.331+0000 I NETWORK [conn1] end connection 127.0.0.1:47106 (0 connections now open) restheart-mongo | 2019-08-13T14:50:32.403+0000 I NETWORK [listener] connection accepted from 127.0.0.1:47108 #2 (1 connection now open) restheart-mongo | 2019-08-13T14:50:32.403+0000 I NETWORK [conn2] received client metadata from 127.0.0.1:47108 conn2: { application: { name: "MongoDB Shell" }, driver: { name: "MongoDB Internal Client", version: "4.0.12" }, os: { type: "Linux", name: "Ubuntu", architecture: "x86_64", version: "16.04" } } restheart-mongo | 2019-08-13T14:50:32.445+0000 I STORAGE [conn2] createCollection: admin.system.users with generated UUID: 0cf115d6-f267-4015-b01b-bc63437fb540 restheart-mongo | Successfully added user: { restheart-mongo | "user" : "restheart", restheart-mongo | "roles" : [ restheart-mongo | { restheart-mongo | "role" : "root", restheart-mongo | "db" : "admin" restheart-mongo | } restheart-mongo | ] restheart-mongo | } restheart-mongo | 2019-08-13T14:50:32.466+0000 E - [main] Error saving history file: FileOpenFailed: Unable to open() file /home/mongodb/.dbshell: No such file or directory restheart-mongo | restheart-mongo | /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* restheart-mongo | restheart-mongo | 2019-08-13T14:50:32.475+0000 I NETWORK [conn2] end connection 127.0.0.1:47108 (0 connections now open) restheart-mongo | 2019-08-13T14:50:32.489+0000 I STORAGE [main] Max cache overflow file size custom option: 0 restheart-mongo | 2019-08-13T14:50:32.489+0000 I CONTROL [main] ***** SERVER RESTARTED ***** restheart-mongo | 2019-08-13T14:50:32.492+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' restheart-mongo | killing process with pid: 25 restheart-mongo | 2019-08-13T14:50:32.495+0000 I CONTROL [signalProcessingThread] got signal 15 (Terminated), will terminate after current cmd ends restheart-mongo | 2019-08-13T14:50:32.496+0000 I NETWORK [signalProcessingThread] shutdown: going to close listening sockets... restheart-mongo | 2019-08-13T14:50:32.496+0000 I NETWORK [signalProcessingThread] removing socket file: /tmp/mongodb-27017.sock restheart-mongo | 2019-08-13T14:50:32.496+0000 I CONTROL [signalProcessingThread] Shutting down free monitoring restheart-mongo | 2019-08-13T14:50:32.497+0000 I FTDC [signalProcessingThread] Shutting down full-time diagnostic data capture restheart-mongo | 2019-08-13T14:50:32.498+0000 I STORAGE [signalProcessingThread] WiredTigerKVEngine shutting down restheart-mongo | 2019-08-13T14:50:32.500+0000 I STORAGE [signalProcessingThread] Shutting down session sweeper thread restheart-mongo | 2019-08-13T14:50:32.500+0000 I STORAGE [signalProcessingThread] Finished shutting down session sweeper thread restheart-mongo | 2019-08-13T14:50:32.569+0000 I STORAGE [signalProcessingThread] shutdown: removing fs lock... restheart-mongo | 2019-08-13T14:50:32.569+0000 I CONTROL [signalProcessingThread] now exiting restheart-mongo | 2019-08-13T14:50:32.569+0000 I CONTROL [signalProcessingThread] shutting down with code:0 restheart-mongo | restheart-mongo | MongoDB init process complete; ready for start up. restheart-mongo | restheart-mongo | 2019-08-13T14:50:33.536+0000 I STORAGE [main] Max cache overflow file size custom option: 0 restheart-mongo | 2019-08-13T14:50:33.549+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none' restheart-mongo | 2019-08-13T14:50:33.552+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=db6d2731f857 restheart-mongo | 2019-08-13T14:50:33.553+0000 I CONTROL [initandlisten] db version v4.0.12 restheart-mongo | 2019-08-13T14:50:33.553+0000 I CONTROL [initandlisten] git version: 5776e3cbf9e7afe86e6b29e22520ffb6766e95d4 restheart-mongo | 2019-08-13T14:50:33.553+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016 restheart-mongo | 2019-08-13T14:50:33.554+0000 I CONTROL [initandlisten] allocator: tcmalloc restheart-mongo | 2019-08-13T14:50:33.554+0000 I CONTROL [initandlisten] modules: none restheart-mongo | 2019-08-13T14:50:33.554+0000 I CONTROL [initandlisten] build environment: restheart-mongo | 2019-08-13T14:50:33.554+0000 I CONTROL [initandlisten] distmod: ubuntu1604 restheart-mongo | 2019-08-13T14:50:33.555+0000 I CONTROL [initandlisten] distarch: x86_64 restheart-mongo | 2019-08-13T14:50:33.555+0000 I CONTROL [initandlisten] target_arch: x86_64 restheart-mongo | 2019-08-13T14:50:33.556+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true }, security: { authorization: "enabled" } } restheart-mongo | 2019-08-13T14:50:33.557+0000 I STORAGE [initandlisten] Detected data files in /data/db created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'. restheart-mongo | 2019-08-13T14:50:33.557+0000 I STORAGE [initandlisten] restheart-mongo | 2019-08-13T14:50:33.558+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine restheart-mongo | 2019-08-13T14:50:33.558+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem restheart-mongo | 2019-08-13T14:50:33.558+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=1962M,cache_overflow=(file_max=0M),session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress), restheart | 14:50:33.643 [main] INFO org.restheart.Bootstrapper - Starting RESTHeart restheart | { restheart | "Version": "4.0.0", restheart | "Instance-Name": "restheart-core", restheart | "Configuration": "/opt/restheart/etc/restheart.yml", restheart | "Environment": "etc/config.properties", restheart | "Build-Time": "2019-08-13T14:50:33.598260Z" restheart | } restheart | 14:50:33.662 [main] INFO org.restheart.Bootstrapper - Logging to console with level INFO restheart | 14:50:33.663 [main] INFO org.restheart.Bootstrapper - Initializing MongoDB connection pool to [mongodb] restheart-mongo | 2019-08-13T14:50:34.218+0000 I STORAGE [initandlisten] WiredTiger message [1565707834:217993][1:0x7fcec83d6a80], txn-recover: Main recovery loop: starting at 1/27264 to 2/256 restheart-mongo | 2019-08-13T14:50:34.328+0000 I STORAGE [initandlisten] WiredTiger message [1565707834:328297][1:0x7fcec83d6a80], txn-recover: Recovering log 1 through 2 restheart-mongo | 2019-08-13T14:50:34.405+0000 I STORAGE [initandlisten] WiredTiger message [1565707834:405162][1:0x7fcec83d6a80], txn-recover: Recovering log 2 through 2 restheart-mongo | 2019-08-13T14:50:34.454+0000 I STORAGE [initandlisten] WiredTiger message [1565707834:454560][1:0x7fcec83d6a80], txn-recover: Set global recovery timestamp: 0 restheart-mongo | 2019-08-13T14:50:34.469+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0) restheart-mongo | 2019-08-13T14:50:34.501+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data' restheart-mongo | 2019-08-13T14:50:34.503+0000 I NETWORK [initandlisten] waiting for connections on port 27017 restheart-mongo | 2019-08-13T14:50:34.801+0000 I NETWORK [listener] connection accepted from 172.24.0.3:55570 #1 (1 connection now open) restheart-mongo | 2019-08-13T14:50:34.833+0000 I NETWORK [conn1] received client metadata from 172.24.0.3:55570 conn1: { driver: { name: "mongo-java-driver|legacy", version: "3.10.2" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.9.125-linuxkit" }, platform: "Java/Oracle Corporation/11.0.3+1-Debian-1bpo91" } restheart-mongo | 2019-08-13T14:50:34.916+0000 I NETWORK [listener] connection accepted from 172.24.0.3:55572 #2 (2 connections now open) restheart-mongo | 2019-08-13T14:50:34.919+0000 I NETWORK [conn2] received client metadata from 172.24.0.3:55572 conn2: { driver: { name: "mongo-java-driver|legacy", version: "3.10.2" }, os: { type: "Linux", name: "Linux", architecture: "amd64", version: "4.9.125-linuxkit" }, platform: "Java/Oracle Corporation/11.0.3+1-Debian-1bpo91" } restheart-mongo | 2019-08-13T14:50:35.119+0000 I ACCESS [conn2] Successfully authenticated as principal restheart on admin from client 172.24.0.3:55572 restheart | 14:50:35.156 [main] INFO org.restheart.Bootstrapper - MongoDB connection pool initialized restheart | 14:50:35.156 [main] INFO org.restheart.Bootstrapper - MongoDB version 4.0.12 restheart | 14:50:35.157 [main] WARN org.restheart.Bootstrapper - MongoDB is a standalone instance, use a replica set in production restheart | 14:50:35.173 [main] INFO org.restheart.Bootstrapper - HTTP listener bound at 0.0.0.0:8080 restheart | 14:50:35.174 [main] INFO org.restheart.Bootstrapper - AJP listener bound at 0.0.0.0:8009 restheart | 14:50:35.177 [main] INFO org.restheart.Bootstrapper - Local cache for db and collection properties enabled with TTL 60000 msecs restheart | 14:50:35.178 [main] INFO org.restheart.Bootstrapper - Local cache for schema stores enabled with TTL 60000 msecs restheart | 14:50:35.390 [main] INFO org.restheart.Bootstrapper - URI / bound to MongoDB resource * restheart | 14:50:36.522 [main] INFO o.restheart.plugins.PluginsRegistry - Registered service cacheInvalidator: Invalidates the db and collection metadata cache restheart | 14:50:36.524 [main] INFO o.restheart.plugins.PluginsRegistry - Registered service csvLoader: Uploads a csv file in a collection restheart | 14:50:36.526 [main] INFO o.restheart.plugins.PluginsRegistry - Registered service pingService: Ping service restheart | 14:50:36.881 [main] INFO o.restheart.plugins.PluginsRegistry - Registered transformer filterProperties: Filters out a the properties specified by the args property of the transformer metadata object. restheart | 14:50:36.883 [main] INFO o.restheart.plugins.PluginsRegistry - Registered transformer oidsToStrings: Replaces ObjectId with strings. restheart | 14:50:36.884 [main] INFO o.restheart.plugins.PluginsRegistry - Registered transformer addRequestProperties: Adds properties to the request body restheart | 14:50:36.887 [main] INFO o.restheart.plugins.PluginsRegistry - Registered transformer oidsToStrings: Replaces strings that are valid ObjectIds with ObjectIds. restheart | 14:50:36.889 [main] INFO o.restheart.plugins.PluginsRegistry - Registered transformer writeResult: Adds a body to write responses with updated and old version of the written document. restheart | 14:50:37.212 [main] INFO o.restheart.plugins.PluginsRegistry - Registered hook snooper: An example hook that logs request and response info restheart | 14:50:37.572 [main] INFO o.restheart.plugins.PluginsRegistry - Registered checker checkContentSize: Checks the request content length restheart | 14:50:37.575 [main] INFO o.restheart.plugins.PluginsRegistry - Registered checker checkContent: Checks the request content by using conditions based on json path expressions restheart | 14:50:37.577 [main] INFO o.restheart.plugins.PluginsRegistry - Registered checker jsonSchema: Checks the request according to the specified JSON schema restheart | 14:50:37.581 [main] INFO org.restheart.Bootstrapper - Service cacheInvalidator bound to /ic restheart | 14:50:37.582 [main] INFO org.restheart.Bootstrapper - Service csvLoader bound to /csv restheart | 14:50:37.583 [main] INFO org.restheart.Bootstrapper - Service pingService bound to /ping restheart | 14:50:37.612 [main] INFO org.restheart.Bootstrapper - Allow unescaped characters in URL: true restheart | 14:50:37.868 [main] INFO org.restheart.Bootstrapper - Pid file /var/run/restheart--1441246088.pid restheart | 14:50:37.869 [main] INFO org.restheart.Bootstrapper - RESTHeart started restheart | 14:50:40.747 [XNIO-1 task-1] INFO o.r.handlers.RequestLoggerHandler - GET http://localhost:8080/browser from /172.24.0.1:40210 => status=404 elapsed=276ms contentLength=107 restheart | 14:50:40.813 [XNIO-1 task-1] INFO o.r.handlers.RequestLoggerHandler - GET http://localhost:8080/favicon.ico from /172.24.0.1:40210 => status=400 elapsed=2ms contentLength=150 ```

Expected behaviour? - successful started browser session

Quickfix? - switch to git-tag:3.10.1

mkjsix commented 5 years ago

It’s a bug, thanks for letting us know. We need to update this page.

mkjsix commented 5 years ago

Hi @jwausle,

That page was actually part of the RESTHeart v3 documentation and was wrongly left on the v4 folder, now is has been moved.

If you want to run RESTHeart 4 open source with Docker or docker-compose you can refer to https://hub.docker.com/r/softinstigate/restheart

If you want to use the trial version of the enterprise edition please start with https://restheart.org/docs/setup/

If you have any commercial question have a look at https://restheart.org/services

For support on the open source version:

Thank you.