Armadilloフォーラム

ABOS WebでのOpenVPNの設定でエラー

s.kurachi

2024年9月11日 13時17分

開発マニュアルの以下の項目を参考にして、ABOS WebからOpenVPNの設定を試みています。
https://manual.atmark-techno.com/armadillo-iot-g4/armadillo-iotg-g4_pro…

コンテナイメージ「alpine_openvpn」は作成されるのですが、以下のようなエラーが出力されて、VPNの設定に失敗します。

WARNING: /usr/sbin/abos-ctrl podman-rw does not make sense with podman-storage as disk, running podman
STEP 1/2: FROM
docker.io/alpine:latest
STEP 2/2: RUN apk add --no-cache openvpn
fetch
https://dl-cdn.alpinelinux.org/alpine/v3.20/main/aarch64/APKINDEX.tar.gz
fetch
https://dl-cdn.alpinelinux.org/alpine/v3.20/community/aarch64/APKINDEX.tar.gz
(1/9) Installing libcap2 (2.70-r0)
(2/9) Installing zstd-libs (1.5.6-r0)
(3/9) Installing libelf (0.191-r0)
(4/9) Installing libmnl (1.0.5-r2)
(5/9) Installing iproute2-minimal (6.9.0-r0)
(6/9) Installing libcap-ng (0.8.5-r0)
(7/9) Installing lz4-libs (1.9.4-r5)
(8/9) Installing lzo (2.10-r5)
(9/9) Installing openvpn (2.6.11-r0)
Executing openvpn-2.6.11-r0.pre-install
Executing busybox-1.36.1-r29.trigger
OK: 12 MiB in 23 packages
COMMIT alpine_openvpn:latest
--> 0fcca7c60b61
Successfully tagged localhost/alpine_openvpn:latest
0fcca7c60b612b1f7be86d83ea9c715f2a92c2807ccc1530a55135fa6f637f83
Starting 'mapserver'
time="2024-09-11T11:12:52+09:00" level=warning msg="The input device is not a TTY. The --tty and --interactive flags might not work properly"
db334abedb4b55ac36e059f1054d030f3f6da42140bf796b4e6264e829830077
Starting 'rabbitmq_server'
time="2024-09-11T11:12:53+09:00" level=warning msg="The input device is not a TTY. The --tty and --interactive flags might not work properly"
2a12acd56a4a73e0860cd8c9648e21fb7b5e582ef17afb163491251fa715a583
Starting 'status_checker'
time="2024-09-11T11:12:54+09:00" level=warning msg="The input device is not a TTY. The --tty and --interactive flags might not work properly"
16b6773de0aaa38cf1a91d9001bc51c855570196e36d6a1d553d9fd7da337593
error: volume root /root/output.log must exist
Error: name or ID cannot be empty
Nothing to do, none of the requested files exist: /etc/atmark/abos_web/openvpn
Nothing to do, none of the requested files exist: /etc/atmark/containers/abos_web_openvpn.conf
Nothing to do, none of the requested files exist: /etc/dnsmasq.d/openvpn_dns.conf
dnsmasq | * WARNING: you are stopping a boot service
* Stopping dnsmasq ... [ ok ]
* Starting dnsmasq ... [ ok ]

なにか原因として考えられることはありますでしょうか?
なお、Starting ' ' で起動しているコンテナは、私のほうで自動起動するように指定したコンテナです。

コメント

at_makoto.sato

2024年9月11日 14時38分

佐藤です。

> なにか原因として考えられることはありますでしょうか?
> なお、Starting ' ' で起動しているコンテナは、私のほうで自動起動するように指定したコンテナです。
確認させてください。それらのコンテナを自動起動しないようにした場合は、エラーはでないのでしょうか。

s.kurachi

2024年9月11日 15時44分

> 佐藤です。
>
> > なにか原因として考えられることはありますでしょうか?
> > なお、Starting ' ' で起動しているコンテナは、私のほうで自動起動するように指定したコンテナです。
> 確認させてください。それらのコンテナを自動起動しないようにした場合は、エラーはでないのでしょうか。

コンテナを自動起動させないように設定して、VPNの設定をしました。
同様のエラーで失敗しています。コンテナの自動起動とは関係が無いようです。

WARNING: /usr/sbin/abos-ctrl podman-rw does not make sense with podman-storage as disk, running podman
STEP 1/2: FROM docker.io/alpine:latest
STEP 2/2: RUN apk add --no-cache openvpn
--> Using cache d533b49eba123ef68f8d3794cb2476771420c98d1d9fc72018c4655d09516a1a
COMMIT alpine_openvpn:latest
--> d533b49eba12
Successfully tagged localhost/alpine_openvpn:latest
d533b49eba123ef68f8d3794cb2476771420c98d1d9fc72018c4655d09516a1a
error: volume root /root/output.log must exist
Error: name or ID cannot be empty
Nothing to do, none of the requested files exist: /etc/atmark/abos_web/openvpn
Nothing to do, none of the requested files exist: /etc/atmark/containers/abos_web_openvpn.conf
Nothing to do, none of the requested files exist: /etc/dnsmasq.d/openvpn_dns.conf
dnsmasq | * WARNING: you are stopping a boot service
* Stopping dnsmasq ... [ ok ]
* Starting dnsmasq ... [ ok ]

at_makoto.sato

2024年9月11日 16時17分

佐藤です。

ありがとうございます。
armadillo 上で以下のコマンドを実行した結果はどうでしょうか。

armadillo:~# podman_start -n -a

s.kurachi

2024年9月11日 16時37分

> 佐藤です。
>
> ありがとうございます。
> armadillo 上で以下のコマンドを実行した結果はどうでしょうか。

コマンドを実行したところ、VPNを設定したときと同様のエラーが出力されました。

armadillo:~# podman_start -n -a
error: volume root /root/output.log must exist

at_makoto.sato

2024年9月11日 16時50分

佐藤です。

ありがとうございます。
何度もすいません、以下のコマンドの結果はどうでしょうか。

armadillo:~# ls -a /etc/atmark/containers
armadillo:~# grep -r add_volume /etc/atmark/containers

s.kurachi

2024年9月11日 17時06分

> 佐藤です。
>
> ありがとうございます。
> 何度もすいません、以下のコマンドの結果はどうでしょうか。

次のようになりました。
alpine.conf.exampleとat-debian-image.conf.example以外は、私が後から作成したファイルになります。

armadillo:~# ls -a /etc/atmark/containers
.                             noise.conf
..                            rabbitmq_server.conf
README                        radio.conf
alpine.conf.example           samba.conf
at-debian-image.conf.example  status_checker.conf
main.conf                     temp_log.conf
mapserver.conf                web.conf
mq.conf
armadillo:~# ls -a /etc/atmark/containers
.                             alpine.conf.example           mapserver.conf                rabbitmq_server.conf          status_checker.conf
..                            at-debian-image.conf.example  mq.conf                       radio.conf                    temp_log.conf
README                        main.conf                     noise.conf                    samba.conf                    web.conf
armadillo:~# grep -r add_volume /etc/atmark/containers
/etc/atmark/containers/mq.conf:add_volumes \
/etc/atmark/containers/samba.conf:add_volumes /var/app/volumes/storage:/home/shares/samba
/etc/atmark/containers/noise.conf:add_volumes \
/etc/atmark/containers/status_checker.conf:add_volumes /var/run/dbus:/var/run/dbus
/etc/atmark/containers/at-debian-image.conf.example:add_volumes /opt/firmware:/opt/firmware:ro
/etc/atmark/containers/at-debian-image.conf.example:add_volumes /tmp/xdg_home:/run/xdg_home
/etc/atmark/containers/radio.conf:add_volumes \
/etc/atmark/containers/main.conf:add_volumes \
/etc/atmark/containers/temp_log.conf:add_volumes \
/etc/atmark/containers/web.conf:add_volumes \
/etc/atmark/containers/rabbitmq_server.conf:add_volumes /var/app/volumes/rabbitmq:/etc/rabbitmq
/etc/atmark/containers/mapserver.conf:add_volumes /var/app/volumes/mapserver:/etc/mapserver

s.kurachi

2024年9月11日 17時23分

> > 佐藤です。
> >
> > ありがとうございます。
> > 何度もすいません、以下のコマンドの結果はどうでしょうか。
>
> 次のようになりました。
> alpine.conf.exampleとat-debian-image.conf.example以外は、私が後から作成したファイルになります。

申し訳ありません。
こちらの件、原因が分かりました。

以下のエラーは、私が作成したファイル「temp_log.conf」が原因で出力されているものでした。

error: volume root /root/output.log must exist

「temp_log.conf」の中でoutput.logに関する記述がありました。
confファイル自体を削除したところ、VPNの設定が通りました。
こちら、昔に作成したファイルで、コンテナイメージも既に削除していたため、気が付きませんでした。

お手数をおかけしまして、大変失礼いたしました。

at_makoto.sato

2024年9月11日 17時40分

佐藤です。

ありがとうございます。
解決できてよかったです。

set_autostart no にしているコンテナは podman_start -a で起動しませんが、
エラーだけは出力してしまうので、これは今後のアップデートで podman_start -a で起動しない
コンテナはエラーも出力しないように修正いたします。