installation on digital ocean

Any issue about installation and configuration of the Cyclos 4 version

Moderators: hugo, alexandre, rmvanarkel

Post Reply
tugumestephen
Posts: 34
Joined: Sun Feb 26, 2017 11:57 pm

installation on digital ocean

Post by tugumestephen »

Hello guys

does anyone here have installation manual for cyclos on digital ocean

on linux

please share

thanks
tugumestephen
Posts: 34
Joined: Sun Feb 26, 2017 11:57 pm

Re: installation on digital ocean

Post by tugumestephen »

guys no one has answer for this
alexandre
Posts: 913
Joined: Wed Sep 06, 2006 9:06 am

Re: installation on digital ocean

Post by alexandre »

Hi,

You can follow the normal linux server installation.

regards
Alexandre Caurrinhos
Cyclos development team.
tugumestephen
Posts: 34
Joined: Sun Feb 26, 2017 11:57 pm

Re: installation on digital ocean

Post by tugumestephen »

Hello alex

I folowed the normal installation on digital ocean and now am getting this error

FAIL - Application at context path [/cyclos] could not be started


when i try to sstart the app on tomcat dashboard

i renamed the properties file also to cyclos.properties

everything else i have left is as same

cyclos.datasource.provider = c3p0
cyclos.datasource.driverClass = org.postgresql.Driver
cyclos.datasource.jdbcUrl = jdbc:postgresql://localhost/cyclos4
cyclos.datasource.user = cyclos
cyclos.datasource.password = cyclos
cyclos.datasource.minPoolSize = 1
cyclos.datasource.maxPoolSize = 20
cyclos.datasource.acquireIncrement = 1
cyclos.datasource.idleConnectionTestPeriod = 60
cyclos.datasource.maxIdleTime = 3600
cyclos.datasource.testConnectionOnCheckout = false
cyclos.datasource.preferredTestQuery = select 1
cyclos.datasource.acquireRetryAttempts = 30
cyclos.datasource.acquireRetryDelay = 1000
cyclos.datasource.numHelperThreads = 5
cyclos.datasource.checkoutTimeout = 300000
cyclos.datasource.maxStatementsPerConnection = 100

do i maybe need to change and put datasource with IP address of my droplet or can i leave it as localhost

is there a way this can be solved

thanks
tugumestephen
Posts: 34
Joined: Sun Feb 26, 2017 11:57 pm

Re: installation on digital ocean

Post by tugumestephen »

Hello guys

does anyone have solution for this pleas eplease please
tugumestephen
Posts: 34
Joined: Sun Feb 26, 2017 11:57 pm

Re: installation on digital ocean

Post by tugumestephen »

i am getting the following


this is my error code



login as: root
root@64.227.18.21's password:
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-66-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

System information as of Sun Mar 15 07:14:38 UTC 2020

System load: 0.11 Processes: 160
Usage of /: 3.6% of 154.90GB Users logged in: 0
GNU nano 2.9.3 catalina.out Modified

at org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.finalize(EntityManagerFactoryDelegate.java:369)
at java.base/java.lang.System$2.invokeFinalize(System.java:2120)
at java.base/java.lang.ref.Finalizer.runFinalizer(Finalizer.java:87)
at java.base/java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:171)

15-Mar-2020 07:32:35.053 INFO [http-nio-8080-exec-101] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enabl$
2020-03-15T07:33:39.275Z WARN XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.fa$
2020-03-15T07:33:39.289Z ERROR ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring/bootstrap.xml]: In$
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778) ~[spring-beans-5.1$
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.7.$
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.7.RE$
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEAS$
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.7.RELEASE.jar:$
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEAS$
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-5.1.7.R$
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400) ~[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291) [spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) [spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4770) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5236) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1377) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:694) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:218) [tomcat8-catalina-8.5.39.jar:8.5.39]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:661) [tomcat8-servlet-api.jar:?]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [tomcat8-servlet-api.jar:?]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:136) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat8-websocket-8.5.39.jar:8.5.39]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat8-catalina-8.5.39.jar:8.5.39]
at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109) [tomcat8-catalina-8.5.39.jar:8.5.39]

^G Get Help ^O Write Out ^W Where Is ^K Cut Text ^J Justify ^C Cur Pos M-U Undo M-A Mark Text M-] To Bracket M-▲ Previous
^X Exit ^R Read File ^\ Replace ^U Uncut Text ^T To Spell ^_ Go To Line M-E Redo M-6 Copy Text M-W WhereIs NextM-▼ Next
login as: root
root@64.227.18.21's password:
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-66-generic x86_64)

* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage

System information as of Sun Mar 15 09:16:25 UTC 2020

System load: 0.0 Processes: 146
Usage of /: 3.3% of 154.90GB Users logged in: 1
Memory usage: 24% IP address for eth0: 64.227.18.21
Swap usage: 0%

* Canonical Livepatch is available for installation.
- Reduce system reboots and improve kernel security. Activate at:
https://ubuntu.com/livepatch

0 packages can be updated.
0 updates are security updates.


*** System restart required ***
Last login: Sun Mar 15 08:10:53 2020 from 105.179.7.78
root@ubuntu-s-4vcpu-8gb-nyc1-01:~# cd /var
root@ubuntu-s-4vcpu-8gb-nyc1-01:/var# ls
backups cache crash lib local lock log mail metrics opt run snap spool tmp
root@ubuntu-s-4vcpu-8gb-nyc1-01:/var# cd log
root@ubuntu-s-4vcpu-8gb-nyc1-01:/var/log# ls
alternatives.log auth.log cloud-init-output.log dist-upgrade gdm3 kern.log lastlog speech-dispatcher syslog.2.gz tallylog wtmp
apport.log auth.log.1 cloud-init.log dpkg.log hp kern.log.1 lxd syslog syslog.3.gz tomcat8
apt btmp cups fontconfig.log journal landscape postgresql syslog.1 sysstat unattended-upgrades
root@ubuntu-s-4vcpu-8gb-nyc1-01:/var/log# cd tomcat
-bash: cd: tomcat: No such file or directory
root@ubuntu-s-4vcpu-8gb-nyc1-01:/var/log# cd tomcat8
root@ubuntu-s-4vcpu-8gb-nyc1-01:/var/log/tomcat8# ls
catalina.2020-03-11.log.gz catalina.2020-03-15.log localhost.2020-03-11.log.gz localhost_access_log.2020-03-11.txt.gz localhost_access_log.2020-03-15.txt
catalina.2020-03-12.log.gz catalina.out localhost.2020-03-12.log.gz localhost_access_log.2020-03-12.txt.gz
catalina.2020-03-13.log.gz catalina.out.1 localhost.2020-03-13.log.gz localhost_access_log.2020-03-13.txt.gz
catalina.2020-03-14.log.gz catalina.out.save localhost.2020-03-15.log localhost_access_log.2020-03-14.txt.gz
root@ubuntu-s-4vcpu-8gb-nyc1-01:/var/log/tomcat8# sudo nan catalina.out
sudo: nan: command not found
root@ubuntu-s-4vcpu-8gb-nyc1-01:/var/log/tomcat8# sudo nano catalina.out
GNU nano 2.9.3 catalina.out

at org.postgresql.core.v3.ConnectionFactoryImpl.tryConnect(ConnectionFactoryImpl.java:91) ~[postgresql-42.2.6.jar:42.2.6]
at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:192) ~[postgresql-42.2.6.jar:42.2.6]
at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:49) ~[postgresql-42.2.6.jar:42.2.6]
at org.postgresql.jdbc.PgConnection.<init>(PgConnection.java:195) ~[postgresql-42.2.6.jar:42.2.6]
at org.postgresql.Driver.makeConnection(Driver.java:458) ~[postgresql-42.2.6.jar:42.2.6]
at org.postgresql.Driver.connect(Driver.java:260) ~[postgresql-42.2.6.jar:42.2.6]
at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:175) ~[c3p0-0.9.5.4.jar:0.9.5.4]
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:220) ~[c3p0-0.9.5.4.jar:0.9.5.4]
at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:206) ~[c3p0-0.9.5.4.jar:0.9.5.4]
at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:203) ~[c3p0-0.9.5.4.jar$
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1176) ~[c3p0-0.9.5.4.jar:0.9.5.4]
at com.mchange.v2.resourcepool.BasicResourcePool.doAcquireAndDecrementPendingAcquiresWithinLockOnSuccess(BasicResourcePool.java:1163) ~[c3p0-0.9.5.4.jar:0.9.5.$
at com.mchange.v2.resourcepool.BasicResourcePool.access$700(BasicResourcePool.java:44) ~[c3p0-0.9.5.4.jar:0.9.5.4]
at com.mchange.v2.resourcepool.BasicResourcePool$ScatteredAcquireTask.run(BasicResourcePool.java:1908) ~[c3p0-0.9.5.4.jar:0.9.5.4]
at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:696) ~[mchange-commons-java-0.2.15.jar:0.2.15]
15-Mar-2020 07:33:39.297 SEVERE [http-nio-8080-exec-101] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details wil$
15-Mar-2020 07:33:39.297 SEVERE [http-nio-8080-exec-101] org.apache.catalina.core.StandardContext.startInternal Context [/cyclos] startup failed due to previous errors
15-Mar-2020 08:08:17.641 INFO [http-nio-8080-exec-119] org.apache.catalina.util.LifecycleBase.stop The stop() method was called on component [StandardEngine[Catalina].$
15-Mar-2020 08:08:18.209 INFO [http-nio-8080-exec-119] org.apache.catalina.startup.HostConfig.undeploy Undeploying context [/cyclos]
15-Mar-2020 09:33:56.476 INFO [http-nio-8080-exec-118] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/var/lib/tomcat8/webapps/cyc$
15-Mar-2020 09:34:04.384 WARNING [http-nio-8080-exec-118] org.apache.jasper.servlet.TldScanner.scanJspConfig Failed to process TLD with path [/WEB-INF/taglibs/c.tld] a$
15-Mar-2020 09:34:04.385 WARNING [http-nio-8080-exec-118] org.apache.jasper.servlet.TldScanner.scanJspConfig Failed to process TLD with path [/WEB-INF/taglibs/fn.tld] $
15-Mar-2020 09:34:04.450 INFO [http-nio-8080-exec-118] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enabl$
2020-03-15T09:35:09.038Z WARN XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.fa$
2020-03-15T09:35:09.055Z ERROR ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [spring/bootstrap.xml]: In$
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1778) ~[spring-beans-5.1$
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) ~[spring-beans-5.1.7.$
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:515) ~[spring-beans-5.1.7.RE$
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:320) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEAS$
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) ~[spring-beans-5.1.7.RELEASE.jar:$
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:318) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:199) ~[spring-beans-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1105) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEAS$
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867) ~[spring-context-5.1.7.R$
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:549) ~[spring-context-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:400) ~[spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:291) [spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) [spring-web-5.1.7.RELEASE.jar:5.1.7.RELEASE]
Post Reply