[dancer-users] log file stop recording

Wanjuan Yang wy1 at sanger.ac.uk
Wed Oct 5 16:41:23 BST 2016


Hi Clive & Kadir,

Thanks a lot for your advice! I found the problem now, after run lsof
I found I was running on production environment, although I did check the production.log before and it wasn’t updating either.
But anyway, when I switch back to development environment, the development.log start updating now.

Thank again,

Wendy



From: dancer-users <dancer-users-bounces at dancer.pm> on behalf of Clive Eisen <clive at hildebrand.co.uk>
Reply-To: Perl Dancer users mailing list <dancer-users at dancer.pm>
Date: Wednesday, October 5, 2016 at 3:38 PM
To: Perl Dancer users mailing list <dancer-users at dancer.pm>
Subject: Re: [dancer-users] log file stop recording

run lsof and see what files the process has open

--
Clive Eisen
GPG: 75056DD0






On 5 Oct 2016, at 15:33, Wanjuan Yang <wy1 at sanger.ac.uk<mailto:wy1 at sanger.ac.uk>> wrote:

I did restart the server many times since I delete the log file and create a new one.

From: dancer-users <dancer-users-bounces at dancer.pm<mailto:dancer-users-bounces at dancer.pm>> on behalf of Clive Eisen <clive at hildebrand.co.uk<mailto:clive at hildebrand.co.uk>>
Reply-To: Perl Dancer users mailing list <dancer-users at dancer.pm<mailto:dancer-users at dancer.pm>>
Date: Wednesday, October 5, 2016 at 3:29 PM
To: Perl Dancer users mailing list <dancer-users at dancer.pm<mailto:dancer-users at dancer.pm>>
Subject: Re: [dancer-users] log file stop recording

Did you restart after deleting the file?

--
Clive Eisen
GPG: 75056DD0







On 5 Oct 2016, at 15:14, Wanjuan Yang <wy1 at sanger.ac.uk<mailto:wy1 at sanger.ac.uk>> wrote:

Hi Kadir,

Many thanks for your reply!

The development.yml does have the following:

# the logger engine to use
#console: log messages to STDOUT (your console where you started the
#          application server)
# file:    log message to a file in log/
logger: "file"

# the log level for this environment
# core is the lowest, it shows Dancer's core log messages as well as yours
# (debug, info, warning and error)
log: "debug"

# should Dancer consider warnings as critical errors?
warnings: 0

# should Dancer show a stacktrace when an error is caught?
show_errors: 1

I check the space with
df -h /data/
Filesystem             Size  Used Avail Use% Mounted on
/dev/mapper/apps-data   30G  3.7G   27G  13% /data

So it looks like still have space.

I initially delete the old file when I found it is not updating. Then I manually create a new empty file development.log and
I change the log file to have –rwxrwxrwx permission, but still it doesn’t seem to writing anything in it.

What problem it could be?

Many thanks,
Wendy


On 10/5/16, 1:52 PM, "dancer-users on behalf of Kadir Beyazlı" <dancer-users-bounces at dancer.pm<mailto:dancer-users-bounces at dancer.pm> on behalf of kadirbeyazli at gmail.com<mailto:kadirbeyazli at gmail.com>> wrote:

Hi Wanjuan

On Wed, Oct 5, 2016 at 1:31 PM, Wanjuan Yang <wy1 at sanger.ac.uk<mailto:wy1 at sanger.ac.uk>> wrote:



Hi,



I want to use log file to monitor what is happening on the website, but I found the log file is not recording any more.



Does anyone know where is to set the log file to keep the log? If it keep going, do we need to clear it regularly otherwise it full up the space?

I am setting log options at following folders

appdir/enviroments/developement.yml
appdir/enviroments/production.yml

Would you please check if 'logger' is set to 'file'? If yes, perhaps
one of following may be:

There is not enough diskspace
Permission rights of log file changed






Many thanks,

Wendy

-- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE.

_______________________________________________
dancer-users mailing list
dancer-users at dancer.pm<mailto:dancer-users at dancer.pm>
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users



--
Kadir Beyazlı
Computer Engineer
GSM : +90 535 821 50 00
_______________________________________________
dancer-users mailing list
dancer-users at dancer.pm<mailto:dancer-users at dancer.pm>
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users





--
The Wellcome Trust Sanger Institute is operated by Genome Research
Limited, a charity registered in England with number 1021457 and a
company registered in England with number 2742969, whose registered
office is 215 Euston Road, London, NW1 2BE.
_______________________________________________
dancer-users mailing list
dancer-users at dancer.pm<mailto:dancer-users at dancer.pm>
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users

-- The Wellcome Trust Sanger Institute is operated by Genome Research Limited, a charity registered in England with number 1021457 and a company registered in England with number 2742969, whose registered office is 215 Euston Road, London, NW1 2BE. _______________________________________________
dancer-users mailing list
dancer-users at dancer.pm<mailto:dancer-users at dancer.pm>
http://lists.preshweb.co.uk/mailman/listinfo/dancer-users




-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.preshweb.co.uk/pipermail/dancer-users/attachments/20161005/4879fdf4/attachment-0001.html>


More information about the dancer-users mailing list