You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@devlake.apache.org by "chrisolido (via GitHub)" <gi...@apache.org> on 2024/05/27 03:15:23 UTC
[I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
chrisolido opened a new issue, #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
## Question
I am getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument"
## Screenshots
---
[root@ip-172-27-0-126 incubator-devlake]# docker-compose up -d
WARNING: The HTTPS_PROXY variable is not set. Defaulting to a blank string.
WARNING: The GOPROXY variable is not set. Defaulting to a blank string.
Building devlake
Step 1/61 : FROM --platform=linux/amd64 debian:bullseye as debian-amd64
---> 53ceee7f0775
Step 2/61 : RUN apt-get update
---> Using cache
---> 73ff9bf8541c
Step 3/61 : RUN apt-get install -y libssh2-1-dev libssl-dev zlib1g-dev
---> Using cache
---> 8fd20c10b506
Step 4/61 : FROM --platform=linux/arm64 debian:bullseye as debian-arm64
---> 53ceee7f0775
Step 5/61 : RUN apt-get update
---> Using cache
---> 73ff9bf8541c
Step 6/61 : RUN apt-get install -y libssh2-1-dev libssl-dev zlib1g-dev
---> Using cache
---> 8fd20c10b506
Step 7/61 : FROM --platform=$BUILDPLATFORM golang:1.20.4-bullseye as builder
ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument
[root@ip-172-27-0-126 incubator-devlake]# vi .env
[root@ip-172-27-0-126 incubator-devlake]# uname -a
Linux ip-172-27-0-126.ap-southeast-1.compute.internal 5.10.216-204.855.amzn2.x86_64 #1 SMP Sat May 4 16:53:27 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
[root@ip-172-27-0-126 incubator-devlake]#
---
## Additional context
I am installing from amz2 ec2. New installation.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132583230
Hi, I think you used the wrong `docker-compose` file.
1. where did you get the `docker-compose.yml` file?
2. what is the full content of your `docker-compose.yml` file?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido closed issue #7512: [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument"
URL: https://github.com/apache/incubator-devlake/issues/7512
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132811924
I use chatgpt so not sure where in your current docu was it..
I do have another issue .
I cant see it in public:
`[root@ip-172-27-0-126 staging]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
9f25ffb803ab mericodev/config-ui:v0.9.0 "/docker-entrypoint.ā¦" 56 minutes ago Up 31 minutes 443/tcp, 127.0.0.1:4000->80/tcp staging_config-ui_1
9f80ba6968bf mericodev/grafana:v0.9.0 "/run.sh" 56 minutes ago Up 31 minutes 0.0.0.0:3002->3000/tcp, :::3002->3000/tcp staging_grafana_1
5397c2526f16 mericodev/lake:v0.9.0 "lake" 56 minutes ago Up 31 minutes 127.0.0.1:8080->8080/tcp staging_devlake_1
fd5895c8de18 mysql:8.0.26 "docker-entrypoint.sā¦" 56 minutes ago Up 31 minutes 127.0.0.1:3306->3306/tcp, 33060/tcp staging_mysql_1
[root@ip-172-27-0-126 staging]#
`
I have my security group allow eveything i can telnet to port 22, have added 4000, 443 in iptables still not able to see the UI. Im using amazon ec2.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132839629
And also with the latest release i see a different UI compare with the docs in the website
latest release : red UI with only four
in the docs: blue with many options
What I am missing here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido closed issue #7512: [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument"
URL: https://github.com/apache/incubator-devlake/issues/7512
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132585329
Hi Klesh,
Thanks for answering i got it from the repo :
`incubator-devlake]# git remote -v
origin https://github.com/apache/incubator-devlake.git (fetch)
origin https://github.com/apache/incubator-devlake.git (push)
`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132706002
It looks like i got it working thanks Klesh. I download the files from the release /devops/ folder. Thats fixed the issue. Thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132755389
@chrisolido Which documentation did you follow? It needs to be updated I believe.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "klesh (via GitHub)" <gi...@apache.org>.
klesh commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132596619
@chrisolido It doesn't make sense, there is no `docker-compose.yml` file in the repo root folder, only `docker-compose-dev.yml` for developers, and `docker-compose up -d` won't take it as the input file unless you passed the option `-f docker-compose-dev.yml` . So, what exactly did you do? I would guess that you renamed the file, but I could never be sure of it. for others to help you, please be specific, it is hard to help without knowing what happened. š
If and only if my assumption was correct, you may consider:
1. download the `docker-compose.yml` from the release page

2. Or use the one located in the `devops/releases` folder.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132694980
I followed the documentation and did renamed the file. let me download the file in release page thank you for your help :D
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132825436
fix already change the config-ui to 0.0.0.0. How to run this with ssl?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132571009
<!-- Greeting -->
Hey @chrisolido! I'm here to help you with any issues you're facing. I'm a bot that can assist you with bug fixes, answer questions, and guide you to become a contributor. Let's take a look at the issue you've encountered.
<!-- Answer -->
To resolve the error "failed to parse platform : "" is an invalid component of """ when trying to build the 'devlake' service using Docker Compose on an Amazon Linux 2 EC2 instance, you should ensure that the `platform` specification is correctly set or removed if not necessary.
Here is the corrected `docker-compose.yml` based on the latest version from Apache DevLake:
```yml
version: "3"
services:
mysql:
image: mysql:8.0.26
volumes:
- mysql-storage:/var/lib/mysql
restart: always
ports:
- 127.0.0.1:3306:3306
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
grafana:
image: apache/devlake-dashboard:v0.12.0
ports:
- 3002:3000
volumes:
- grafana-storage:/var/lib/grafana
environment:
GF_SERVER_ROOT_URL: "http://localhost:4000/grafana"
MYSQL_URL: mysql:3306
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
restart: always
depends_on:
- mysql
devlake:
image: apache/devlake:v0.12.0
ports:
- 127.0.0.1:8080:8080
restart: always
volumes:
- ./.env:/app/.env
depends_on:
- mysql
config-ui:
image: apache/devlake-config-ui:v0.12.0
ports:
- 127.0.0.1:4000:4000
env_file:
- ./.env
environment:
DEVLAKE_ENDPOINT: devlake:8080
GRAFANA_ENDPOINT: grafana:3000
depends_on:
- devlake
volumes:
mysql-storage:
grafana-storage:
```
By removing the `platform: linux/x86_64` line from the `mysql` service, you should be able to avoid the parsing error. Additionally, ensure that your Dockerfile handles different platforms correctly <sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.10.0-beta1/docker-compose.yml)</sup><sup>[[2]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.10.0/docker-compose.yml)</sup><sup>[[3]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.8.0/docker-compose.yml)</sup><sup>[[4]](https://github.com/apache/incubator-devlake/blob/main/backend/Dockerfile)</sup><sup>[[5]](https://github.com/apache/incubator-devlake/blob/main/devops/releases/lake-v0.12.0/docker-compose.yml)</sup>.
<!-- Dosu Comment Footer -->
<details open>
<summary>
#### Details
</summary>
**About Dosu**
This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research.
Help me be more useful! Please leave a š if this is helpful and š if it is irrelevant.
</details>
*To continue the conversation, mention @dosu.*
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Question][Module Name] getting "ERROR: Service 'devlake' failed to build: failed to parse platform : "" is an invalid component of "": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument" [incubator-devlake]
Posted by "chrisolido (via GitHub)" <gi...@apache.org>.
chrisolido commented on issue #7512:
URL: https://github.com/apache/incubator-devlake/issues/7512#issuecomment-2132573838
I have check my docker-compose.yml and it does not have "platform: linux/x86_64"
`# limitations under the License.
#
version: "3"
services:
mysql:
image: mysql:8
volumes:
- mysql-storage:/var/lib/mysql
restart: always
ports:
- 3306:3306
environment:
MYSQL_ROOT_PASSWORD: admin
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
TZ: UTC
command: --character-set-server=utf8mb4
--collation-server=utf8mb4_bin
--skip-log-bin
postgres:
image: postgres:14.2
volumes:
- postgres-storage:/var/lib/postgresql
restart: always
ports:
- 5432:5432
environment:
POSTGRES_DB: lake
POSTGRES_USER: merico
POSTGRES_PASSWORD: merico
TZ: UTC
grafana:
image: devlake.docker.scarf.sh/apache/devlake-dashboard:latest
build:
context: grafana/
ports:
- 3002:3000
volumes:
- grafana-storage:/var/lib/grafana
environment:
GF_SERVER_ROOT_URL: "http://localhost:4000/grafana"
GF_USERS_DEFAULT_THEME: "light"
MYSQL_URL: mysql:3306
MYSQL_DATABASE: lake
MYSQL_USER: merico
MYSQL_PASSWORD: merico
TZ: UTC
restart: always
depends_on:
- mysql
E486: Pattern not found: platform `
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@devlake.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org