jasonking3 / macipgw

https://github.com/zero2sixd/macipgw/wiki
Other
44 stars 6 forks source link

netatalk service: Failed #5

Open thesleort opened 3 years ago

thesleort commented 3 years ago

I just downloaded the latest MacIPpi image 5.01 stable release following the setup guide and put it on a Raspberry Pi 3 B+

Whenever I try to start it, my Macintosh SE/30 cannot see it, so I investigated, and it appears that the netatalk service failed to start.

macipgw@macippi:~ $ systemctl status netatalk
Warning: The unit file, source configuration file or drop-ins of netatalk.service changed on disk. Run 'systemctl daemon-reload' to reload units.
● netatalk.service
   Loaded: loaded (/etc/init.d/netatalk; generated)
   Active: failed (Result: exit-code) since Fri 2021-04-02 13:25:25 CEST; 15min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 466 ExecStart=/etc/init.d/netatalk start (code=exited, status=143)

At the same time it appears that some netatalk is somewhere?

macipgw@macippi:~ $ nbplkup 
                        macippi:TimeLord                           65280.108:131
                        MacIPpi:AFPServer                          65280.108:129
                     172.16.2.1:IPGATEWAY                          65280.108:72
                        MacIPpi:netatalk                           65280.108:4
                        MacIPpi:Workstation                        65280.108:4

journalctl -xe after systemctl restart netatalk

Apr 02 13:48:33 macippi systemd[1]: netatalk.service: Control process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- An ExecStart= process belonging to unit netatalk.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
Apr 02 13:48:33 macippi systemd[1]: netatalk.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- The unit netatalk.service has entered the 'failed' state with result 'exit-code'.
Apr 02 13:48:33 macippi systemd[1]: Failed to start netatalk.service.
-- Subject: A start job for unit netatalk.service has failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
-- 
-- A start job for unit netatalk.service has finished with a failure.
-- 
-- The job identifier is 986 and the job result is failed.

Is the netatalk service supposed to fail? If so is it then running somewhere else. It's strange, because I have previously been able to access the AppleTalk file server on my Macintosh SE/30 on the same Raspberry Pi

thesleort commented 3 years ago

The system is totally vanilla/unmodified and I am able to access the "SHARED_DISK" on my Linux laptop on the same network

thesleort commented 3 years ago

ifconfig output

macipgw@macippi:~ $ ifconfig 
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.0.80  netmask 255.255.255.0  broadcast 192.168.0.255
        inet6 fe80::9175:f2e4:1edb:2e41  prefixlen 64  scopeid 0x20<link>
        ether b8:27:eb:ba:f5:1c  txqueuelen 1000  (Ethernet)
        RX packets 7003  bytes 1016634 (992.8 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 5223  bytes 908047 (886.7 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 301  bytes 25146 (24.5 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 301  bytes 25146 (24.5 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

tun0: flags=4305<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST>  mtu 586
        inet 172.16.2.1  netmask 255.255.255.0  destination 172.16.2.1
        unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  txqueuelen 500  (UNSPEC)
        RX packets 0  bytes 0 (0.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 1  bytes 48 (48.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
thesleort commented 3 years ago

executing

macipgw@macippi:~ $ sudo bash /etc/init.d/netatalk stop

and then

macipgw@macippi:~ $ sudo systemctl restart netatalk

appears to get the service running. However, the Macintosh SE/30 still is not seeing it on the network.

macipgw@macippi:~ $ nbplkup 
                        macippi:TimeLord                           65280.249:131
                        MacIPpi:AFPServer                          65280.249:129
                     172.16.2.1:IPGATEWAY                          65280.249:72
                        MacIPpi:netatalk                           65280.249:4
                        MacIPpi:Workstation                        65280.249:4
rdmark commented 1 year ago

@thesleort Since this is an issue with Netatalk, the correct place to ask for assistance would be https://github.com/Netatalk/Netatalk

Also, please note that macipgw and MacIP are not the same project. The MacIP distributions are built on top of macipgw and other components. But they're not directly affiliated.