Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] region is "" #828

Open
yspreen opened this issue Dec 17, 2024 · 0 comments
Open

[BUG] region is "" #828

yspreen opened this issue Dec 17, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@yspreen
Copy link

yspreen commented Dec 17, 2024

livekit-server-1.8.0
egress-1.8.4
ingress-1.2.2

I'm using minio so I set my region in the config.yaml to us-east-1:

{
	"config.yaml": "api_key: egress
		api_secret: $secret
		health_port: 8080
		log_level: info
		prometheus_port: 9090
		redis:
		  address: redis-headless:6379
		  password: $pw
		ws_url: ws://livekit-livekit-server
		s3:
		  region: us-east-1
		"
}

and I also have the region set in my file output like

  const fileOutput = new EncodedFileOutput({
    fileType: EncodedFileType.MP4,
    filepath: `recordings/${petName}/${new Date()
      .toISOString()
      .slice(0, 19)}-${roomName}-egress`,
    output: {
      case: "s3",
      value: {
        accessKey: AWS_ACCESS_KEY,
        secret: AWS_SECRET_KEY,
        bucket: AWS_BUCKET,
        region: "us-east-1", // minio region
        endpoint: "http://minio-service:9000",
      },
    },
  });

this gets confirmed by the egress on create:

{
  info: EgressInfo {
    egressId: 'EG_Zs33UecX4o8S',
    roomId: 'RM_PB4KRZCZ4S6b',
    roomName: 'bicnaplhjtld',
    status: 0,
    startedAt: 0n,
    endedAt: 0n,
    updatedAt: 1734396069568548473n,
    details: '',
    error: '',
    errorCode: 0,
    request: { case: 'roomComposite', value: [RoomCompositeEgressRequest] },
    result: { case: 'file', value: [FileInfo] },
    streamResults: [],
    fileResults: [ [FileInfo] ],
    segmentResults: [],
    imageResults: [],
    manifestLocation: '',
    backupStorageUsed: false
  }
} {"egressId":"EG_Zs33UecX4o8S","roomId":"RM_PB4KRZCZ4S6b","status":"EGRESS_STARTING","roomComposite":{"roomName":"bicnaplhjtld","layout":"speaker","audioOnly":false,"videoOnly":false,"customBaseUrl":"","file":{"fileType":"MP4","filepath":"recordings/fiscal_rose_mockingbird/2024-12-17T00:41:09-bicnaplhjtld-egress","s3":{"accessKey":"{access_key}","secret":"{secret}","region":"us-east-1","endpoint":"http://minio-service:9000","bucket":"main","forcePathStyle":false,"metadata":{},"tagging":"","contentDisposition":"","sessionToken":""},"disableManifest":false},"fileOutputs":[{"fileType":"MP4","filepath":"recordings/fiscal_rose_mockingbird/2024-12-17T00:41:09-bicnaplhjtld-egress","s3":{"accessKey":"{access_key}","secret":"{secret}","region":"us-east-1","endpoint":"http://minio-service:9000","bucket":"main","forcePathStyle":false,"metadata":{},"tagging":"","contentDisposition":"","sessionToken":""},"disableManifest":false}],"streamOutputs":[],"segmentOutputs":[],"imageOutputs":[]},"file":{"filename":"recordings/fiscal_rose_mockingbird/2024-12-17T00:41:09-bicnaplhjtld-egress.mp4","startedAt":"0","endedAt":"0","size":"0","location":"","duration":"0"},"error":"","startedAt":"0","endedAt":"0","roomName":"bicnaplhjtld","streamResults":[],"fileResults":[{"filename":"recordings/fiscal_rose_mockingbird/2024-12-17T00:41:09-bicnaplhjtld-egress.mp4","startedAt":"0","endedAt":"0","size":"0","location":"","duration":"0"}],"segmentResults":[],"updatedAt":"1734396069568548473","imageResults":[],"details":"","errorCode":0,"manifestLocation":"","backupStorageUsed":false}

yet by the time I finish recording and stop the egress, I get this which doesn't make any sense. where did the region go all of a sudden?

{
  info: EgressInfo {
    egressId: 'EG_xrYLxoeCL2Ei',
    roomId: 'RM_qtMjwsu6om72',
    roomName: 'xgmvveniabdk',
    status: 4,
    startedAt: 0n,
    endedAt: 1734378234365989451n,
    updatedAt: 1734378234365989451n,
    details: '',
    error: 'invalid upload bucket region returned by provider. Try specifying the region manually in the request',
    errorCode: 500,
    request: { case: 'roomComposite', value: [RoomCompositeEgressRequest] },
    result: { case: 'file', value: [FileInfo] },
    streamResults: [],
    fileResults: [ [FileInfo] ],
    segmentResults: [],
    imageResults: [],
    manifestLocation: '',
    backupStorageUsed: false
  }
} {"egressId":"EG_xrYLxoeCL2Ei","roomId":"RM_qtMjwsu6om72","status":"EGRESS_FAILED","roomComposite":{"roomName":"xgmvveniabdk","layout":"speaker","audioOnly":false,"videoOnly":false,"customBaseUrl":"","file":{"fileType":"MP4","filepath":"recordings/spectacular_sapphire_takin/2024-12-16T19:43:53-xgmvveniabdk-egress","s3":{"accessKey":"{access_key}","secret":"{secret}","region":"","endpoint":"http://minio-service:9000","bucket":"main","forcePathStyle":false,"metadata":{},"tagging":"","contentDisposition":"","sessionToken":""},"disableManifest":false},"fileOutputs":[{"fileType":"MP4","filepath":"recordings/spectacular_sapphire_takin/2024-12-16T19:43:53-xgmvveniabdk-egress","s3":{"accessKey":"{access_key}","secret":"{secret}","region":"","endpoint":"http://minio-service:9000","bucket":"main","forcePathStyle":false,"metadata":{},"tagging":"","contentDisposition":"","sessionToken":""},"disableManifest":false}],"streamOutputs":[],"segmentOutputs":[],"imageOutputs":[]},"file":{"filename":"recordings/spectacular_sapphire_takin/2024-12-16T19:43:53-xgmvveniabdk-egress.mp4","startedAt":"0","endedAt":"0","size":"0","location":"","duration":"0"},"error":"invalid upload bucket region returned by provider. Try specifying the region manually in the request","startedAt":"0","endedAt":"1734378234365989451","roomName":"xgmvveniabdk","streamResults":[],"fileResults":[{"filename":"recordings/spectacular_sapphire_takin/2024-12-16T19:43:53-xgmvveniabdk-egress.mp4","startedAt":"0","endedAt":"0","size":"0","location":"","duration":"0"}],"segmentResults":[],"updatedAt":"1734378234365989451","imageResults":[],"details":"","errorCode":500,"manifestLocation":"","backupStorageUsed":false}
@yspreen yspreen added the bug Something isn't working label Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants