Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: Sprint 4.1.2
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
HD-Chapter:WebUI
-
HD-Enabler:Synch - Tundra
Description
Responsible: fiware@ulpgc.es
Tested GE(s):Synchronization GE
Environment:
- FiLab Cloud machines
Machine ID: 3534a649-878e-4773-afc6-26601197e0f6
Region: Spain
Test user: ulpgc-test-web-ui
Image name: Ubuntu Server 14.04.1 (x64)
Tundra server installed:
https://forge.fi-ware.org/frs/download.php/1511/MIWI-Synchronization-Server-2.5.3RC-ubuntu-14.04-amd64.deb
Machine ID: b8358a60-dd9a-464e-9840-c41da3b40e40
Region: Spain
Test user: ulpgc-test-web-ui
Image name: Ubuntu12.04-server-x86_64
Tundra server installed:
https://forge.fi-ware.org/frs/download.php/1514/MIWI-Synchronization-Server-2.5.3RC-ubuntu-12.04-amd64.deb
Description:
When following the Unit Test Plan section we cannot run the server due to
several errors appearing. In this case, we try to run the 4th unit test and
the server displays as error having already used the port 2346, although
this port appears to be free when we kill the server process, and not being
able to load the scene properly. The whole output from the server can be
found below.
The error was replicated in different servers deployed in FiLab cloud.
These servers are Ubuntu Server 14.04.1 (x64) with Tundra server 64 bits,
Ubuntu Server 14.04.1 (x86_64) with Tundra Server 64 bits.
Console output:
test@test-synchronization:/opt/realxtend-tundra$ xvfb-run ./Tundra
--headless --file scenes\Avatar\scene.txml --server --httpport 2346
--config tundra.json --config tundra-addons.json
Starting up realXtend Tundra 2.5.2
- Installation directory : /opt/realxtend-tundra/
- Working directory : /opt/realxtend-tundra/
- User data directory : /home/test/.Tundra/
- Config directory : /home/test/.Tundra/configuration/
- Asset cache directory : /home/test/.Tundra/assetcache/
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:4248_snd_config_evaluate) function snd_func_card_driver
returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:4248_snd_config_evaluate) function snd_func_concat
returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:4248_snd_config_evaluate) function snd_func_refer
returned error: No such file or directory
ALSA lib conf.c:4727:(snd_config_expand) Evaluate error: No such file or
directory
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM default
AL lib: alsa_open_playback: Could not open playback device 'default': No
such file or directory
Warning: Could not open OpenAL playback device
--headless
--file 'scenesAvatarscene.txml'
--server
--httpport '2346'
--plugin 'OgreRenderingModule'
'OpenAssetImport'
'SceneInteract'
'EnvironmentModule'
'PhysicsModule'
'TundraProtocolModule'
'ECEditorModule'
'JavascriptModule'
'AssetModule'
'ArchivePlugin'
'AvatarModule'
'SkyXHydrax'
'OgreAssetEditorModule'
'DebugStatsModule'
'SceneWidgetComponents'
'MumblePlugin'
'CanvasPlugin'
'WebSocketServerModule'
--jsplugin 'cameraapplication.js'
'FirstPersonMouseLook.js'
'MenuBar.js'
'RendererSettings.js'
'SoundSettings.js'
'InterestManagerSettings.js'
'LoadingScreen.js'
'SceneInstructions.js'
--fpsLimit '60'
--trustServerStorages
--acceptUnknownHttpSources
--acceptUnknownLocalSources
--hideBenignOgreMessages
--plugin 'BrowserUiPlugin'
'CAVEStereoModule'
'XMPPModule'
'HttpServerModule'
'VlcPlugin'
'PythonScriptModule'
--jsplugin 'AddonsMenuBar.js'
--plugin 'BrowserUiPlugin'
'CAVEStereoModule'
'XMPPModule'
'HttpServerModule'
'VlcPlugin'
'PythonScriptModule'
--jsplugin 'AddonsMenuBar.js'
Loading plugin OgreRenderingModule
Loading plugin OpenAssetImport
Loading plugin SceneInteract
Loading plugin EnvironmentModule
Loading plugin PhysicsModule
Loading plugin TundraProtocolModule
Loading plugin ECEditorModule
Loading plugin JavascriptModule
Loading plugin AssetModule
Loading plugin ArchivePlugin
Loading plugin AvatarModule
Loading plugin SkyXHydrax
Loading plugin OgreAssetEditorModule
Loading plugin DebugStatsModule
Loading plugin SceneWidgetComponents
Loading plugin MumblePlugin
Error: Failed to load plugin from file
"/opt/realxtend-tundra/plugins/MumblePlugin.so": Error libprotobuf.so.8:
cannot open shared object file: No such file or directory!
Loading plugin CanvasPlugin
Loading plugin WebSocketServerModule
Warning: Cannot load plugin
"/opt/realxtend-tundra/plugins/BrowserUiPlugin.so" as the file does not
exist.
Warning: Cannot load plugin
"/opt/realxtend-tundra/plugins/CAVEStereoModule.so" as the file does not
exist.
Warning: Cannot load plugin "/opt/realxtend-tundra/plugins/XMPPModule.so"
as the file does not exist.
Loading plugin HttpServerModule
Loading plugin VlcPlugin
Error: Failed to load plugin from file
"/opt/realxtend-tundra/plugins/VlcPlugin.so": Error libvlc.so.5: cannot
open shared object file: No such file or directory!
Warning: Cannot load plugin
"/opt/realxtend-tundra/plugins/PythonScriptModule.so" as the file does not
exist.
Warning: Cannot load plugin
"/opt/realxtend-tundra/plugins/BrowserUiPlugin.so" as the file does not
exist.
Warning: Cannot load plugin
"/opt/realxtend-tundra/plugins/CAVEStereoModule.so" as the file does not
exist.
Warning: Cannot load plugin "/opt/realxtend-tundra/plugins/XMPPModule.so"
as the file does not exist.
Loading plugin HttpServerModule
Loading plugin VlcPlugin
Error: Failed to load plugin from file
"/opt/realxtend-tundra/plugins/VlcPlugin.so": Error libvlc.so.5: cannot
open shared object file: No such file or directory!
Warning: Cannot load plugin
"/opt/realxtend-tundra/plugins/PythonScriptModule.so" as the file does not
exist.
Renderer: Initializing Ogre-
-
-
- OGRE Initialising
- Version 1.9.0unstable (Ghadamon)
libGL error: failed to load driver: swrast
Renderer: Using 'OpenGL Rendering Subsystem'
Javascript: Loading startup scripts from /jsmodules/startup
Javascript: ** cameraapplication.js
Javascript: ** FirstPersonMouseLook.js
Javascript: ** MenuBar.js
Javascript: ** RendererSettings.js
Javascript: ** SoundSettings.js
Javascript: ** InterestManagerSettings.js
Javascript: ** LoadingScreen.js
Javascript: ** SceneInstructions.js
Javascript: ** AddonsMenuBar.js
Javascript: ** AddonsMenuBar.js
LocalAssetStorage: Recursively adding all files from ./data/assets to a
watch list. This may take a while...
LocalAssetStorage: Recursively adding all files from ./jsmodules to a watch
list. This may take a while...
LocalAssetStorage: Recursively adding all files from ./media to a watch
list. This may take a while...
LocalAssetStorage: Recursively adding all files from /opt/realxtend-tundra
to a watch list. This may take a while...
Set asset storage "Scene" as the default storage
(type=LocalAssetStorage;name=Scene;src=/opt/realxtend-tundra/;recursive=true;readonly=false;liveupdate=true;autodiscoverable=true;replicated=true;trusted=true).
[WebSocketServer]: Started to port 2345 with 1 listeners threads in main
thread 140627559667648
HttpServer started on port 2346
Error: bind: Address already in use
Error: Framework::RegisterDynamicObject: Dynamic object with name
"httpserver" already registered.
0.000: Network::OpenListenSocket: Created listenSocket 0x 20.
0.024957, 7fe667bd57c0: Created a new NetworkWorkerThread. There are now 1
worker threads.
0.025226, 7fe57cbba700: NetworkWorkerThread starting main loop.
0.025394, 7fe667bd57c0: Server up (:0 (UDP server, connected=true,
readOpen: true, writeOpen: true, maxSendSize=1400, sock: 0.0.0.0:2345,
peer: , socket: 32, this: 0xef2d90)). Waiting for client to connect.
Server started
-
-
-
- Port : 2345
- Protocol : UDP
- Headless : true
Loading startup scene from scenesAvatarscene.txml ...
Error: Failed to open file scenesAvatarscene.txml when loading scene xml.
Loading of startup scene finished. 0 entities created in 0.181 msecs.
_______________________________________________
Fiware-tech-help mailing list
Fiware-tech-help@lists.fi-ware.org
https://lists.fi-ware.org/listinfo/fiware-tech-help
Hi,
thank you for the report.
I have now tested and replicated those errors in TestBed server. The server was running Ubuntu 14.04.1 (x64) Image. I updated 4th unit test documentation, and the changes can now be found at : https://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/Synchronization_-_Unit_Testing_Plan_and_Report#Unit_Test_4
To replicate the error, I ran a following command found on the error log:
xvfb-run ./Tundra --headless --file scenes\Avatar\scene.txml --server --httpport 2346 --config tundra.json --config tundra-addons.json
I noticed that there were couple of errors in Unit Test 4 documentation and order to make the Tundra run properly in the TestBed server, following changes were made to the command:
xvfb-run ./Tundra --headless --file scenes/Avatar/scene.txml --server --httpport 2346 --config tundra.json
Here is a summary what I changed. First of "--config tundra-addons.json" argument was not needed and it caused a HttpServer module to initialize twice, which made it try to bind 2346 port twice. Second --file scenes\Avatar\scene.txml line backslashes needed to be changed to slashes in order to get the scene loaded properly.
After those two changes, I successfully ran the unit test and checked that desired response was printer by the curl.