# Dragino PG1301 on RPI 4 (Raspi OS 12) - lorapktfwd.service: Failed to execute /usr/bin/lora\_pkt\_fwd

**URL:** <https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386>\
**Category:** Raspberry Pi Gateways\
**Tags:** gateways, dragino\
**Created:** [January 17, 2024, 5:05pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386 "2024-01-17T17:05:59Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![koehben](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/koehben/32/25844_2.png) [@koehben](https://www.thethingsnetwork.org/forum/u/koehben)\
**Post date:** [January 17, 2024, 5:06pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/1 "2024-01-17T17:06:00Z")

</div>

Hi there,  
I wanted to upgrade my multi-purpose RasPi 3B to a RasPi 4 due to RAM constraints.  
I use the Dragino PG1301 as a gateway and just followed the instructions ([https://www.dragino.com/downloads/downloads/LoRa\_Gateway/PG1301/PG1301\_UserManual\_v1.0.6.pdf](https://www.dragino.com/downloads/downloads/LoRa_Gateway/PG1301/PG1301_UserManual_v1.0.6.pdf)).  
When I check the status of the service, I get:  
Process: 1402 ExecStartPre=/usr/bin/reset\_lgw.sh start (code=exited, status=0/SUCCESS)  
Process: 1415 ExecStart=/usr/bin/lora\_pkt\_fwd (code=exited, status=203/EXEC)  
Process: 1416 ExecStopPost=/usr/bin/reset\_lgw.sh stop (code=exited, status=0/SUCCESS)

When I check the logs using “sudo journalctl -u lorapktfwd -f”:  
**lorapktfwd.service: Failed to execute /usr/bin/lora\_pkt\_fwd: No such file or directory**

But the file is there, so I tried to edit the permissions using “sudo chmod +x /usr/bin/lora\_pkt\_fwd”, which didn’t help either.

Any ideas are appreciated 🙂  
Thanks,  
Benjamin

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [January 17, 2024, 5:42pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/2 "2024-01-17T17:42:51Z")

</div>

Try running ‘file /usr/bin/lora\_pkt\_fwd’ and post the output…

---

<div class="post-metadata">

**Author:** ![koehben](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/koehben/32/25844_2.png) [@koehben](https://www.thethingsnetwork.org/forum/u/koehben)\
**Post date:** [January 17, 2024, 6:05pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/3 "2024-01-17T18:05:48Z")

</div>

> [@kersing](#):
>
> file /usr/bin/lora\_pkt\_fwd

/usr/bin/lora\_pkt\_fwd: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=eeb91a5f893755b9d0796e5ab1e70adebf5d1bdd, not stripped

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [January 17, 2024, 6:32pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/4 "2024-01-17T18:32:42Z")

</div>

Are you using the 32 bit version of the Raspberry OS on your system?

---

<div class="post-metadata">

**Author:** ![koehben](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/koehben/32/25844_2.png) [@koehben](https://www.thethingsnetwork.org/forum/u/koehben)\
**Post date:** [January 17, 2024, 6:33pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/5 "2024-01-17T18:33:15Z")

</div>

No, 64-bit…

---

<div class="post-metadata">

**Author:** ![koehben](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/koehben/32/25844_2.png) [@koehben](https://www.thethingsnetwork.org/forum/u/koehben)\
**Post date:** [January 17, 2024, 6:44pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/6 "2024-01-17T18:44:38Z")

</div>

Based on the direction you went to, I have installed a 32-bit Raspi OS on my machine, now it is working.  
But do you have suggestions what to do if I want to keep the 64-bit OS?

---

<div class="post-metadata">

**Author:** ![kersing](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/kersing/32/44777_2.png) [@kersing](https://www.thethingsnetwork.org/forum/u/kersing)\
**Post date:** [January 17, 2024, 7:05pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/7 "2024-01-17T19:05:46Z")

</div>

Two options:

- compile the packet forwarder as 64 bit application
- use the 32 bit binary with the required shared libraries it depends on (ldd should list them)

---

<div class="post-metadata">

**Author:** ![koehben](https://www.thethingsnetwork.org/forum/user_avatar/www.thethingsnetwork.org/koehben/32/25844_2.png) [@koehben](https://www.thethingsnetwork.org/forum/u/koehben)\
**Post date:** [January 17, 2024, 7:59pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/8 "2024-01-17T19:59:26Z")

</div>

Got it running now on a 64-bit RaspiOS. Actually, I was already pretty close to the resolution as in the instructions, Dragino also shows how to compile the pkt-fwd. Unfortunately, the repo is not only anymore, so I didn’t go this route as this meant, I need to use some other forwarder.  
Now I did it using [fhessel/dragino\_pi\_gateway\_fwd](https://github.com/fhessel/dragino_pi_gateway_fwd). Compiling it on a 64-bit system will also produces the app in 64-bit.  
Thanks for pushing me into the right direction!

---

<div class="post-metadata">

**Author:** ![system](https://www.thethingsnetwork.org/forum/uploads/default/original/3X/6/2/6250ea44fd2b0d6259489e1a92748df681e1f970.png) [@system](https://www.thethingsnetwork.org/forum/u/system)\
**Post date:** [January 18, 2024, 7:59pm UTC](https://www.thethingsnetwork.org/forum/t/dragino-pg1301-on-rpi-4-raspi-os-12-lorapktfwd-service-failed-to-execute-usr-bin-lora-pkt-fwd/66386/9 "2024-01-18T19:59:39Z")

</div>

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.
