ERPNext - podman install - docker is dead

How can i get the pwd_frontend_1 ?

podman search  pwd_frontend_1

don't find anything.

Network

podman network ls
NETWORK ID    NAME         VERSION     PLUGINS
2f259bab93aa  podman       0.4.0       bridge,portmap,firewall,tuning
8df6644559ab  pwd_default  0.4.0       bridge,portmap,firewall,tuning,dnsname

podman network inspect

podman network inspect  pwd_default
[
    {
        "args": {
            "podman_labels": {
                "com.docker.compose.project": "pwd",
                "io.podman.compose.project": "pwd"
            }
        },
        "cniVersion": "0.4.0",
        "name": "pwd_default",
        "plugins": [
            {
                "bridge": "cni-podman1",
                "hairpinMode": true,
                "ipMasq": true,
                "ipam": {
                    "ranges": [
                        [
                            {
                                "gateway": "10.89.0.1",
                                "subnet": "10.89.0.0/24"
                            }
                        ]
                    ],
                    "routes": [
                        {
                            "dst": "0.0.0.0/0"
                        }
                    ],
                    "type": "host-local"
                },
                "isGateway": true,
                "type": "bridge"
            },
            {
                "capabilities": {
                    "portMappings": true
                },
                "type": "portmap"
            },
            {
                "backend": "",
                "type": "firewall"
            },
            {
                "type": "tuning"
            },
            {
                "capabilities": {
                    "aliases": true
                },
                "domainName": "dns.podman",
                "type": "dnsname"
            }
        ]
    }
]

Did you have a solution for me?

I don’t know, I’ve only used latest version that comes with my distro.

I don’t know.

podman start pwd_frontend_1 will start it again if it has stopped.

Not really. I’m not using podman anyway. I just tried for you, I worked for me. Keep trying. Some day when everyone uses podman it’ll be easy.

Uploaded video here. Nothing more I can do.

Source of video: Use podman, podman-compose, podman-dnsname with pwd.yml · Issue #998 · frappe/frappe_docker · GitHub

1 Like

Hallo @revant_one , is your yml file oci compatible?

https://opencontainers.org

podman start pwd_frontend_1
pwd_frontend_1

check

sudo systemctl status  podman.service

○ podman.service - Podman API Service
     Loaded: loaded (/lib/systemd/system/podman.service; enabled; vendor preset: enabled)
     Active: inactive (dead) since Tue 2022-11-08 05:32:41 UTC; 10min ago
TriggeredBy: ● podman.socket
       Docs: man:podman-system-service(1)
    Process: 705 ExecStart=/usr/bin/podman $LOGGING system service (code=exited, status=0/SUCCESS)
   Main PID: 705 (code=exited, status=0/SUCCESS)
        CPU: 181ms

Nov 08 05:32:35 ubu2204 systemd[1]: Starting Podman API Service...
Nov 08 05:32:36 ubu2204 systemd[1]: Started Podman API Service.
Nov 08 05:32:36 ubu2204 podman[705]: time="2022-11-08T05:32:36Z" level=info msg="/usr/bin/podman filtering at log level info"
Nov 08 05:32:36 ubu2204 podman[705]: time="2022-11-08T05:32:36Z" level=info msg="[graphdriver] using prior storage driver: overlay"
Nov 08 05:32:36 ubu2204 podman[705]: time="2022-11-08T05:32:36Z" level=info msg="Found CNI network podman (type=bridge) at /etc/cni/net.d/87-podman-bridge.conflist"
Nov 08 05:32:36 ubu2204 podman[705]: time="2022-11-08T05:32:36Z" level=info msg="Setting parallel job count to 13"
Nov 08 05:32:36 ubu2204 podman[705]: time="2022-11-08T05:32:36Z" level=info msg="using systemd socket activation to determine API endpoint"
Nov 08 05:32:36 ubu2204 podman[705]: time="2022-11-08T05:32:36Z" level=info msg="using API endpoint: ''"
Nov 08 05:32:36 ubu2204 podman[705]: time="2022-11-08T05:32:36Z" level=info msg="API service listening on \"/run/podman/podman.sock\""
Nov 08 05:32:41 ubu2204 systemd[1]: podman.service: Deactivated successfully.

problem
level=info msg="Found CNI network podman (type=bridge) at /etc/cni/net.d/87-podman-bridge.conflist

and

http://192.168.178.98:8080

Did you will, oder another user try a Ubuntu 22.04.1 and podman with VirtualBox, KVM oder VMware?

Thank you

jannis

Check it for yourself?

I’m not a developer :frowning:

pwd.yml is just example for Play-With-Docker. It is basic setup.
Containers can run on any container orchestrator so yml can be made compatible as per the orchestrator or runtime. As per video it does work with podman. So some tweaks will work with podman

No one except frappecloud can install frappe/erpnext for non-developers. Any other type of installation expects you to be developer.

Oracle Linux 9

With Oracle Linux 9 the same problem.

podman  --version && podman-compose version
podman version 4.1.1
podman-compose version: 1.0.4
['podman', '--version', '']
using podman version: 4.1.1
podman-compose version 1.0.4
podman --version 
podman version 4.1.1
exit code: 0

x

podman network ls
NETWORK ID    NAME               DRIVER
cc46e610358a  ghost_default      bridge
2f259bab93aa  podman             bridge
c6a24107d092  pwd_default        bridge
6fbf9ed6260d  wordpress_default  bridge

x

podman ps
CONTAINER ID  IMAGE                                      COMMAND               CREATED        STATUS                      PORTS                   NAMES
fe76d1547faf  docker.io/frappe/erpnext-worker:v14.5.1    /home/frappe/frap...  7 minutes ago  Up 7 minutes ago                                    pwd_backend_1
228f2ff7b3b7  docker.io/library/mariadb:10.6             --character-set-s...  7 minutes ago  Up 7 minutes ago (healthy)                          pwd_db_1
c8dbc7f23cf2  docker.io/frappe/erpnext-nginx:v14.5.1     nginx -g daemon o...  6 minutes ago  Up 3 minutes ago            0.0.0.0:8080->8080/tcp  pwd_frontend_1
61d459feddd4  docker.io/frappe/erpnext-worker:v14.5.1    bench worker --qu...  5 minutes ago  Up 3 minutes ago                                    pwd_queue-default_1
ad39b49798c0  docker.io/frappe/erpnext-worker:v14.5.1    bench worker --qu...  5 minutes ago  Up 3 minutes ago                                    pwd_queue-long_1
be2d0d996836  docker.io/frappe/erpnext-worker:v14.5.1    bench worker --qu...  5 minutes ago  Up 3 minutes ago                                    pwd_queue-short_1
bbb17d5a09da  docker.io/library/redis:6.2-alpine         redis-server          5 minutes ago  Up 5 minutes ago                                    pwd_redis-queue_1
1cf7e2012cc0  docker.io/library/redis:6.2-alpine         redis-server          5 minutes ago  Up 5 minutes ago                                    pwd_redis-cache_1
a20cc6334320  docker.io/library/redis:6.2-alpine         redis-server          5 minutes ago  Up 5 minutes ago                                    pwd_redis-socketio_1
89738322cb89  docker.io/frappe/erpnext-worker:v14.5.1    bench schedule        5 minutes ago  Up 5 minutes ago                                    pwd_scheduler_1
a816c34cee1b  docker.io/frappe/frappe-socketio:v14.14.2  node /home/frappe...  4 minutes ago  Up 4 minutes ago                                    pwd_websocket_1

I will now try Arch Linux from

https://www.osboxes.org/arch-linux/

Username – osboxes
Password – osboxes.org
For Root user account
Password – osboxes.org

osboxes, doesnt’t work properly.

Don’t blame me if it doesn’t work just because you are using Arch Linux.

  • Get simple setup running, try simple nginx container with port exposed e.g. http://localhost or http://localhost:8080 should show nginx welcome page.
  • try inter container networking by reverse proxying using nginx in simple compose.yml
  • try other simple compose apps e.g. wordpress
1 Like

That i have done, wordpress works with Oracle Linux 9 and podman.
See therefore “6fbf9ed6260d wordpress_default bridge”.

Arch Linux

podman-compose version
['podman', '--version', '']
using podman version: 4.3.0
podman-composer version  1.0.3
podman --version 
podman version 4.3.0
exit code: 0

x


[archlinux@archlinux2022 erpnext]$ sudo systemctl status  podman.service
○ podman.service - Podman API Service
     Loaded: loaded (/usr/lib/systemd/system/podman.service; enabled; preset: disabled)
     Active: inactive (dead) since Tue 2022-11-08 05:43:36 CST; 2min 5s ago
   Duration: 5.278s
TriggeredBy: ● podman.socket
       Docs: man:podman-system-service(1)
   Main PID: 2038 (code=exited, status=0/SUCCESS)
        CPU: 142ms

Nov 08 05:43:30 archlinux2022.linuxvmimages.local systemd[1]: Starting Podman API Service...
Nov 08 05:43:30 archlinux2022.linuxvmimages.local systemd[1]: Started Podman API Service.
Nov 08 05:43:31 archlinux2022.linuxvmimages.local podman[2038]: time="2022-11-08T05:43:31-06:00" level=info msg="/usr/bin/podman>
Nov 08 05:43:31 archlinux2022.linuxvmimages.local podman[2038]: time="2022-11-08T05:43:31-06:00" level=info msg="Not using nativ>
Nov 08 05:43:31 archlinux2022.linuxvmimages.local podman[2038]: 2022-11-08 05:43:31.246096253 -0600 CST m=+0.268366582 system re>
Nov 08 05:43:31 archlinux2022.linuxvmimages.local podman[2038]: time="2022-11-08T05:43:31-06:00" level=info msg="Setting paralle>
Nov 08 05:43:31 archlinux2022.linuxvmimages.local podman[2038]: time="2022-11-08T05:43:31-06:00" level=info msg="Using systemd s>
Nov 08 05:43:31 archlinux2022.linuxvmimages.local podman[2038]: time="2022-11-08T05:43:31-06:00" level=info msg="API service lis>
Nov 08 05:43:36 archlinux2022.linuxvmimages.local systemd[1]: podman.service: Deactivated successfully.

x

podman info | grep network
  networkBackend: netavark
  network:

x

[archlinux@archlinux2022 erpnext]$ podman start pwd_frontend_1
Error: no container with name or ID "pwd_frontend_1" found: no such container
[archlinux@archlinux2022 erpnext]$

x

http://192.168.178.101:8080

No success :frowning:

@revant_one
Can you reach your ERPNext GUI with “http://IP-Adress:8080”?

Test container hello-world

[archlinux@archlinux2022 erpnext]$ podman run hello-world

Hello from Docker!
This message shows that your installation appears to be working correctly.

To generate this message, Docker took the following steps:
 1. The Docker client contacted the Docker daemon.
 2. The Docker daemon pulled the "hello-world" image from the Docker Hub.
    (amd64)
 3. The Docker daemon created a new container from that image which runs the
    executable that produces the output you are currently reading.
 4. The Docker daemon streamed that output to the Docker client, which sent it
    to your terminal.

To try something more ambitious, you can run an Ubuntu container with:
 $ docker run -it ubuntu bash

Share images, automate workflows, and more with a free Docker ID:
 https://hub.docker.com/

For more examples and ideas, visit:
 https://docs.docker.com/get-started/

[archlinux@archlinux2022 erpnext]$ 

Arch_Linux native install without VirtualBox
x

uname -r
6.0.7-arch1-1

x

podman-compose version
['podman', '--version', '']
using podman version: 4.3.0
podman-composer version  1.0.3
podman --version 
podman version 4.3.0
exit code: 0

x

Error

Copying blob ccf584b1b7a4 done  
Copying blob 133775bcc159 done  
Copying blob 576567457511 done  
Error: writing blob: adding layer with blob "sha256:1efc276f4ff952c055dea726cfc96ec6a4fdb8b62d9eed816bd2b788f2860ad7": processing tar file(potentially insufficient UIDs or GIDs available in user namespace (requested 0:42 for /etc/gshadow): Check /etc/subuid and /etc/subgid if configured locally and run podman-system-migrate: lchown /etc/gshadow: invalid argument): exit status 1
exit code: 125
podman start pwd_backend_1
Error: no container with name or ID "pwd_backend_1" found: no such container
exit code: 125

yes. watch the video

Thank’s for the video

For what ist this input?

podman logs -f pwd_create-site_1 
Error: no container with name or ID "pwd_create-site_1" found: no such container

I don’t have read therefore, now i have look the video very slow.

https://discuss.frappe.io/t/how-can-i-get-erpnext-running-under-docker-for-a-quick-look/90288/4

x

archlinux@archlinux2022 ~]$ tree
.
└── erpnext
    └── pwd.yml

1 directory, 1 file
[archlinux@archlinux2022 ~]$ 

Can i use this path for my pwd.yml ?

##############################################

INFO

mkdir erpnext
cd erpnext

Video Timecode - TC 00:06

wget https://raw.githubusercontent.com/frappe/frappe_docker/main/pwd.yml -O pwd.yml

TC 00:14

podman-compose --project-name pwd -f pwd.yml up -d

TC 00:50

podman logs -f pwd_create-site_1 
Error: no container with name or ID "pwd_create-site_1" found: no such container

How can i solved my problem?
Where is my mistake to get sucess, TC 00:50 ?

https://192.168.178.101:9090/

[archlinux@archlinux2022 ~]$ podman ps -ls
CONTAINER ID  IMAGE                                 COMMAND     CREATED       STATUS                   PORTS       NAMES               SIZE
d681abae31c8  docker.io/library/hello-world:latest  /hello      21 hours ago  Exited (0) 21 hours ago              beautiful_thompson  12B (virtual 13.3kB)
[archlinux@archlinux2022 ~]$ 

I don’t see any ERPNext container in Cockpit or “podman ps -ls”.

OT
@revant_one
Which software did you use to create your GitHub upload Video?

-f for podman-compose takes in file path to compose yaml
-f for podman logs is to follow logs

1 Like

If i add a user “frappe” to my system, should the “https://raw.githubusercontent.com/frappe/frappe_docker/main/pwd.yml” working out of the box?

What did you mean?

What is “-f for podman-compose” ?

What is “-f for podman logs” ?

@revant_one

https://github.com/frappe/frappe_docker

can you change to

https://github.com/frappe/frappe_podman

Thank’s

Hello, did we don’t have any answer?

I’m use a Ampere VM.Standard.A1.Flex arm64 platform.

arm64 isn’t amd64 !!

Thank’s all

jannis

1 Like