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

MariaDB binay logs growing more than 1GB per hour after upgrading to Build 240420-ef5f14bc4 #4226

Open
cvinhaes opened this issue Apr 30, 2024 · 4 comments
Assignees
Labels
technical-support Support request

Comments

@cvinhaes
Copy link

cvinhaes commented Apr 30, 2024

Hi!

After updating to Build 240420-ef5f14bc4 the space in my disk disappeared really fast. Searching for the culprit I found that mariadb binary logs are growing more that 1GB per hour. Looking into the logs I find that updates to marker_uid are causing most of the load. I can tell that Photoprism is actually updating faces from the Photoprism log, but I don't understand what is causing so much activity without changes to the files and it's now very hard to keep Photoprism running because of this issue.

1. What is not working as documented?

MariaDB bin logs are growing at more that 1GB per hour until filling the disk.

2. How can we reproduce it?

As soon as I start the service.

I'm using the standard docker image with Docker version 23.0.1, build a5ee5b1 on Linux 6.0.0-0.deb11.6-amd64 x86_64.
Database is MariaDB Server 1:10.9.3+maria~ubu2204. Photos are stores in a folder structure pointed as the originals for Photoprism in the composer file. This setup has worked flawless for over one year until now.

Here is a tail on the logs for Photoprism...
public-stack-1-psm-1  | time="2024-04-30T07:14:27Z" level=info msg="faces: resolved 4 / 4 ambiguous subjects [5.260269145s]"
public-stack-1-psm-1  | time="2024-04-30T15:49:57Z" level=info msg="faces: updated 11 markers, recognized 11 faces, 0 unknown [8h35m28.23840616s]"
public-stack-1-psm-1  | time="2024-04-30T15:59:19Z" level=info msg="faces: face 7DBACVS4ZTFSHFS2CIIPKKOBNO3XABSB has ambiguous subject at dist 0.714492, Ø 0.810000 from 9 samples, collision Ø 0.767823"
public-stack-1-psm-1  | time="2024-04-30T15:59:20Z" level=info msg="faces: resolved 8 conflicts"
public-stack-1-psm-1  | time="2024-04-30T15:59:20Z" level=info msg="faces: successful conflict resolution for Clarissa, face 7DBACVS4ZTFSHFS2CIIPKKOBNO3XABSB had collisions with other persons"
public-stack-1-psm-1  | time="2024-04-30T15:59:20Z" level=info msg="faces: face 7DBACVS4ZTFSHFS2CIIPKKOBNO3XABSB has ambiguous subject at dist 0.682926, Ø 0.810000 from 9 samples, collision Ø 0.704492"
public-stack-1-psm-1  | time="2024-04-30T15:59:21Z" level=info msg="faces: resolved 3 conflicts"
public-stack-1-psm-1  | time="2024-04-30T15:59:21Z" level=info msg="faces: successful conflict resolution for Clarissa, face 7DBACVS4ZTFSHFS2CIIPKKOBNO3XABSB had collisions with other persons"
public-stack-1-psm-1  | time="2024-04-30T15:59:21Z" level=info msg="faces: face 7DBACVS4ZTFSHFS2CIIPKKOBNO3XABSB has ambiguous subject at dist 0.108161, Ø 0.810000 from 9 samples, collision Ø 0.672926"
public-stack-1-psm-1  | time="2024-04-30T15:59:21Z" level=info msg="faces: successful conflict resolution for Clarissa, face 7DBACVS4ZTFSHFS2CIIPKKOBNO3XABSB had collisions with other persons"
public-stack-1-psm-1  | time="2024-04-30T15:59:21Z" level=info msg="faces: face 7DBACVS4ZTFSHFS2CIIPKKOBNO3XABSB has ambiguous subject at dist 0.777823, Ø 0.810000 from 9 samples, collision Ø 0.098161"
public-stack-1-psm-1  | time="2024-04-30T15:59:21Z" level=info msg="faces: successful conflict resolution for Clarissa, face 7DBACVS4ZTFSHFS2CIIPKKOBNO3XABSB had collisions with other persons"
public-stack-1-psm-1  | time="2024-04-30T15:59:26Z" level=info msg="faces: resolved 4 / 4 ambiguous subjects [7.662959579s] 
And here is an extract of a transaction from the log. This is what the transactions look like...
START TRANSACTION
/*!*/;
# at 429
# at 560
#240430 13:00:00 server id 1  end_log_pos 560 CRC32 0x99e0d9b7  Annotate_rows:
#Q> UPDATE `markers` SET `matched_at` = '2024-04-30 16:00:00'  WHERE `markers`.`marker_uid` = 'mril31ru8s2ijlx0'
#240430 13:00:00 server id 1  end_log_pos 669 CRC32 0x9fb14dfa  Table_map: `photoprism`.`markers` mapped to number 546
# at 669
#240430 13:00:00 server id 1  end_log_pos 22609 CRC32 0x87549442        Update_rows: table id 546 flags: STMT_END_F
### UPDATE `photoprism`.`markers`
### WHERE
###   @1='mril31ru8s2ijlx0'
###   @2='fril31r2uhooz74n'
###   @3='face'
###   @4='image'
###   @5=''
###   @6=0
###   @7=0
###   @8='jrsdxv5gwmpg177p'
###   @9=''
###   @10='DCDVSCQUT6JSJOUMISBYXKIQT6MDE63L'
###   @11=0.40070277565851286639
###   @12='[[-0.03636545687913895,0.02234913781285286,0.05570342019200325,0.05070475488901138,-0.05986325442790985,0.048440977931022644,-0.059230364859104156,-0.00860181450
843811,0.057693950831890106,-0.0729437917470932,0.0832848772406578,-0.004476617090404034,0.03969859704375267,0.09263766556978226,-0.04054219648241997,0.012102528475224972,0
.01350417174398899,-0.027765821665525436,-0.06216804310679436,-0.024467596784234047,0.055994078516960144,-0.037464577704668045,0.06683435291051865,-0.002900889376178384,-0.
028379501774907112,0.00915913563221693,-0.03381502255797386,0.04941114783287048,-0.0021068300120532513,0.04206783324480057,-0.02658786065876484,0.011961284093558788,-0.0098
45295920968056,-0.03443434461951256,-0.012399354949593544,0.102598175406456,0.05631702020764351,-0.03841319680213928,0.009035416878759861,0.00993216224014759,0.071054950356
48346,0.007812132127583027,-0.02325022965669632,0.009422387927770615,-0.030710425227880478,-0.04868493229150772,0.04679548367857933,0.09667638689279556,0.020082011818885803
,-0.048211678862571716,-0.09084933996200562,-0.006349845789372921,0.022186271846294403,0.012027928605675697,0.06328555196523666,0.0276621263474226,0.018174512311816216,0.00
08652815595269203,0.09755829721689224,-0.05262162163853645,0.044905975461006165,-0.0030112480744719505,-0.031108401715755463,-0.02819855697453022,0.08064991235733032,0.0803
7903904914856,0.07976898550987244,0.017009498551487923,0.04084311053156853,0.011994806118309498,0.016155332326889038,0.052275028079748154,0.03139299526810646,0.015012403018
772602,0.008036435581743717,-0.030285023152828217,-0.03224266692996025,0.00975076388567686,-0.0873492881655693,0.05158112198114395,-0.004349637310951948,-0.0564811937510967
25,0.04905807226896286,0.12253843247890472,0.03848143294453621,-0.021182440221309662,0.07034318894147873,-0.002546923467889428,-0.022404491901397705,-0.047443851828575134,0
.03499126061797142,0.042686738073825836,-0.054613251239061356,0.01999148353934288,0.015353401191532612,0.043689578771591187,0.045326098799705505,-0.024301744997501373,0.039
40090164542198,0.06301091611385345,-0.002643023617565632,-0.04471080005168915,-0.05265537276864052,0.0009041537414304912,-0.04737867787480354,0.06589917093515396,0.07112907
618284225,0.00798310898244381,-0.02779405564069748,0.04017088562250137,0.05883365869522095,0.0460224375128746,0.0001256954565178603,-0.0067841592244803905,-0.10850600898265
839,-0.06681710481643677,-0.011966271325945854,-0.028955860063433647,0.016552044078707695,-0.019368374720215797,0.007730498444288969,-0.010022270493209362,-0.05156836286187
172,0.029175089672207832,-0.029648419469594955,-0.009997730143368244,-0.00669087516143918,0.07555507868528366,-0.004616618622094393,-0.06125026196241379,0.00688316347077488
9,-0.011615529656410217,-0.04046330973505974,0.06204064562916756,0.002623976906761527,0.0836620181798935,-0.017377225682139397,0.021378744393587112,0.0058703492395579815,0.
027553725987672806,-0.05100196972489357,-0.02363431826233864,0.04131925106048584,-0.020120780915021896,0.06593058258295059,0.05513614043593407,-0.04456616938114166,-0.01345
34677490592,-0.017343878746032715,-0.031011348590254784,0.06204505264759064,-0.028377966955304146,-0.019635211676359177,-0.023384973406791687,-0.03463025763630867,0.0406485
2371811867,0.03777427226305008,-0.0209942739456892,-0.07547927647829056,-0.010954469442367554,0.012342727743089199,0.011761958710849285,0.025872524827718735,0.0413600280880
92804,-0.01140803936868906,-0.0040854825638234615,0.0152727160602808,-0.037991009652614594,-0.040380317717790604,-0.041669417172670364,0.04943210631608963,-0.01005192007869
482,0.009229340590536594,-0.01562691293656826,0.025877734646201134,-0.019464503973722458,0.02428596094250679,-0.007867666892707348,-0.014721991494297981,0.02306894771754741
7,0.028764886781573296,-0.006974471732974052,-0.04541571065783501,-0.007692985236644745,-0.05676294490695,0.051621418446302414,-0.0527198426425457,0.04843706265091896,-0.02
805691957473755,-0.10129343718290329,-0.028821581974625587,-0.04898955300450325,-0.08028339594602585,-0.0264337956905365,-0.02877385914325714,0.03163670748472214,-0.0417765
3416991234,0.024751270189881325,-0.07286911457777023,0.12343630194664001,-0.07795141637325287,0.09275998920202255,-0.0574662946164608,0.0161881223320961,0.00765031948685646
1,-0.017380502074956894,-0.06864093989133835,-0.054582271724939346,0.010677797719836235,-0.018089985474944115,0.062351375818252563,0.026114756241440773,0.0567915178835392,0
.05670541524887085,-0.07586243003606796,0.09410817921161652,-0.0042987968772649765,-0.00962654035538435,0.021985013037919998,-0.07562913745641708,0.029110686853528023,-0.07
7081099152565,-0.04596530646085739,-0.06483827531337738,-0.04465452954173088,0.11608559638261795,-0.0700993463397026,-0.029241438955068588,0.02099796012043953,-0.0527143403
8877487,-0.00768704991787672,0.005167921539396048,-0.032925136387348175,0.009471654891967773,0.01951906643807888,-0.012088905088603497,0.035241592675447464,0.03789748251438
141,-0.03330543637275696,0.025762975215911865,0.025744397193193436,0.05682528764009476,0.06138704717159271,-0.05065728724002838,0.028652355074882507,-0.004562078509479761,-
0.0005448800511658192,0.04121015965938568,0.015551580116152763,-0.08385443687438965,0.003014165675267577,-0.09038957208395004,-0.0973551869392395,-0.008011183701455593,0.11
740659177303314,0.03844134882092476,0.045364875346422195,-0.05099814757704735,0.07131829112768173,0.023103568702936172,-0.0021004704758524895,-0.022547882050275803,0.061250
925064086914,-0.057912684977054596,-0.032757148146629333,-0.01838969625532627,0.004862739704549313,0.005350484978407621,0.018784407526254654,-0.011715512722730637,0.0147987
62276768684,0.008298348635435104,-0.006133753806352615,0.03552496060729027,0.018866252154111862,-0.010545535013079643,-0.0036331042647361755,0.005991019774228334,0.01099390
8159434795,-0.05946026369929314,0.09876462072134018,-0.042222585529088974,0.0012329008895903826,0.0512114055454731,-0.004036873113363981,-0.01660279370844364,-0.04869709908
96225,0.01876930519938469,0.03178548812866211,0.0386272557079792,0.045606836676597595,-0.025532610714435577,-0.007803966756910086,0.004340180661529303,-0.0827309712767601,0
.007512087468057871,-0.03920350596308708,-0.0008018114021979272,-0.06643449515104294,-0.0019384410697966814,-0.02859356999397278,-0.027920585125684738,0.041844047605991364,
0.0288332998752594,0.014215106144547462,-0.012525084428489208,0.027767794206738472,-0.01673937402665615,-0.015399782918393612,-0.024108022451400757,0.010151051916182041,-0.
046266376972198486,0.019351188093423843,-0.045238591730594635,-0.0655326247215271,0.07365299761295319,-0.005215086042881012,0.03490379452705383,-0.01708284206688404,0.09765
7211124897,-0.06234127655625343,0.025283832103013992,0.037398941814899445,0.004358532372862101,0.04491526633501053,-0.02947334572672844,0.03495738282799721,0.03707217797636
986,0.09473196417093277,0.028580615296959877,0.10329685360193253,-0.0739428922533989,0.0017785636009648442,-0.02594662830233574,0.03337353467941284,-0.03870917856693268,0.0
031823457684367895,0.013406908139586449,0.03883327916264534,-0.06884963810443878,0.06454525887966156,-0.039658501744270325,-0.012937062419950962,-0.013853989541530609,-0.00
17258584266528487,-0.014327563345432281,-0.04568827897310257,0.0011779593769460917,-0.03822588175535202,-0.051592085510492325,0.02275620773434639,-0.08566127717494965,0.041
06311500072479,0.009838199242949486,0.046010132879018784,-0.026931269094347954,-0.06287942826747894,0.044695258140563965,0.01243164949119091,0.08947107940912247,-0.04600780
0847291946,0.08262430876493454,-0.04022692143917084,-0.03961331397294998,-0.006049806252121925,-0.014362889342010021,-0.03260166570544243,-0.030588200315833092,-0.066726379
09650803,-0.0038578067906200886,0.07699286192655563,-0.032665498554706573,0.01729319617152214,-0.023538662120699883,-0.0020337593741714954,-0.028285901993513107,0.009762759
320437908,0.019316410645842552,0.005881470162421465,0.004841950256377459,-0.003419718472287059,-0.025472410023212433,0.007727575022727251,0.005205773748457432,-0.0227111484
85541344,0.021996069699525833,-0.010952641256153584,-0.004425600171089172,0.04396192356944084,0.05404314398765564,0.04069337621331215,-0.016127698123455048,-0.0034431971143
93115,-0.02274526096880436,-0.05629735440015793,0.0013946888502687216,0.0315021350979805,-0.07332441955804825,0.02566794492304325,-0.012464798986911774,0.014033074490725994
,0.09948417544364929,-0.02035793662071228,-0.02832031063735485,0.029224060475826263,0.031764645129442215,0.0056548528373241425,-0.05181427672505379,-0.011552429758012295,0.
07339552789926529,-0.027767250314354897,-0.06467175483703613,0.0513751320540905,0.05565093457698822,0.04352295771241188,-0.04075123742222786,0.046448707580566406,0.01274793
6882078648,0.030569054186344147,0.0047028143890202045,0.018352912738919258,-0.029643582180142403,-0.00365951145067811,-0.06487000733613968,0.017339076846837997,-0.005886306
98621273,-0.01951216347515583,0.01159491017460823,0.0026806294918060303,-0.028391651809215546,0.07802534103393555,0.0247182697057724,0.015237915329635143,0.0585598051548004
15,-0.021676016971468925,-0.05184420943260193,0.022049712017178535,0.0716760978102684,0.012230148538947105,-0.02903975173830986,0.07662308216094971,0.0248752161860466,-0.03
1320758163928986,0.0754188746213913,-0.011142146773636341,0.08274608105421066,-0.06463196873664856,-0.019060051068663597,-0.0028983852826058865,0.06051960214972496,0.019938
82842361927,-0.03413498401641846,-0.007048274390399456,0.03130858391523361,0.06394187361001968,-0.036422211676836014,0.016498226672410965,-0.03898994252085686,0.06549458205
69992,-0.009187917225062847,0.0009059568401426077,-0.026803413406014442,-0.08429041504859924,-0.0629635602235794,0.024776466190814972,-0.04363323003053665,0.000606483023148
03,0.017151158303022385,-0.0037425998598337173,0.014937913045287132,-0.0037476790603250265,0.00959209818392992,0.0759282335639,-0.042487457394599915,0.09383074939250946,-0.
04108098894357681,-0.027698984369635582,-0.006779097486287355,-0.01766856014728546,0.04822917655110359,0.013931900262832642,0.08081155270338058,-0.02508660964667797,-0.0242
65466257929802,-0.13060912489891052,0.006654598284512758,0.08353801816701889,0.026119712740182877,-0.011020924896001816,-0.01653185673058033,0.02535094879567623,0.053885102
27203369,-0.045240968465805054,0.04615947604179382,-0.040067125111818314,0.023362841457128525,-0.02610519342124462,0.04516012221574783,0.01607215404510498,-0.00524464016780
2572,-0.05709792301058769,0.058950599282979965,0.030080849304795265,0.004859373904764652,-0.0039050476625561714,-0.05989088490605354,0.03429501876235008,-0.0332792773842811
6,-0.005139076616615057,0.10384086519479752,0.05403359979391098,0.042810894548892975]]'
###   @13=''
###   @14=0.110937            
###   @15=0.188967            
###   @16=0.0710938           
###   @17=0.106808            
###   @18=32
###   @19=91
###   @20=147
###   @21='9bc8dd364b6d4f9f37d500c30beb7e323abc3855-06e0bc04706a'
###   @22='2024-04-30 07:14:36'
###   @23='2022-09-21 23:39:27'
###   @24='2023-11-30 17:10:15'
### SET
###   @1='mril31ru8s2ijlx0'
###   @2='fril31r2uhooz74n'
###   @3='face'
###   @4='image'
###   @5=''
###   @6=0
###   @7=0
###   @8='jrsdxv5gwmpg177p'
###   @9=''
###   @10='DCDVSCQUT6JSJOUMISBYXKIQT6MDE63L'
###   @11=0.40070277565851286639
###   @12='[[-0.03636545687913895,0.02234913781285286,0.05570342019200325,0.05070475488901138,-0.05986325442790985,0.048440977931022644,-0.059230364859104156,-0.00860181450
843811,0.057693950831890106,-0.0729437917470932,0.0832848772406578,-0.004476617090404034,0.03969859704375267,0.09263766556978226,-0.04054219648241997,0.012102528475224972,0
.01350417174398899,-0.027765821665525436,-0.06216804310679436,-0.024467596784234047,0.055994078516960144,-0.037464577704668045,0.06683435291051865,-0.002900889376178384,-0.
028379501774907112,0.00915913563221693,-0.03381502255797386,0.04941114783287048,-0.0021068300120532513,0.04206783324480057,-0.02658786065876484,0.011961284093558788,-0.0098
45295920968056,-0.03443434461951256,-0.012399354949593544,0.102598175406456,0.05631702020764351,-0.03841319680213928,0.009035416878759861,0.00993216224014759,0.071054950356
48346,0.007812132127583027,-0.02325022965669632,0.009422387927770615,-0.030710425227880478,-0.04868493229150772,0.04679548367857933,0.09667638689279556,0.020082011818885803
,-0.048211678862571716,-0.09084933996200562,-0.006349845789372921,0.022186271846294403,0.012027928605675697,0.06328555196523666,0.0276621263474226,0.018174512311816216,0.00
08652815595269203,0.09755829721689224,-0.05262162163853645,0.044905975461006165,-0.0030112480744719505,-0.031108401715755463,-0.02819855697453022,0.08064991235733032,0.0803
7903904914856,0.07976898550987244,0.017009498551487923,0.04084311053156853,0.011994806118309498,0.016155332326889038,0.052275028079748154,0.03139299526810646,0.015012403018
772602,0.008036435581743717,-0.030285023152828217,-0.03224266692996025,0.00975076388567686,-0.0873492881655693,0.05158112198114395,-0.004349637310951948,-0.0564811937510967
25,0.04905807226896286,0.12253843247890472,0.03848143294453621,-0.021182440221309662,0.07034318894147873,-0.002546923467889428,-0.022404491901397705,-0.047443851828575134,0
.03499126061797142,0.042686738073825836,-0.054613251239061356,0.01999148353934288,0.015353401191532612,0.043689578771591187,0.045326098799705505,-0.024301744997501373,0.039
40090164542198,0.06301091611385345,-0.002643023617565632,-0.04471080005168915,-0.05265537276864052,0.0009041537414304912,-0.04737867787480354,0.06589917093515396,0.07112907
618284225,0.00798310898244381,-0.02779405564069748,0.04017088562250137,0.05883365869522095,0.0460224375128746,0.0001256954565178603,-0.0067841592244803905,-0.10850600898265
839,-0.06681710481643677,-0.011966271325945854,-0.028955860063433647,0.016552044078707695,-0.019368374720215797,0.007730498444288969,-0.010022270493209362,-0.05156836286187
172,0.029175089672207832,-0.029648419469594955,-0.009997730143368244,-0.00669087516143918,0.07555507868528366,-0.004616618622094393,-0.06125026196241379,0.00688316347077488
9,-0.011615529656410217,-0.04046330973505974,0.06204064562916756,0.002623976906761527,0.0836620181798935,-0.017377225682139397,0.021378744393587112,0.0058703492395579815,0.
027553725987672806,-0.05100196972489357,-0.02363431826233864,0.04131925106048584,-0.020120780915021896,0.06593058258295059,0.05513614043593407,-0.04456616938114166,-0.01345
34677490592,-0.017343878746032715,-0.031011348590254784,0.06204505264759064,-0.028377966955304146,-0.019635211676359177,-0.023384973406791687,-0.03463025763630867,0.0406485
2371811867,0.03777427226305008,-0.0209942739456892,-0.07547927647829056,-0.010954469442367554,0.012342727743089199,0.011761958710849285,0.025872524827718735,0.0413600280880
92804,-0.01140803936868906,-0.0040854825638234615,0.0152727160602808,-0.037991009652614594,-0.040380317717790604,-0.041669417172670364,0.04943210631608963,-0.01005192007869
482,0.009229340590536594,-0.01562691293656826,0.025877734646201134,-0.019464503973722458,0.02428596094250679,-0.007867666892707348,-0.014721991494297981,0.02306894771754741
7,0.028764886781573296,-0.006974471732974052,-0.04541571065783501,-0.007692985236644745,-0.05676294490695,0.051621418446302414,-0.0527198426425457,0.04843706265091896,-0.02
805691957473755,-0.10129343718290329,-0.028821581974625587,-0.04898955300450325,-0.08028339594602585,-0.0264337956905365,-0.02877385914325714,0.03163670748472214,-0.0417765
3416991234,0.024751270189881325,-0.07286911457777023,0.12343630194664001,-0.07795141637325287,0.09275998920202255,-0.0574662946164608,0.0161881223320961,0.00765031948685646
1,-0.017380502074956894,-0.06864093989133835,-0.054582271724939346,0.010677797719836235,-0.018089985474944115,0.062351375818252563,0.026114756241440773,0.0567915178835392,0
.05670541524887085,-0.07586243003606796,0.09410817921161652,-0.0042987968772649765,-0.00962654035538435,0.021985013037919998,-0.07562913745641708,0.029110686853528023,-0.07
7081099152565,-0.04596530646085739,-0.06483827531337738,-0.04465452954173088,0.11608559638261795,-0.0700993463397026,-0.029241438955068588,0.02099796012043953,-0.0527143403
8877487,-0.00768704991787672,0.005167921539396048,-0.032925136387348175,0.009471654891967773,0.01951906643807888,-0.012088905088603497,0.035241592675447464,0.03789748251438
141,-0.03330543637275696,0.025762975215911865,0.025744397193193436,0.05682528764009476,0.06138704717159271,-0.05065728724002838,0.028652355074882507,-0.004562078509479761,-
0.0005448800511658192,0.04121015965938568,0.015551580116152763,-0.08385443687438965,0.003014165675267577,-0.09038957208395004,-0.0973551869392395,-0.008011183701455593,0.11
740659177303314,0.03844134882092476,0.045364875346422195,-0.05099814757704735,0.07131829112768173,0.023103568702936172,-0.0021004704758524895,-0.022547882050275803,0.061250
925064086914,-0.057912684977054596,-0.032757148146629333,-0.01838969625532627,0.004862739704549313,0.005350484978407621,0.018784407526254654,-0.011715512722730637,0.0147987
62276768684,0.008298348635435104,-0.006133753806352615,0.03552496060729027,0.018866252154111862,-0.010545535013079643,-0.0036331042647361755,0.005991019774228334,0.01099390
8159434795,-0.05946026369929314,0.09876462072134018,-0.042222585529088974,0.0012329008895903826,0.0512114055454731,-0.004036873113363981,-0.01660279370844364,-0.04869709908
96225,0.01876930519938469,0.03178548812866211,0.0386272557079792,0.045606836676597595,-0.025532610714435577,-0.007803966756910086,0.004340180661529303,-0.0827309712767601,0
.007512087468057871,-0.03920350596308708,-0.0008018114021979272,-0.06643449515104294,-0.0019384410697966814,-0.02859356999397278,-0.027920585125684738,0.041844047605991364,
0.0288332998752594,0.014215106144547462,-0.012525084428489208,0.027767794206738472,-0.01673937402665615,-0.015399782918393612,-0.024108022451400757,0.010151051916182041,-0.
046266376972198486,0.019351188093423843,-0.045238591730594635,-0.0655326247215271,0.07365299761295319,-0.005215086042881012,0.03490379452705383,-0.01708284206688404,0.09765
7211124897,-0.06234127655625343,0.025283832103013992,0.037398941814899445,0.004358532372862101,0.04491526633501053,-0.02947334572672844,0.03495738282799721,0.03707217797636
986,0.09473196417093277,0.028580615296959877,0.10329685360193253,-0.0739428922533989,0.0017785636009648442,-0.02594662830233574,0.03337353467941284,-0.03870917856693268,0.0
031823457684367895,0.013406908139586449,0.03883327916264534,-0.06884963810443878,0.06454525887966156,-0.039658501744270325,-0.012937062419950962,-0.013853989541530609,-0.00
17258584266528487,-0.014327563345432281,-0.04568827897310257,0.0011779593769460917,-0.03822588175535202,-0.051592085510492325,0.02275620773434639,-0.08566127717494965,0.041
06311500072479,0.009838199242949486,0.046010132879018784,-0.026931269094347954,-0.06287942826747894,0.044695258140563965,0.01243164949119091,0.08947107940912247,-0.04600780
0847291946,0.08262430876493454,-0.04022692143917084,-0.03961331397294998,-0.006049806252121925,-0.014362889342010021,-0.03260166570544243,-0.030588200315833092,-0.066726379
09650803,-0.0038578067906200886,0.07699286192655563,-0.032665498554706573,0.01729319617152214,-0.023538662120699883,-0.0020337593741714954,-0.028285901993513107,0.009762759
320437908,0.019316410645842552,0.005881470162421465,0.004841950256377459,-0.003419718472287059,-0.025472410023212433,0.007727575022727251,0.005205773748457432,-0.0227111484
85541344,0.021996069699525833,-0.010952641256153584,-0.004425600171089172,0.04396192356944084,0.05404314398765564,0.04069337621331215,-0.016127698123455048,-0.0034431971143
93115,-0.02274526096880436,-0.05629735440015793,0.0013946888502687216,0.0315021350979805,-0.07332441955804825,0.02566794492304325,-0.012464798986911774,0.014033074490725994
,0.09948417544364929,-0.02035793662071228,-0.02832031063735485,0.029224060475826263,0.031764645129442215,0.0056548528373241425,-0.05181427672505379,-0.011552429758012295,0.
07339552789926529,-0.027767250314354897,-0.06467175483703613,0.0513751320540905,0.05565093457698822,0.04352295771241188,-0.04075123742222786,0.046448707580566406,0.01274793
6882078648,0.030569054186344147,0.0047028143890202045,0.018352912738919258,-0.029643582180142403,-0.00365951145067811,-0.06487000733613968,0.017339076846837997,-0.005886306
98621273,-0.01951216347515583,0.01159491017460823,0.0026806294918060303,-0.028391651809215546,0.07802534103393555,0.0247182697057724,0.015237915329635143,0.0585598051548004
15,-0.021676016971468925,-0.05184420943260193,0.022049712017178535,0.0716760978102684,0.012230148538947105,-0.02903975173830986,0.07662308216094971,0.0248752161860466,-0.03
1320758163928986,0.0754188746213913,-0.011142146773636341,0.08274608105421066,-0.06463196873664856,-0.019060051068663597,-0.0028983852826058865,0.06051960214972496,0.019938
82842361927,-0.03413498401641846,-0.007048274390399456,0.03130858391523361,0.06394187361001968,-0.036422211676836014,0.016498226672410965,-0.03898994252085686,0.06549458205
69992,-0.009187917225062847,0.0009059568401426077,-0.026803413406014442,-0.08429041504859924,-0.0629635602235794,0.024776466190814972,-0.04363323003053665,0.000606483023148
03,0.017151158303022385,-0.0037425998598337173,0.014937913045287132,-0.0037476790603250265,0.00959209818392992,0.0759282335639,-0.042487457394599915,0.09383074939250946,-0.
04108098894357681,-0.027698984369635582,-0.006779097486287355,-0.01766856014728546,0.04822917655110359,0.013931900262832642,0.08081155270338058,-0.02508660964667797,-0.0242
65466257929802,-0.13060912489891052,0.006654598284512758,0.08353801816701889,0.026119712740182877,-0.011020924896001816,-0.01653185673058033,0.02535094879567623,0.053885102
27203369,-0.045240968465805054,0.04615947604179382,-0.040067125111818314,0.023362841457128525,-0.02610519342124462,0.04516012221574783,0.01607215404510498,-0.00524464016780
2572,-0.05709792301058769,0.058950599282979965,0.030080849304795265,0.004859373904764652,-0.0039050476625561714,-0.05989088490605354,0.03429501876235008,-0.0332792773842811
6,-0.005139076616615057,0.10384086519479752,0.05403359979391098,0.042810894548892975]]'
###   @13=''
###   @14=0.110937            
###   @15=0.188967            
###   @16=0.0710938           
###   @17=0.106808            
###   @18=32
###   @19=91
###   @20=147
###   @21='9bc8dd364b6d4f9f37d500c30beb7e323abc3855-06e0bc04706a'
###   @22='2024-04-30 16:00:00'
###   @23='2022-09-21 23:39:27'
###   @24='2023-11-30 17:10:15'
# Number of rows: 1
# at 22609
#240430 13:00:00 server id 1  end_log_pos 22640 CRC32 0x84d00cc9        Xid = 8363037
COMMIT/*!*/;
# at 22640
#240430 13:00:00 server id 1  end_log_pos 22682 CRC32 0x6524d88a        GTID 0-1-24670495 trans
/*!100001 SET @@session.gtid_seq_no=24670495*//*!*/; 

</details>
@cvinhaes cvinhaes added the bug Something isn't working label Apr 30, 2024
@alexislefebvre
Copy link
Contributor

You can format the error log by adding ``` before and after the text.

And/or hide the long logs by using a section: https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/organizing-information-with-collapsed-sections

@lastzero
Copy link
Member

lastzero commented May 2, 2024

@cvinhaes see https://mariadb.com/kb/en/using-and-maintaining-the-binary-log/ for how to limit the binary log size

Reading your issue description, it is not entirely clear if you use the default MariaDB image and configuration we provide with our Docker Compose example file(s) or if you run a custom MariaDB server?

@lastzero lastzero added technical-support Support request and removed bug Something isn't working labels May 2, 2024
@cvinhaes
Copy link
Author

cvinhaes commented May 3, 2024

Thank you for your reply. I run my own setup of MariaBD, the compose file is provided herein.

Now, my point is that the exact same configuration for the DB was not generating such amount of logs when using the Nov-28th version of photoprism. The binary log should not be the problem because it's been in used with this same DB configuration for quite some time and the default 30 days rotation was more than enough to contain it until upgrading Photoprism few days ago.

From the logs, it seems to me that some faces-related operation is in loop or is generating way more transactions than the previous version of Photoprism. The only change to the environment was the upgrade of Photoprism from Nov-28th to Apr-20th , which was done by redeploying the container with the new image. BTW, I have upgraded Photoprism many other times by following this exact same process with no issues until now.

Would you say that there is a way to understand what Photoprism is doing with faces and if there's a backlog to be processed?

Compose file for the database...

  db:
    image: mariadb
    restart: "unless-stopped"
    command: --transaction-isolation=READ-COMMITTED --log-bin=mysqld-bin --binlog-format=ROW --innodb-buffer-pool-size=512M --log_error=/var/lib/mysql/log/mysql_error.log
 --general_log_file=/var/lib/mysql/log/mysql.log --general_log=0
    volumes:
      - ./maria-db/data:/var/lib/mysql:rw
      - /srv/dev-disk-by-uuid-dd78971a-d609-4028-8a64-b971e31b2d29/_Backups/mariadb:/maria_backup:rw
      - ./maria-db/scripts:/maria_backup/scripts:rw
    environment:
      - TZ=America/Sao_Paulo
      - MYSQL_ROOT_PASSWORD=*************
      - MYSQL_PASSWORD=***********
      - MYSQL_DATABASE=photoprism
      - MYSQL_USER=photoprism
      - MYSQL_HOST=db:3306
    networks:
      - backend

@lastzero
Copy link
Member

lastzero commented May 3, 2024

I'm not aware of any faces related changes in our latest release. It could simply be that some data changed, like you assigned different names for the same face. Might be a typo? We already have an issue for improving the face recognition in general, see our public roadmap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
technical-support Support request
Projects
None yet
Development

No branches or pull requests

3 participants