TVIP tms vod imbd and logging
TVIP tms vod imbd and logging
Hi,
We are testing TMS and have some problems/questions.
1. We enabled VOD followong the wiki and add tmbd v3 api key. When we try to import by imbd id string we get message: Sorry something goes wrong, try again later.
The key is valid and manual test did the query correctly
2. No logs are generated under /var/log/tvip-tms/manager / gateway, so we cant debug the system.
tryed to cp log4j2-example.yml > log4j2-prod.yml, also no logs,
The os is Ubuntu 20.04lts
Kind Regards
Aleksander
We are testing TMS and have some problems/questions.
1. We enabled VOD followong the wiki and add tmbd v3 api key. When we try to import by imbd id string we get message: Sorry something goes wrong, try again later.
The key is valid and manual test did the query correctly
2. No logs are generated under /var/log/tvip-tms/manager / gateway, so we cant debug the system.
tryed to cp log4j2-example.yml > log4j2-prod.yml, also no logs,
The os is Ubuntu 20.04lts
Kind Regards
Aleksander
Re: TVIP tms vod imbd and logging
Hello,
Let's try again, in section VOD press + , choose your locale, Import content with selected locale IMDB and ID tt15325794, press import
About logs, because TMS has microservices architecture, log should be enable for each services, add this for services section /opt/tvip-tms/manager/manager-tvip-*/application-prod.ymll
logging:
config: log4j2-example.yml
Let's try again, in section VOD press + , choose your locale, Import content with selected locale IMDB and ID tt15325794, press import
About logs, because TMS has microservices architecture, log should be enable for each services, add this for services section /opt/tvip-tms/manager/manager-tvip-*/application-prod.ymll
logging:
config: log4j2-example.yml
Re: TVIP tms vod imbd and logging
Hi,
At first thank You for the logging info, now it is possible to debug...
And yes, we did as You said and got:
INFO tvip --- [ parallel-14] ru.tvip.tms.manager.vod.api.gateway.VodApiServerRequestHandler : Preparing to import vod content for imdb id tt13314558 with locale Locale{id=2, code='en-US', timeFormat='24-hour clock', dateFormat='null', defaultEncoding='UTF-8', country='United States of America'}.
2022-09-12 08:41:13.265 INFO tvip --- [or-http-epoll-8] ru.tvip.tms.manager.vod.service.tmdb.TmdbVodService : Going to get vod content for movie 'Day Shift' with locale en-US.
2022-09-12 08:41:13.826 ERROR tvip --- [or-http-epoll-8] ru.tvip.tms.manager.vod.service.tmdb.TmdbVodService : org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.InsertRoot(entity=Tag{id=null, name='Action'})
2022-09-12 08:41:13.827 ERROR tvip --- [or-http-epoll-8] ru.tvip.tms.manager.vod.api.gateway.VodApiServerRequestHandler : org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.InsertRoot(entity=Tag{id=null, name='Action'})
Kind Regards
Aleksander
At first thank You for the logging info, now it is possible to debug...
And yes, we did as You said and got:
INFO tvip --- [ parallel-14] ru.tvip.tms.manager.vod.api.gateway.VodApiServerRequestHandler : Preparing to import vod content for imdb id tt13314558 with locale Locale{id=2, code='en-US', timeFormat='24-hour clock', dateFormat='null', defaultEncoding='UTF-8', country='United States of America'}.
2022-09-12 08:41:13.265 INFO tvip --- [or-http-epoll-8] ru.tvip.tms.manager.vod.service.tmdb.TmdbVodService : Going to get vod content for movie 'Day Shift' with locale en-US.
2022-09-12 08:41:13.826 ERROR tvip --- [or-http-epoll-8] ru.tvip.tms.manager.vod.service.tmdb.TmdbVodService : org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.InsertRoot(entity=Tag{id=null, name='Action'})
2022-09-12 08:41:13.827 ERROR tvip --- [or-http-epoll-8] ru.tvip.tms.manager.vod.api.gateway.VodApiServerRequestHandler : org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.InsertRoot(entity=Tag{id=null, name='Action'})
Kind Regards
Aleksander
Re: TVIP tms vod imbd and logging
....And we see that by default the date format was missing, we add to locales YYYY-MM-DD
and tried to import again and got:
2022-09-12 08:51:33.739 INFO tvip --- [ parallel-7] ru.tvip.tms.manager.vod.api.gateway.VodApiServerRequestHandler : Preparing to import vod content for imdb id tt13314558 with locale Locale{id=2, code='en-US', timeFormat='24-hour clock', dateFormat='YYYY-MM-DD', defaultEncoding='UTF-8', country='United States of America'}.
2022-09-12 08:51:33.781 INFO tvip --- [or-http-epoll-9] ru.tvip.tms.manager.vod.service.tmdb.TmdbVodService : Going to get vod content for movie 'Day Shift' with locale en-US.
2022-09-12 08:51:33.857 ERROR tvip --- [r-http-epoll-10] ru.tvip.tms.manager.vod.service.tmdb.TmdbVodService : org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.InsertRoot(entity=Tag{id=null, name='Action'})
2022-09-12 08:51:33.857 ERROR tvip --- [r-http-epoll-10] ru.tvip.tms.manager.vod.api.gateway.VodApiServerRequestHandler : org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.InsertRoot(entity=Tag{id=null, name='Action'})
Any suggestions
Aleksander
and tried to import again and got:
2022-09-12 08:51:33.739 INFO tvip --- [ parallel-7] ru.tvip.tms.manager.vod.api.gateway.VodApiServerRequestHandler : Preparing to import vod content for imdb id tt13314558 with locale Locale{id=2, code='en-US', timeFormat='24-hour clock', dateFormat='YYYY-MM-DD', defaultEncoding='UTF-8', country='United States of America'}.
2022-09-12 08:51:33.781 INFO tvip --- [or-http-epoll-9] ru.tvip.tms.manager.vod.service.tmdb.TmdbVodService : Going to get vod content for movie 'Day Shift' with locale en-US.
2022-09-12 08:51:33.857 ERROR tvip --- [r-http-epoll-10] ru.tvip.tms.manager.vod.service.tmdb.TmdbVodService : org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.InsertRoot(entity=Tag{id=null, name='Action'})
2022-09-12 08:51:33.857 ERROR tvip --- [r-http-epoll-10] ru.tvip.tms.manager.vod.api.gateway.VodApiServerRequestHandler : org.springframework.data.relational.core.conversion.DbActionExecutionException: Failed to execute DbAction.InsertRoot(entity=Tag{id=null, name='Action'})
Any suggestions
Aleksander
Re: TVIP tms vod imbd and logging
Think some bug, cause postgre log shows:
2022-09-12 09:06:54.767 UTC [43512] tvip-tms@tvip-tms-vod ERROR: null value in column "enabled" violates not-null constraint
2022-09-12 09:06:54.767 UTC [43512] tvip-tms@tvip-tms-vod DETAIL: Failing row contains (38, Action, 1, 28, null, null).
2022-09-12 09:06:54.767 UTC [43512] tvip-tms@tvip-tms-vod STATEMENT: INSERT INTO "vod_tag" ("enabled", "epg_service_id", "name", "position", "tmdb_id") VALUES ($1, $2, $3, $4, $5)
2022-09-12 09:06:54.767 UTC [43512] tvip-tms@tvip-tms-vod ERROR: null value in column "enabled" violates not-null constraint
2022-09-12 09:06:54.767 UTC [43512] tvip-tms@tvip-tms-vod DETAIL: Failing row contains (38, Action, 1, 28, null, null).
2022-09-12 09:06:54.767 UTC [43512] tvip-tms@tvip-tms-vod STATEMENT: INSERT INTO "vod_tag" ("enabled", "epg_service_id", "name", "position", "tmdb_id") VALUES ($1, $2, $3, $4, $5)
Re: TVIP tms vod imbd and logging
Could you please make ticket to https://support.tvip.tv
And provides access to Web admin panel and ssh.
And provides access to Web admin panel and ssh.
Re: TVIP tms vod imbd and logging
Thank You,
We did the ticket.
We did the ticket.
Re: TVIP tms vod imbd and logging
Hi,
The bug is fixed from the backend, thank You, but we cant enable 'Video on demand' section.
Under the Management the status is red.
We did as in the wiki:
vi /opt/tvip-tms/gateway/gateway-tvip-tms-tvip-api/application-prod.yml
and add
features:
vod: true
After this we did > systemctl restart gateway-tvip-tms-tvip-api
But Under the Management the status is still red.
Our application-prod.yml looks like:
--------------------------------------------------------------
application:
jwt:
access-token-secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
refresh-token-secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
features:
vod: true
--------------------------------------------------------------
What is wrong we did ?
Kind Regards
Aleksander Kikkas
The bug is fixed from the backend, thank You, but we cant enable 'Video on demand' section.
Under the Management the status is red.
We did as in the wiki:
vi /opt/tvip-tms/gateway/gateway-tvip-tms-tvip-api/application-prod.yml
and add
features:
vod: true
After this we did > systemctl restart gateway-tvip-tms-tvip-api
But Under the Management the status is still red.
Our application-prod.yml looks like:
--------------------------------------------------------------
application:
jwt:
access-token-secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
refresh-token-secret: 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
features:
vod: true
--------------------------------------------------------------
What is wrong we did ?
Kind Regards
Aleksander Kikkas
Re: TVIP tms vod imbd and logging
Did you look at the log ?