Somebody seems to be playing with stuff on code.orgmode.org: every once in a while when I look at the repo (e.g by visiting https://code.orgmode.org/bzg/org-mode), I get a literal HTML page, instead of a rendered one. That seems to be caused by some extra text at the beginning: ,---- | 2020/01/22 23:14:06 [TRACE] Session ID: 6961d7733328363f | 2020/01/22 23:14:06 [TRACE] CSRF Token: CMr9jiGTHiieFuGUEVds1J-EeOg6MTU3OTcyODI2MzgzMDMwMzA3OA== | HTTP/1.0 200 OK | Content-Type: text/html; charset=UTF-8 | Date: Wed, 22 Jan 2020 23:14:07 GMT | | <!DOCTYPE html> | <html> | ... | </html> `---- The TRACE lines seem to indicate that somebody is trying to debug something, but it's killing the website. Has anybody seen that? Does anybody know what is going on? Thanks! -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler
Hi, Gogs config does the trace automatically due to a configuration inheritance issue (cf. https://github.com/gogs/gogs/issues/5007). I added the following lines to the custom/conf/app.ini file and restarted gogs: [log.file] LEVEL = Info Btw. the trace was afaik on all the time. Dunno why it started to show up in the web interface only now. Best regards Robert On Wed, 22 Jan 2020 18:37:38 -0500 Nick Dokos <ndokos@gmail.com> wrote: > Somebody seems to be playing with stuff on code.orgmode.org: every > once in a while when I look at the repo (e.g by visiting > https://code.orgmode.org/bzg/org-mode), I get a literal HTML page, > instead of a rendered one. That seems to be caused by some extra text > at the beginning: > > ,---- > | 2020/01/22 23:14:06 [TRACE] Session ID: 6961d7733328363f > | 2020/01/22 23:14:06 [TRACE] CSRF Token: > CMr9jiGTHiieFuGUEVds1J-EeOg6MTU3OTcyODI2MzgzMDMwMzA3OA== | HTTP/1.0 > 200 OK | Content-Type: text/html; charset=UTF-8 > | Date: Wed, 22 Jan 2020 23:14:07 GMT > | > | <!DOCTYPE html> > | <html> > | ... > | </html> > `---- > > The TRACE lines seem to indicate that somebody is trying to debug > something, but it's killing the website. Has anybody seen that? Does > anybody know what is going on? > > Thanks!
Hi Robert, thanks a lot for fixing this. I will take some time to update gogs this week. All best, -- Bastien
Robert Klein <roklein@roklein.de> writes: > Hi, > > Gogs config does the trace automatically due to a configuration > inheritance issue (cf. https://github.com/gogs/gogs/issues/5007). > > I added the following lines to the custom/conf/app.ini file and > restarted gogs: > > > [log.file] > LEVEL = Info > > > Btw. the trace was afaik on all the time. Dunno why it started to show > up in the web interface only now. > I was seeing all sorts of problems last night, but it seems to work now. The problems sometimes manifested themselves with TRACE output that complained about "pipe2: too many file descriptors open" (this is from memory, so take it with the appropriate grain of salt) and sometimes by getting a 500 page. Thanks for fixing it! > > On Wed, 22 Jan 2020 18:37:38 -0500 > Nick Dokos <ndokos@gmail.com> wrote: > >> Somebody seems to be playing with stuff on code.orgmode.org: every >> once in a while when I look at the repo (e.g by visiting >> https://code.orgmode.org/bzg/org-mode), I get a literal HTML page, >> instead of a rendered one. That seems to be caused by some extra text >> at the beginning: >> >> ,---- >> | 2020/01/22 23:14:06 [TRACE] Session ID: 6961d7733328363f >> | 2020/01/22 23:14:06 [TRACE] CSRF Token: >> CMr9jiGTHiieFuGUEVds1J-EeOg6MTU3OTcyODI2MzgzMDMwMzA3OA== | HTTP/1.0 >> 200 OK | Content-Type: text/html; charset=UTF-8 >> | Date: Wed, 22 Jan 2020 23:14:07 GMT >> | >> | <!DOCTYPE html> >> | <html> >> | ... >> | </html> >> `---- >> >> The TRACE lines seem to indicate that somebody is trying to debug >> something, but it's killing the website. Has anybody seen that? Does >> anybody know what is going on? >> >> Thanks! > > > -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler