Comments (11)
I resolved
from liferay-docker.
Thanks for updating the ticket, closing!
from liferay-docker.
@doyoungim999 I have the same problem, how did you resolve it?
from liferay-docker.
you may try this:
$oc create serviceaccount useroot
$oc adm policy add-scc-to-user anyuid -z useroot
$oc edit dc/portal
spec:
serviceAccountName: useroot
from liferay-docker.
@doyoungim999 It does not work, it says my user does not have permission to do this
from liferay-docker.
I don't know the error message.
You need openshift admin user authority to create service account.
from liferay-docker.
@doyoungim999 Can I contact you somehow to explain better? I am new to Liferay, docker and openshift so I am kinda lost with the steps. If you have time
from liferay-docker.
Are you running on openshift ?
I am not liferay expert either.
Please describe the steps in detail with your error here.
from liferay-docker.
@doyoungim999 Yes, openshift 4.5 and Liferay 7.2.
First I created my docker image from my Liferay Environment, I use these steps: https://help.liferay.com/hc/en-us/articles/360022307392-Leveraging-Docker
Second, I found about this Openshift-ready liferay image project: https://hub.docker.com/r/simontim/liferay-openshift if I use this image directly in my openshift environment, I don't have any permission issues, even using the same user and it works perfectly but is liferay 7.0 and I need 7.2 with all my projects and configs. I tried to copy the steps he uses in his DOCKERFILE in my local dockerfile (of course, adapting my paths), but still doesn't work.
Lastly, I just upload my docker image to docker hub and pull from there to my openshift environment. I get these errors:
this happen when I start the pod and it tries to start the liferay instance.
I also tried your steps, but I get this message error:
I would really thankful if you could help me somehow π
P.S: If I use a normal liferay image from the docker hub (for example 7.3), or my liferay image environment without any dockerfile configuration, I still get the same permission issue error.
from liferay-docker.
permission denied can be related with serviceaccount in openshift.
If you're using podman or docker, you will not have this error.
So i suggest you create service account with administroator "kubeadmin".
after you create a serviceaccount, you need to add serviceAccountname in deployment disciptor like th attached.
I run the following in my case:
$oc edit deployment portal
from liferay-docker.
@doyoungim999 thank you, unfortunately we don't have access to create a service account with administrator "kubeadmin"
I have a jenkins instance in my openshift, do you think if I try to create my liferay docker image directly there, it could make a difference?
from liferay-docker.
Related Issues (20)
- liferay/portal:7.4.3.19-ga19
- All versions after 7.4.3-ga90 not starting on k8s HOT 1
- Cannot run liferay dxp though specify env HOT 2
- generate picture thumbnail failed HOT 1
- What is username and password to run docker : 7.3.0-ga1 ? HOT 1
- liferay/portal:7.3.1-ga2 in openshift 4.3.1 HOT 4
- Error in cleanup when everything went correctly HOT 2
- Question about "docker pull liferay/portal:7.3.1-ga2" HOT 1
- Not able to use xuggler on liferay's docker image HOT 1
- JDK confusion HOT 1
- Liferay 7.2 GA1 Theme build failed due to liferay mirror 403 HTTP response code HOT 2
- Elastic Search Sidecar could not be started HOT 2
- web.server.display.node=false is not affecting the platform HOT 5
- Can't find Liferay Filesystem on Host HOT 2
- Create non-alpine based image HOT 5
- File copy in Kubernetes HOT 2
- TLS 1.2 issues HOT 2
- Error when running liferay portal 6.2.5-ga6 HOT 5
- It canβt start up on mac with M1 chipset
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 liferay-docker.