Files
forkmessager/logs.txt
2026-03-15 23:30:38 +03:00

408 lines
74 KiB
Plaintext

info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (4ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT 1
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (2ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
LOCK TABLE "__EFMigrationsHistory" IN ACCESS EXCLUSIVE MODE
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
info: Microsoft.EntityFrameworkCore.Migrations[20405]
No migrations were applied. The database is already up to date.
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT 1
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE IF NOT EXISTS "__EFMigrationsHistory" (
"MigrationId" character varying(150) NOT NULL,
"ProductVersion" character varying(32) NOT NULL,
CONSTRAINT "PK___EFMigrationsHistory" PRIMARY KEY ("MigrationId")
);
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
LOCK TABLE "__EFMigrationsHistory" IN ACCESS EXCLUSIVE MODE
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
SELECT "MigrationId", "ProductVersion"
FROM "__EFMigrationsHistory"
ORDER BY "MigrationId";
info: Microsoft.EntityFrameworkCore.Migrations[20405]
No migrations were applied. The database is already up to date.
warn: Microsoft.AspNetCore.DataProtection.Repositories.FileSystemXmlRepository[60]
Storing keys in a directory '/root/.aspnet/DataProtection-Keys' that may not be persisted outside of the container. Protected data will be unavailable when container is destroyed. For more information go to https://aka.ms/aspnet/dataprotectionwarning
warn: Microsoft.AspNetCore.DataProtection.KeyManagement.XmlKeyManager[35]
No XML encryptor configured. Key {8775b269-4057-422c-93ae-5b13f9b3c93a} may be persisted to storage in unencrypted form.
warn: Microsoft.AspNetCore.Hosting.Diagnostics[15]
Overriding HTTP_PORTS '8080' and HTTPS_PORTS ''. Binding to values defined by URLS instead 'http://+:8080'.
info: Microsoft.Hosting.Lifetime[14]
Now listening on: http://[::]:8080
info: Microsoft.Hosting.Lifetime[0]
Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
Content root path: /app
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (6ms) [Parameters=[@userId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT c."Id", c."Avatar", c."CreatedAt", c."Description", c."Name", c."Type", c1."Id", c1."ChatId", c1."IsMuted", c1."IsPinned", c1."JoinedAt", c1."Role", c1."UserId"
FROM chats."Chats" AS c
LEFT JOIN chats."ChatMembers" AS c1 ON c."Id" = c1."ChatId"
WHERE EXISTS (
SELECT 1
FROM chats."ChatMembers" AS c0
WHERE c."Id" = c0."ChatId" AND c0."UserId" = @userId)
ORDER BY c."CreatedAt" DESC, c."Id"
info: Knot.Modules.Chats.Infrastructure.SignalR.ChatHub[0]
User da25c0fd-86cf-487d-b38d-77b1c1ba6d5e connected with 6aS044G6VpTA7JX6VC_WRA, added to 1 chats
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
warn: Microsoft.EntityFrameworkCore.Query[20504]
Compiling a query which loads related collections for more than one collection navigation, either via 'Include' or through projection, but no 'QuerySplittingBehavior' has been configured. By default, Entity Framework will use 'QuerySplittingBehavior.SingleQuery', which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))'.
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (32ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Knot.Modules.Chats.Infrastructure.SignalR.ChatHub[0]
User da25c0fd-86cf-487d-b38d-77b1c1ba6d5e disconnected
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@id='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT u."Id", u."Avatar", u."Bio", u."Birthday", u."CreatedAt", u."DisplayName", u."Email", u."HideStoryViews", u."PasswordHash", u."Username"
FROM identity."Users" AS u
WHERE u."Id" = @id
LIMIT 1
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@userId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT c."Id", c."Avatar", c."CreatedAt", c."Description", c."Name", c."Type", c1."Id", c1."ChatId", c1."IsMuted", c1."IsPinned", c1."JoinedAt", c1."Role", c1."UserId"
FROM chats."Chats" AS c
LEFT JOIN chats."ChatMembers" AS c1 ON c."Id" = c1."ChatId"
WHERE EXISTS (
SELECT 1
FROM chats."ChatMembers" AS c0
WHERE c."Id" = c0."ChatId" AND c0."UserId" = @userId)
ORDER BY c."CreatedAt" DESC, c."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[@id='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT u."Id", u."Avatar", u."Bio", u."Birthday", u."CreatedAt", u."DisplayName", u."Email", u."HideStoryViews", u."PasswordHash", u."Username"
FROM identity."Users" AS u
WHERE u."Id" = @id
LIMIT 1
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@userId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT c."Id", c."Avatar", c."CreatedAt", c."Description", c."Name", c."Type", c1."Id", c1."ChatId", c1."IsMuted", c1."IsPinned", c1."JoinedAt", c1."Role", c1."UserId"
FROM chats."Chats" AS c
LEFT JOIN chats."ChatMembers" AS c1 ON c."Id" = c1."ChatId"
WHERE EXISTS (
SELECT 1
FROM chats."ChatMembers" AS c0
WHERE c."Id" = c0."ChatId" AND c0."UserId" = @userId)
ORDER BY c."CreatedAt" DESC, c."Id"
info: Knot.Modules.Chats.Infrastructure.SignalR.ChatHub[0]
User da25c0fd-86cf-487d-b38d-77b1c1ba6d5e connected with PIomfoaHHYBFTG67G4K-Uw, added to 1 chats
warn: Microsoft.EntityFrameworkCore.Query[20504]
Compiling a query which loads related collections for more than one collection navigation, either via 'Include' or through projection, but no 'QuerySplittingBehavior' has been configured. By default, Entity Framework will use 'QuerySplittingBehavior.SingleQuery', which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))'.
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (2ms) [Parameters=[@chatId='?' (DbType = Guid), @p2='?' (DbType = Int32), @p='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30']
SELECT m2."Id", m2."ChatId", m2."Content", m2."CreatedAt", m2."DeletedByUsers", m2."ForwardedFromId", m2."IsDeleted", m2."IsEdited", m2."Quote", m2."ReplyToId", m2."SenderId", m2."StoryId", m2."StoryMediaType", m2."StoryMediaUrl", m2."Type", m0."MessageId", m0."Id", m0."Filename", m0."Size", m0."Type", m0."Url", r."Id", r."MessageId", r."ReadAt", r."UserId", m1."Id", m1."Emoji", m1."MessageId", m1."UserId"
FROM (
SELECT m."Id", m."ChatId", m."Content", m."CreatedAt", m."DeletedByUsers", m."ForwardedFromId", m."IsDeleted", m."IsEdited", m."Quote", m."ReplyToId", m."SenderId", m."StoryId", m."StoryMediaType", m."StoryMediaUrl", m."Type"
FROM chats."Messages" AS m
WHERE m."ChatId" = @chatId
ORDER BY m."CreatedAt" DESC
LIMIT @p2 OFFSET @p
) AS m2
LEFT JOIN chats."MessageMedia" AS m0 ON m2."Id" = m0."MessageId"
LEFT JOIN chats."ReadReceipts" AS r ON m2."Id" = r."MessageId"
LEFT JOIN chats."MessageReactions" AS m1 ON m2."Id" = m1."MessageId"
ORDER BY m2."CreatedAt" DESC, m2."Id", m0."MessageId", m0."Id", r."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@chatId='?' (DbType = Guid), @p2='?' (DbType = Int32), @p='?' (DbType = Int32)], CommandType='Text', CommandTimeout='30']
SELECT m2."Id", m2."ChatId", m2."Content", m2."CreatedAt", m2."DeletedByUsers", m2."ForwardedFromId", m2."IsDeleted", m2."IsEdited", m2."Quote", m2."ReplyToId", m2."SenderId", m2."StoryId", m2."StoryMediaType", m2."StoryMediaUrl", m2."Type", m0."MessageId", m0."Id", m0."Filename", m0."Size", m0."Type", m0."Url", r."Id", r."MessageId", r."ReadAt", r."UserId", m1."Id", m1."Emoji", m1."MessageId", m1."UserId"
FROM (
SELECT m."Id", m."ChatId", m."Content", m."CreatedAt", m."DeletedByUsers", m."ForwardedFromId", m."IsDeleted", m."IsEdited", m."Quote", m."ReplyToId", m."SenderId", m."StoryId", m."StoryMediaType", m."StoryMediaUrl", m."Type"
FROM chats."Messages" AS m
WHERE m."ChatId" = @chatId
ORDER BY m."CreatedAt" DESC
LIMIT @p2 OFFSET @p
) AS m2
LEFT JOIN chats."MessageMedia" AS m0 ON m2."Id" = m0."MessageId"
LEFT JOIN chats."ReadReceipts" AS r ON m2."Id" = r."MessageId"
LEFT JOIN chats."MessageReactions" AS m1 ON m2."Id" = m1."MessageId"
ORDER BY m2."CreatedAt" DESC, m2."Id", m0."MessageId", m0."Id", r."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (2ms) [Parameters=[@id='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT c1."Id", c1."Avatar", c1."CreatedAt", c1."Description", c1."Name", c1."Type", c0."Id", c0."ChatId", c0."IsMuted", c0."IsPinned", c0."JoinedAt", c0."Role", c0."UserId"
FROM (
SELECT c."Id", c."Avatar", c."CreatedAt", c."Description", c."Name", c."Type"
FROM chats."Chats" AS c
WHERE c."Id" = @id
LIMIT 1
) AS c1
LEFT JOIN chats."ChatMembers" AS c0 ON c1."Id" = c0."ChatId"
ORDER BY c1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (4ms) [Parameters=[@p0='?' (DbType = Guid), @p1='?' (DbType = Guid), @p2='?', @p3='?' (DbType = DateTime), @p4='?' (DbType = Object), @p5='?' (DbType = Guid), @p6='?' (DbType = Boolean), @p7='?' (DbType = Boolean), @p8='?', @p9='?' (DbType = Guid), @p10='?' (DbType = Guid), @p11='?' (DbType = Guid), @p12='?', @p13='?', @p14='?'], CommandType='Text', CommandTimeout='30']
INSERT INTO chats."Messages" ("Id", "ChatId", "Content", "CreatedAt", "DeletedByUsers", "ForwardedFromId", "IsDeleted", "IsEdited", "Quote", "ReplyToId", "SenderId", "StoryId", "StoryMediaType", "StoryMediaUrl", "Type")
VALUES (@p0, @p1, @p2, @p3, @p4, @p5, @p6, @p7, @p8, @p9, @p10, @p11, @p12, @p13, @p14);
warn: Microsoft.EntityFrameworkCore.Query[20504]
Compiling a query which loads related collections for more than one collection navigation, either via 'Include' or through projection, but no 'QuerySplittingBehavior' has been configured. By default, Entity Framework will use 'QuerySplittingBehavior.SingleQuery', which can potentially result in slow query performance. See https://go.microsoft.com/fwlink/?linkid=2134277 for more information. To identify the query that's triggering this warning call 'ConfigureWarnings(w => w.Throw(RelationalEventId.MultipleCollectionIncludeWarning))'.
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@id='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT m2."Id", m2."ChatId", m2."Content", m2."CreatedAt", m2."DeletedByUsers", m2."ForwardedFromId", m2."IsDeleted", m2."IsEdited", m2."Quote", m2."ReplyToId", m2."SenderId", m2."StoryId", m2."StoryMediaType", m2."StoryMediaUrl", m2."Type", m0."MessageId", m0."Id", m0."Filename", m0."Size", m0."Type", m0."Url", r."Id", r."MessageId", r."ReadAt", r."UserId", m1."Id", m1."Emoji", m1."MessageId", m1."UserId"
FROM (
SELECT m."Id", m."ChatId", m."Content", m."CreatedAt", m."DeletedByUsers", m."ForwardedFromId", m."IsDeleted", m."IsEdited", m."Quote", m."ReplyToId", m."SenderId", m."StoryId", m."StoryMediaType", m."StoryMediaUrl", m."Type"
FROM chats."Messages" AS m
WHERE m."Id" = @id
LIMIT 1
) AS m2
LEFT JOIN chats."MessageMedia" AS m0 ON m2."Id" = m0."MessageId"
LEFT JOIN chats."ReadReceipts" AS r ON m2."Id" = r."MessageId"
LEFT JOIN chats."MessageReactions" AS m1 ON m2."Id" = m1."MessageId"
ORDER BY m2."Id", m0."MessageId", m0."Id", r."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@id='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT u."Id", u."Avatar", u."Bio", u."Birthday", u."CreatedAt", u."DisplayName", u."Email", u."HideStoryViews", u."PasswordHash", u."Username"
FROM identity."Users" AS u
WHERE u."Id" = @id
LIMIT 1
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (2ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
fail: Knot.Shared.Infrastructure.Middleware.ExceptionHandlingMiddleware[0]
An unhandled exception has occurred.
System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception.
---> System.Security.Authentication.AuthenticationException: Cannot determine the frame size or a corrupted frame was received.
at System.Net.Security.SslStream.GetFrameSize(ReadOnlySpan`1 buffer)
at System.Net.Security.SslStream.EnsureFullTlsFrameAsync[TIOAdapter](CancellationToken cancellationToken, Int32 estimatedSize)
at System.Runtime.CompilerServices.PoolingAsyncValueTaskMethodBuilder`1.StateMachineBox`1.System.Threading.Tasks.Sources.IValueTaskSource<TResult>.GetResult(Int16 token)
at System.Net.Security.SslStream.ReceiveHandshakeFrameAsync[TIOAdapter](CancellationToken cancellationToken)
at System.Net.Security.SslStream.ForceAuthenticationAsync[TIOAdapter](Boolean receiveFirst, Byte[] reAuthenticationData, CancellationToken cancellationToken)
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
--- End of inner exception stack trace ---
at System.Net.Http.ConnectHelper.EstablishSslConnectionAsync(SslClientAuthenticationOptions sslOptions, HttpRequestMessage request, Boolean async, Stream stream, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.InjectNewHttp11ConnectionAsync(QueueItem queueItem)
at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken)
at System.Net.Http.DiagnosticsHandler.SendAsyncCore(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken)
at System.Net.Http.SocketsHttpHandler.<SendAsync>g__CreateHandlerAndSendAsync|115_0(HttpRequestMessage request, CancellationToken cancellationToken)
at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken)
at Minio.RequestExtensions.ExecuteTaskCoreAsync(IMinioClient minioClient, HttpRequestMessageBuilder requestMessageBuilder, Boolean isSts, CancellationToken cancellationToken)
at Minio.RequestExtensions.<>c__DisplayClass2_0.<<ExecuteTaskAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Minio.RequestExtensions.ExecuteWithRetry(IMinioClient minioClient, Func`1 executeRequestCallback)
at Minio.RequestExtensions.ExecuteTaskAsync(IMinioClient minioClient, HttpRequestMessageBuilder requestMessageBuilder, Boolean isSts, CancellationToken cancellationToken)
at Minio.MinioClient.BucketExistsAsync(BucketExistsArgs args, CancellationToken cancellationToken)
at Knot.Shared.Kernel.Storage.S3FileStorageService.EnsureBucketExistsAsync() in /app/apps/server-net/src/Shared/Knot.Shared.Infrastructure/Storage/S3FileStorageService.cs:line 31
at Knot.Shared.Kernel.Storage.S3FileStorageService.UploadFileAsync(Stream fileStream, String fileName, String contentType) in /app/apps/server-net/src/Shared/Knot.Shared.Infrastructure/Storage/S3FileStorageService.cs:line 46
at Host.Controllers.MessagesController.UploadFile(IFormFile file, IFileStorageService fileStorage) in /app/apps/server-net/src/Host/Controllers/MessagesController.cs:line 195
at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.TaskOfIActionResultExecutor.Execute(ActionContext actionContext, IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Awaited|12_0(ControllerActionInvoker invoker, ValueTask`1 actionResultValueTask)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextResourceFilter>g__Awaited|25_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Rethrow(ResourceExecutedContextSealed context)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeFilterPipelineAsync>g__Awaited|20_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeAsync>g__Awaited|17_0(ResourceInvoker invoker, Task task, IDisposable scope)
at Microsoft.AspNetCore.Authorization.AuthorizationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Knot.Shared.Infrastructure.Middleware.ExceptionHandlingMiddleware.InvokeAsync(HttpContext context) in /app/apps/server-net/src/Shared/Knot.Shared.Infrastructure/Middleware/ExceptionHandlingMiddleware.cs:line 23
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (0ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@currentUserId='?' (DbType = Guid)], CommandType='Text', CommandTimeout='30']
SELECT f."Id", f."CreatedAt", f."FriendId", f."Status", f."UserId"
FROM identity."Friendships" AS f
WHERE f."Status" = 1 AND (f."UserId" = @currentUserId OR f."FriendId" = @currentUserId)
info: Microsoft.EntityFrameworkCore.Database.Command[20101]
Executed DbCommand (1ms) [Parameters=[@friendIds='?' (DbType = Object)], CommandType='Text', CommandTimeout='30']
SELECT s."Id", s."BgColor", s."Content", s."CreatedAt", s."ExpiresAt", s."MediaUrl", s."Type", s."UserId", s0."Id", s0."StoryId", s0."UserId", s0."ViewedAt", s1."Id", s1."CreatedAt", s1."Emoji", s1."StoryId", s1."UserId", s2."Id", s2."Content", s2."CreatedAt", s2."StoryId", s2."UserId"
FROM identity."Stories" AS s
LEFT JOIN identity."StoryViewers" AS s0 ON s."Id" = s0."StoryId"
LEFT JOIN identity."StoryReactions" AS s1 ON s."Id" = s1."StoryId"
LEFT JOIN identity."StoryReplies" AS s2 ON s."Id" = s2."StoryId"
WHERE s."ExpiresAt" > now() AND s."UserId" = ANY (@friendIds)
ORDER BY s."CreatedAt" DESC, s."Id", s0."Id", s1."Id"