[ 
https://issues.apache.org/jira/browse/SINGA-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15201563#comment-15201563
 ] 

Anh Dinh commented on SINGA-150:
--------------------------------

an easy fix is to comment out the `InitGoogleLogging()` method in 
`singa_scheduler.cc`. However, this error should not have occured in the first 
place, because this current `singa_scheduler.cc` was not up to date when it was 
merged to the main branch. 

currently, Docker build is part of the main branch, so to build a Docker 
container for SINGA, there're several steps:
1. clone from github
2. when doing docker build:
    2.1. install dependencies
    2.2 then inside each container, it then clone from github. 

These circular steps (1) and (2.2) can be the source of 
confusion/complexity/error when testing and merging a new Docker-based feature 
to the main branch. 

I'll add in a fix for this ticket which also changes the Docker build process. 


> "called InitGoogleLogging() twice!" error
> -----------------------------------------
>
>                 Key: SINGA-150
>                 URL: https://issues.apache.org/jira/browse/SINGA-150
>             Project: Singa
>          Issue Type: Bug
>         Environment: Ubuntu 12.04.5 LTS (GNU/Linux 3.13.0-83-generic x86_64)
>            Reporter: Chen Peng
>
> When launching SINGA on pseudo-distributed mode (single node) according to 
> http://singa.apache.org/docs/docker.html and train it according to 
> http://singa.apache.org/docs/mesos.html, two nodes (node0 and node1) are 
> created.
> When executing the command `./scheduler /root/incubator-singa/│install.sh  
> zookeeper-3.4.6  zookeeper-3.4.6.tar.gz                        
> examples/cifar10/job.conf -scheduler_conf ./scheduler.conf -singa_conf 
> /roo│root@node1:~/incubator-singa/thirdparty# uname                           
>   
> t/incubator-singa/conf/singa.conf ', the following error is displayed:
> I0317 23:08:19.499140   298 singa_scheduler.cc:413] Scheduler initialized
> F0317 23:08:19.503722   298 utilities.cc:317] Check failed: !IsGoogleLoggin
> gInitialized() You called InitGoogleLogging() twice!
> *** Check failure stack trace: ***
>     @     0x7f9178664612  google::LogMessage::Fail()
>     @     0x7f917866455e  google::LogMessage::SendToLog()
>     @     0x7f9178663f60  google::LogMessage::Flush()
>     @     0x7f9178666e74  google::LogMessageFatal::~LogMessageFatal()
>     @     0x7f917866ac21  google::glog_internal_namespace_::InitGoogleLoggi
> ngUtilities()
>     @     0x7f917866717f  google::InitGoogleLogging()
>     @     0x7f9177ccff6d  mesos::internal::logging::initialize()
>     @     0x7f9177eba176  mesos::MesosSchedulerDriver::initialize()
>     @     0x7f9177eba95c  mesos::MesosSchedulerDriver::MesosSchedulerDriver
> ()
>     @           0x408c3d  main
>     @     0x7f9174109ec5  (unknown)
>     @           0x408669  (unknown)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to