Comments (8)
You may try using this project to generate Docker Compose with HTTPs enabled as sample:
https://github.com/alfresco/alfresco-docker-installer
It includes the right configuration for every service.
from acs-ingress.
i am able to login. but page is redirecting to http after entering credentials. if i modify the url with https, it is opening the dashboard
However after that, solr is giving below error. any extra config is required for solr? if so how to provide .key and .cert files to solr?
solr6_1 | 2021-04-22 06:04:00.023 ERROR (org.alfresco.solr.AlfrescoCoreAdminHandler@30feffc_Worker-8) [ ] o.a.s.t.ShardStatePublisher Unable to publish this node state. A failure condition has been met during the outbound subscription message encoding process. See the stacktrace below for further details.
solr6_1 | java.net.ConnectException: Connection refused (Connection refused)
thank you
from acs-ingress.
thank you for the quick reply.
i have followed steps from https://github.com/alfresco/alfresco-docker-installer
given below input
? Which ACS version do you want to use? 6.2
? How may GB RAM are available for Alfresco (12 is minimum required)? 12
? Do you want to use HTTPs for Web Proxy? Yes
? What is the name of your server? testalf.com
? What HTTPs port do you want to use (all the services are using the same port)? 443
? Do you want to use FTP (port 2121)? No
? Do you want to use MariaDB instead of PostgreSQL? No
? Are you using different languages (this is the most common scenario)? Yes
? Do you want to create an internal SMTP server? No
? Do you want to create an internal LDAP server? No
? Select the addons to be installed: Google Docs 3.1.0, JavaScript Console 0.6, Order of the Bee Support Tools 1.0.0.0, Share Site Creators 0.0.7
? Are you using a Windows host to run Docker? No
? Do you want to use a start script? Yes
and started the alfresco
when i try to access "https://testalf.com" in the google chrome, its showing "site cant be reached"
am i missing something
from acs-ingress.
I guess you have an entry in "/etc/hosts" for 127.0.0.1 testalf.com
right?
from acs-ingress.
yes, i modified /etc/hosts/ already. still getting error. please find the error details below
i checked docker logs for container dockercompose_alfresco
and found below error
2021-04-23 12:17:53,411 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.CustomEditorConfigurer#0' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'customPropertyEditorRegistrar' while setting bean property 'propertyEditorRegistrars' with key [0]; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customPropertyEditorRegistrar' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'NamespaceService' while setting bean property 'namespaceService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dictionaryDAO' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'tenantService' while setting bean property 'tenantService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantService' defined in URL [jar:file:/usr/local/tomcat/webapps/alfresco/WEB-INF/lib/alfresco-repository-7.134.1.jar!/alfresco/mt/mt-context.xml]: Cannot resolve reference to bean 'tenantAdminDAO' while setting bean property 'tenantAdminDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tenantAdminDAO' defined in class path resource [alfresco/dao/dao-context.xml]: Cannot resolve reference to bean 'repoSqlSessionTemplate' while setting bean property 'sqlSessionTemplate'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoSqlSessionTemplate' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot resolve reference to bean 'repoSqlSessionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'repoSqlSessionFactory' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot resolve reference to bean 'dialectResourceLoader' while setting bean property 'resourceLoader'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialectResourceLoader' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Cannot create inner bean 'org.springframework.beans.factory.config.PropertyPathFactoryBean#7ccdbd0d' of type [org.springframework.beans.factory.config.PropertyPathFactoryBean] while setting bean property 'dialectClass'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.beans.factory.config.PropertyPathFactoryBean#7ccdbd0d' defined in class path resource [alfresco/ibatis/ibatis-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dialect': FactoryBean threw exception on object creation; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection; nested exception is org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The connection attempt failed.)
and also, i had to comment below command in alfresco/Dockerfile because it gave error. does this cause any issue?
#RUN yum -y update &&
# yum -y install wget &&
# yum clean all &&
# set -x
# && wget https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/api-
explorer/${API_EXPLORER_TAG}/api-explorer-${API_EXPLORER_TAG}.war
# -O /usr/local/tomcat/webapps/api-explorer.war
Error i got for above yum command is
One of the configured repositories failed (Unknown),
and yum doesn't have enough cached data to continue. At this point the only
safe thing yum can do is fail. There are a few ways to work "fix" this: ...
Cannot find a valid baseurl for repo: base/7/x86_64
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container error was
12: Timeout on http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=container: (28, 'Resolving timed out after 30538 milliseconds')
ERROR: Service 'alfresco' failed to build: The command '/bin/sh -c yum -y update && yum -y install wget && yum clean all && set -x && wget https://artifacts.alfresco.com/nexus/service/local/repositories/releases/content/org/alfresco/api-explorer/${API_EXPLORER_TAG}/api-explorer-${API_EXPLORER_TAG}.war -O /usr/local/tomcat/webapps/api-explorer.war' returned a non-zero code: 1
note: i am behind corporate proxy
from acs-ingress.
Now solved the issue by setting the proxy, but still not able access https://testalf.com from browser.
i have set /etc/hosts as below
127.0.0.1 testalf.com
anything else am i missing?
i am able to connect to https://IPadd:443/alfresco, but not share https://IPaddr:443/share. however i need to access using domain name
tried importing config/localhost.cert into the browser. still not working
ping testalf.com is working but not from browser
from acs-ingress.
i added the url to proxy exceptions list, working now. thank you
from acs-ingress.
You can still use the alfresco-acs-nginx:3.2.0 image, but you just need to make sure you update Share's tomcat.
You would need to create a Dockerfile for share with the following RUN command
FROM quay.io/alfresco/alfresco-share:7.0.0
ARG TOMCAT_DIR=/usr/local/tomcat
USER root
RUN sed -i '/Connector port="8080"/a scheme="https" secure="true"' /usr/local/tomcat/conf/server.xml &&
sed -i "/Connector port="8080"/a proxyName="${SERVER_NAME}" proxyPort="443"" /usr/local/tomcat/conf/server.xml
from acs-ingress.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from acs-ingress.