Ant-Media-Server icon indicating copy to clipboard operation
Ant-Media-Server copied to clipboard

Unexpected behavior when Creating application in Standalone Mode when using Mongodb

Open USAMAWIZARD opened this issue 1 year ago • 0 comments
trafficstars

Short description

When the server is running in standalone mode with Mongodb and we send a request to create a new application new application gets created but when I checked logs it uses mapdb instead of Mongodb.

Environment

  • Operating system and version:
  • Java version:
  • Ant Media Server version:2.8.0-snapshot
  • Browser name and version:

Steps to reproduce

  1. start the server in standalone mode with Mongodb.
  2. sudo ./start.sh -m standalone -h IP_ADD username password
  3. create new app from the dashboard.
  4. check logs it will use mapdb

Expected behavior

newly created application should use mongodb.

Actual behavior

app is created but it uses mapdb

Logs

appcreate.log

2024-01-03 09:49:20,912 [vert.x-worker-thread-1] INFO  org.red5.server.tomcat.WarDeployer - Deploy wars with app start
2024-01-03 09:49:21,210 [vert.x-worker-thread-1] INFO  o.red5.server.tomcat.TomcatLoader - Starting Tomcat - Web application
2024-01-03 09:49:21,210 [vert.x-worker-thread-1] INFO  o.red5.server.tomcat.TomcatLoader - Application root: /usr/local/antmedia/webapps
Context init: newapp
2024-01-03 09:49:21,318 [vert.x-worker-thread-1] INFO  org.red5.server.LoaderBase - Set application context - path: 0.0.0.0/newapp context: org.red5.server.tomcat.TomcatApplicationContext@1f3d27de
2024-01-03 09:49:21,320 [Launcher:/newapp] INFO  o.red5.server.tomcat.TomcatLoader - Setting root web app context attribute for newapp
2024-01-03 09:49:21,354 [Launcher:/newapp] INFO  org.red5.server.Context - Deployment type: bootstrap
2024-01-03 09:49:21,476 [Launcher:/newapp] INFO  i.a.datastore.db.DataStoreFactory - Used Datastore:mapdb  db name:newapp
2024-01-03 09:49:21,477 [Launcher:/newapp] INFO  org.red5.server.scope.WebScope - Set server [Server@4f18c5d2map['/root' -> 'default', '/LiveApp' -> 'default', '/WebRTCAppEE' -> 'default', '/rtmpout' -> 'default']]
2024-01-03 09:49:21,478 [Launcher:/newapp] INFO  org.red5.server.Server - Add mapping global: default host:  context: newapp
2024-01-03 09:49:21,478 [Launcher:/newapp] INFO  i.a.AntMediaApplicationAdapter - Initialized file is created in newapp
2024-01-03 09:49:21,478 [Launcher:/newapp] INFO  i.a.enterprise.webrtc.WebRTCAdaptor - setting excessive bandwidth algorithm enabled:false 
2024-01-03 09:49:21,478 [Launcher:/newapp] INFO  i.a.AntMediaApplicationAdapter - newapp started
2024-01-03 09:49:21,478 [Launcher:/newapp] INFO  org.red5.server.scope.Scope - Scope:newapp is  running 


Ask your questions on Ant Media Github Discussions

USAMAWIZARD avatar Jan 03 '24 04:01 USAMAWIZARD