TVIP tms vod imbd and logging

Post Reply
sasskass
Posts: 7
Joined: 09 Sep 2022, 17:11

TVIP tms vod imbd and logging

Post by sasskass » 11 Sep 2022, 13:22

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

ftor
Posts: 805
Joined: 12 May 2020, 09:22

Re: TVIP tms vod imbd and logging

Post by ftor » 12 Sep 2022, 11:17

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

sasskass
Posts: 7
Joined: 09 Sep 2022, 17:11

Re: TVIP tms vod imbd and logging

Post by sasskass » 12 Sep 2022, 11:46

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

sasskass
Posts: 7
Joined: 09 Sep 2022, 17:11

Re: TVIP tms vod imbd and logging

Post by sasskass » 12 Sep 2022, 11:55

....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

sasskass
Posts: 7
Joined: 09 Sep 2022, 17:11

Re: TVIP tms vod imbd and logging

Post by sasskass » 12 Sep 2022, 12:09

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)

ftor
Posts: 805
Joined: 12 May 2020, 09:22

Re: TVIP tms vod imbd and logging

Post by ftor » 12 Sep 2022, 12:17

Could you please make ticket to https://support.tvip.tv
And provides access to Web admin panel and ssh.

sasskass
Posts: 7
Joined: 09 Sep 2022, 17:11

Re: TVIP tms vod imbd and logging

Post by sasskass » 12 Sep 2022, 20:13

Thank You,

We did the ticket.

ftor
Posts: 805
Joined: 12 May 2020, 09:22

Re: TVIP tms vod imbd and logging

Post by ftor » 13 Sep 2022, 10:48

ok.
thanks

Post Reply