From: Peter L. (JIRA) <ji...@jf...> - 2007-08-18 03:53:10
|
Backup process dumps backup to stdout/stderr -------------------------------------------- Key: RTFACT-221 URL: http://www.jfrog.org/jira//browse/RTFACT-221 Project: Artifactory Issue Type: Bug Affects Versions: 1.2.2 Environment: Redhat Linux, JDK 1.6.0_02, tomcat 6.0.13, jetty Reporter: Peter Lynch Assignee: Yoav Landman Priority: Critical I am running artifactory on Tomcat 6.0.13, JDK 1.6.0_02, although please be= aware I switched to this only after running on Jetty dist with same proble= m. In a nutshell the entire backup of all the repos gets dumped to either stdo= ut/stderr ( haven't figured out which) when the automated backup is perform= ed. I also notice that the backup to the directory I specify in artifactory= .config.xml also gets created fine at the same time. I had been noticing the catalina.out file growing huge after a few days run= ning artifactory, so much that I was running out of disk space. I have this in artifactory.config.xml <backupDir>/apps/artifactory/home/backup</backupDir> <backupCronExp>0 0 23 * * ?</backupCronExp> Tonight I watched the drama unfold in real time. The backed up repos get backed up fine in a subdir of the /apps/artifactory= /home/backup home directory. I watched the disk size grow as the files were= being dumped there. At the same time I tailed the standard catalina.out file for tomcat. This f= ile is created by tomcat's catalina.sh startup script with something like t= his: "$_RUNJAVA" $JAVA_OPTS $CATALINA_OPTS \ -Djava.endorsed.dirs=3D"$JAVA_ENDORSED_DIRS" -classpath "$CLASSPATH" = \ -Dcatalina.base=3D"$CATALINA_BASE" \ -Dcatalina.home=3D"$CATALINA_HOME" \ -Djava.io.tmpdir=3D"$CATALINA_TMPDIR" \ org.apache.catalina.startup.Bootstrap "$@" start \ >> "$CATALINA_BASE"/logs/catalina.out 2>&1 & You see it redirects stderr and stdout to catalina.out Don't focus too much= on this - Jetty did the same thing and because of my lack of experience wi= th Jetty I assumed I just friggerred up the Jetty logging config. While tailing the catalina.out, what I see is what looks like binary data s= treaming by as fast as can be...here is some example content... /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:created=3D2007-07-26T10:15:14.482-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/a= rtifactory:modifiedBy=3Ddbrower /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/a= rtifactory:lastUpdated=3D2007-07-26T10:15:14.482-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:lockOwner=3Dsuperuser /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:primaryType=3Dartifactory:file /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/a= rtifactory:name=3Djta-1.0.1B.jar.md5 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:content /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:content/jcr:uuid=3Dfd9e3b0c-f47a-45f7-9274-15bbbb495c54 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:content/jcr:data=3Dc6e3e528816227b97f6b21f709641f8f /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:content/jcr:encoding=3D /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:content/jcr:mimeType=3Dapplication/octet-stream /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:content/jcr:lastModified=3D2007-07-05T03:23:45.000-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.md5/j= cr:content/jcr:primaryType=3Dnt:resource /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:uuid=3D247c32c3-82cb-4c0c-b2a8-e50cf577e721 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:lockIsDeep=3Dfalse /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= artifactory:repoKey=3Dremote-java.net-m2-cache /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:created=3D2007-07-26T10:15:14.487-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= artifactory:modifiedBy=3Ddbrower /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= artifactory:lastUpdated=3D2007-07-26T10:15:14.487-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:lockOwner=3Dsuperuser /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:primaryType=3Dartifactory:file /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= artifactory:name=3Djta-1.0.1B.jar.sha1 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:content /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:content/jcr:uuid=3Deb1b91ec-050c-4fce-958e-9ea587d6abf0 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:content/jcr:data=3D3dd157a4f4fe115ac5d165d6c21463d0ce9e3c7b /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:content/jcr:encoding=3D /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:content/jcr:mimeType=3Dapplication/octet-stream /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:content/jcr:lastModified=3D2007-07-05T03:23:45.000-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar.sha1/= jcr:content/jcr:primaryType=3Dnt:resource /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:u= uid=3Dd08faad7-c0e0-4e7c-b816-595d58fb1341 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:l= ockIsDeep=3Dfalse /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/artif= actory:repoKey=3Dremote-java.net-m2-cache /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:c= reated=3D2007-07-26T10:15:14.462-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/artif= actory:modifiedBy=3Ddbrower /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/artif= actory:lastUpdated=3D2007-07-26T10:15:14.491-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:l= ockOwner=3Dsuperuser /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:p= rimaryType=3Dartifactory:file /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/artif= actory:name=3Djta-1.0.1B.jar /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:c= ontent /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:c= ontent/jcr:uuid=3Da420efd7-d50d-48b7-ad87-33cffd886c38 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:c= ontent/jcr:data=3DPK ?r_-javax/UT ??=3D??=3DUx?PK ?r_-javax/transaction/UT ??=3D??=3DUx?P?r_-??l?I0javax/transaction/H= euristicCommitException.classUT ??=3D??=3DUx?u?MJA?_?g?A]????#d`p".?????= ??L?tz$??*??x(IU?^??z?.?????G h??8??!DCvn ????1*?-?3ag?bf?-?9?O^????i??= ?7H?e?s{? h-=C5=BEh"p"?????/??(?????\?d7fo???d?e ????.z??zj ?Y4??'??6? P?r_-"vp??G/javax/transaction/HeuristicMixedExcep= tion.classUT ??=3D??=3DUx?u?MNA?_?3## ?Q??`?@??`\??f?2?c?3?rE??p(c1???W]????}???????Q??-B4b?aL????M??????/?????Z?= ?????tm?*??nu??d?>???P???7???v9)3?8wC?6QG?? ??(???L??(??w?.???? H????J%????&=C2=81h"p&??=3D???/??hp?E?/!dG?d??? P?r_-???M2javax/transaction/Heurist= icRollbackException.classUT ??=3D??=3DUx?u??J1??]?V+H=3D?C???J?/?x(Z??YI= ????T????R??M????0???/#%??)r?0F?]Yg?5??<j7?!?????53?Qe9;???E??4Wn?N??nv)?dZ= ?^?;+P???.??"?3??Km?-?H?M??b,??[(-H??p?;}?*?"???Yc?z\?k}?}??0?9r??y???+T??L= v?I6c?P?r_-2Lr?T3javax/transaction/InvalidTransactionException.classUT ?= ?=3D??=3DUx?}?MJA?_?g&????q#?`?FE ?;?&???H????? ??aD??.??b?u?a????y??ao??Ze?-?4x?7H????? t>vk????k??` w?I?4??PG$?$\??Q?U?? '?~?[?h?"?????I?* ???????[??k?p??o~= ???$?_mQ??2y?NR???P?r_-m&??C-javax/transaction/NotSupportedException.classU= T ??=3D??=3DUx?m??N1????(&?x/"&?h?<.k???!5?nj??Z?H8?<?a?I?=3D|3???f???? ? jh???8??"DO??L?????= ?5?56VO.?;]tQ???d,k?.W?Z?o@??NX?6Gnx??e_^?????|?I???P?r_-?qe??;)javax/trans= action/RollbackException.classUT ??=3D??=3DUx?;?o?>=3D.??????????f???Y= b??,????????????W???Z??????J,K??I?K?.)??K?i? ?/-JNu?) ???IJL?v?HN-(????i?a`e`?? ? ? ????d?} M? ?? ? ?@??#?H ??)iF ????q#????$???$?Z$??9???? 6-?? L??e?*?"\`k?P?r_-l?= +javax/A??K?%??Lt1}?^??PMga?{??/?O????=C3=B3?<!t?7Ad?????&g?g?4O?? L?U?;?"?= ???0?"B_?k?Z???0???V+; K_EJ/?X??BOq?wW?:?XZ?B?p??W??kGYm?o?k??-?&?H)'????u???3???{vS????e'??!??= 6????S?>?I?i+? ?l? ?P#?? ???p????8?Q?p????x??-?H?;???{??????P?r_-_uk??'javax/transaction/Syn= chronization.classUT ??=3D??=3DUx?]?? ?0E??:????Apr(???U[j"1??i~?%&?? ????y???r=C2=AC??:^??g?ZC?a????&ye/N??0??F?5= ?CE???U1n?;e?J?B??a9:?Wf/?u??gB?xI?@ ?" ? "?? P?r_-G???'javax/transaction/SystemException.classUT ??=3D??=3DU= x?]?AK?@??&Mbbl?'A??4B??E ?K??6.e???6-?gy(??8?^??????????>?9??1????/?.?]?"?}?J?? v?{fh?UZ#???b6??t??+_= ?t??$?J-?? ?CsY??x???d??R??W?x+e??&b??0? ?!2?*-5Ws???1??3?]D??CK???l?Qw?^QU?d?Q??,?S ?UxX????\l`??1??U?A?'5?????6???qI?"?Io ?_P?r_-??7?j#javax/transaction/Transa= ction.classUT ??=3D??=3DUx??Q?N1=3DU?"*?q?$???|?H?!c?o?6?`?13????GouX???= =3D??}?x}p?m?U?5G???o&?7 = ??TO???c?c?c????Qb??+???J?a;??a??)?E?5b!????T?wdT?O???F?????U?B?<JRQ?= ( ?a? ?"?= *??(?!?#C.V?*?j????_??|MS?Q?6??8?cHD?Z?[k4????Zz=3D??f(???U;???????!???1???= J??t????j?<????bg?^?Z}???0{x?? )????=C2=A1??42?!ns ??"?`i?: ??|??4?,`q?n??m???j?? >PK ?r_-javax/transaction/xa/UT ??=3D??=3DUx?P?r_-????&%javax/transaction/x= a/XAResource.classUT ??=3D??=3DUx???MS?@?e?|AE??6??/G.dJ??&a??A<8KX?`= ?t????????r|606D = ?~?}^??2?m?ut?1 ?u?(?x???p((| P?n?h.?c????=3D?v?=3D?=3D???H?6v???[??= {?k?=3D??g=3D?y???k)??1l??1???`???N?????Or?UQ8;???? #????3>??G)? ??????Cu?#= _ ?NxK?????6S??????WT??E?= ??G^???hK?W[R???M??"???/6?C? ??k6?l%~|&y?<?c$qq?M????3p}????H? ?$??m????5W!= ? +??G'?st*|????? ????g` (T??HSPCV \G?.py?3?s??<_????|??w? |?^??#/]??x?<B#O???j?4?q?<??%??J?9?(??%????Q2?.?g???= ?P?r_-*???$javax/transaction/xa/Xid.classUT ??=3D??=3DUx?U?MNA?_1#??(?0z= ??W?Q ?` ???= Zl?N'C??l.<??"? ?????UW???q?,B??,????n?? ??.?z??3?B???x?4???Z????'+B???????[= ???m9??e%???p!<??O 4?l?)N?rNP?r_-pn???&javax/transaction/xa/XAException.classUT??????=3D??=3DU= x?]?kS?@??R??=3DF"*??V?^?i?@?4a???0"1uB??o??a????w?9???t:????{v????/_`??? 8????^>?0yW???V?{}z9<?xae?;?? \? ? ?????k?iQ???5?r?M?o?Ki?._??G?AZZ??????l ?u? 2?f?;?.??x5Whv???tK?m?Qd;Es]h.??= =3D??7???^??n|2?F??d+R4w?t5w????l??? Y??V??D?^???(r!??Ehl??H?#???Yd~?? = 4??6???F?3?[?A?|s4??ipr?$??0??2Hd?vt6N|? B????#?;8E3??N??^?? ??J??K? k?%]*W?C-?? ?S;??T?r8GUx/hX?@?z9N???D^x?R._??J??= ?v?-L?_? [9 ??t????H#?qF?>?~????|Y?!?+ #_U??u?G?7??c ?@???-?? ?#O(<?|G??????@?,??9?i?g?g?C?+??=C2=8F??(????? =20 /B?x?8.???+?o#w?N,??(?=C3=9C??f|=3D?I???=3D??G?+??|??O???h??}s??>?"??_?P?r_= -}?~??u*javax/transaction/TransactionManager.classUT ??=3D??=3DUx????N?@= ???Mh ?@iK[?i"y?^??T?T#?7??Z??#?%??>@ 1 &q0??V?????j???? ??%??)?+v?J`?d???4?_%6?a??IlIlK?H?J? 4#r?S.???=3D?+??J? ???v???Z?Q?M?n ????<&??????@#K???%?.3X?3#\??? ??=3D????R2?E?4?B:?[??J?U?"= ??,{/?T????D??5???[??g?|8L3G??=3D?-U?`l?%f??<.^?:U??L[??s=3D??z????t=C3=80B= ????f{?P??T"???z?2zP?? _????5~^?q<?Q??:$k???b??????ZX*r???2?>Q?a?P?ZT?M\???= ^}????\?'?g{????s?P?r_-?-B~?V4javax/transaction/TransactionRequiredExceptio= n.classUT ??=3D??=3DUx?}??N1???.,(^0DO?1r?8F??k?-?>?|$4?zcyZ?Kv?D??????= =3D|3???e???;?1N4? ???N6?U???k5????$?t??? ???)?K?xu???)??(H?P;?3?<aP???F= ?8/<????.? ? +Dc??RIjs??ICh?&?}??Vx??L????????$??P?r_-???K?'javax/transaction/UserTransa= ction.classUT ??=3D??=3DUx?}?]O?0??"???_??x!$?? ?\(?C?Gm?b???3????-?B\?l?y????~~??Mq@qHPqO[??3A?f??D?0?)?(? ,?P'-?S?3?s= ?bJ9r?+9#(y\9?UI<??'hjg?A?2?~(|&? ???;a1~+$'h<?<?????\???V???#?cK7???h??p?~= ?!TN2????/??8??C?r_-?CY??Z6javax/transaction/TransactionRolledbackException= .classUT ??=3D??=3DUx?}??N1 ????=3D eA*H???a? ?*??b?]?*p?????S%??B?'>;?????wc?eh?+??b7E??\Zg??9<?'????z????M??d= g8y?/Z??-?,????*?? t2?=3D?"Z?,?"????0Ob?eBm$"=C2=B9k??????jj*?O 4?cr Y=C5=A1?m8?G+'?-?1??-5?= ???J2:???d?^??PK ?Ajavax/UT??=3DUxPK ???avax/javax/transaction/Synchronization.classUT??=3DUxP?r_-G???'?;)&??C- ??vax/transaction/SystemException.classUT??=3DUxP?r_-??7?j# javax/transaction/Transaction.classUT??=3DUxPK ??hjavax/transaction/TransactionRolledbackException.classUT??=3DUxPK????K?' /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:c= ontent/jcr:encoding=3D /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:c= ontent/jcr:mimeType=3Dapplication/octet-stream /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:c= ontent/jcr:lastModified=3D2007-07-05T03:23:45.000-04:00 /remote-java.net-m2-cache/javax/transaction/jta/1.0.1B/jta-1.0.1B.jar/jcr:c= ontent/jcr:primaryType=3Dnt:resource /remote-java.net-m1-cache /remote-java.net-m1-cache/jcr:lockIsDeep=3Dfalse /remote-java.net-m1-cache/artifactory:repoKey=3Dremote-java.net-m1-cache /remote-java.net-m1-cache/jcr:created=3D2007-07-20T11:28:47.679-04:00 /remote-java.net-m1-cache/artifactory:modifiedBy=3D /remote-java.net-m1-cache/jcr:lockOwner=3Dsuperuser /remote-java.net-m1-cache/jcr:primaryType=3Dartifactory:folder Further evidence the backup is being dumped to stdout is that at the end of= the backup, the log file size closely matches to total size on disk of the= backed up repos. Also as you can see the output is not prefixed by any log= ging formatting, implying that it is being written directoy to stdout and n= ot through log4j. My repos total size is around 630MB. A couple days of backups and my disk i= s full. Workaround is to not redirect stdout/stderr to catalina.out. --=20 This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= p://www.jfrog.org/jira//secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |