Open MadaoIsMyBrother opened 2 years ago
Be sure to run:
apt-get install luarocks
luarocks install luasocket
This is detailed in the prerequisites of the repo.
Pre-requirements
- Docker
- Docker-compose
- Python 3.5+ (with asyncio and aiohttp)
- libssl-dev (apt-get install libssl-dev)
- libz-dev (apt-get install libz-dev)
- luarocks (apt-get install luarocks)
- luasocket (luarocks install luasocket)
However, you also have the error:
unable to connect to localhost:8080 Connection refused
Which indicates that your frontend is not listening to port 8080.
Did you already do docker-compose up -d
in the socialNetwork folder?
./wrk -D exp -t 1 -c 1 -d 5 -L -s ./scripts/media-microservices/compose-review.lua http://localhost:8080/wrk2-api/review/compose -R 5 ./scripts/media-microservices/compose-review.lua: ./scripts/media-microservices/compose-review.lua:1: module 'socket' not found: no field package.preload['socket'] no file './socket.lua' no file '/usr/local/share/luajit-2.0.3/socket.lua' no file '/usr/local/share/lua/5.1/socket.lua' no file '/usr/local/share/lua/5.1/socket/init.lua' no file './socket.so' no file '/usr/local/lib/lua/5.1/socket.so' no file '/usr/local/lib/lua/5.1/loadall.so' unable to connect to localhost:8080 Connection refused