Teleporter Backup Error 500

Running pi.hole in a dcoker container on Synology as my primary pi.hole. I use telepporter to backup my configurations after making changes and today when attempting to backup (first time after the 5.1 version upgrade). I am getting a error 500 when clicking the backup button.

I also tried this on my backup pi.hole which runs on a Pi3 and same issue and attached the debug log from that one also.

Expected Behaviour:

Backup file to be crated and downloaded to my downloads folder

Actual Behaviour:

Error 500 message in browser (Chrome)

image

Debug Token:

Synology Token: https://tricorder.pi-hole.net/kmhw4xp4am

Dedicated Pi3 Token: https://tricorder.pi-hole.net/7w1vbgtrhq

Have you tried a different browser or cleared the cache in the existing Chrome browser?

Yes flushed the cache on the browser, tried EDGE/Chromium, Firefox, Chrome. None will backup. Also when you try to run the url manually by refreshing the page:

http://pi.hole/admin/scripts/pi-hole/php/teleporter.php

I see this error:

Empty token! Check if cookies are enabled on your system.

Are cookies enabled?

Yes...must be a fall-though error.

Just tried with my son's Macbook and Safai. Same HTTP 500 error.

You have this error showing in your debug log for the second Pi.

Yes I just found that was doing a trace on lighttpd error log file. I have never seen that error before. I never touch the directory structure or security of the file system. I am sure if I did a exec into the container on the synolgoy I will probably find the same error.

Any idea why this error is happening.

Yes found the same error in my docker container so it's happening in both docker and a standalone PI install.

2020-07-19 19:25:08: (mod_fastcgi.c.2543) FastCGI-stderr: PHP Fatal error: Uncaught UnexpectedValueException: Cannot create phar '/tmp/pi-hole-pihole2.vargofamily.com-teleporter_2020-07-19_19-25-08.tar', file extension (or combination) not recognised or the directory does not exist in /var/www/html/admin/scripts/pi-hole/php/teleporter.php:547
2020-07-19 19:25:08: (mod_fastcgi.c.2543) FastCGI-stderr: Stack trace:
2020-07-19 19:25:08: (mod_fastcgi.c.2543) FastCGI-stderr: #0 /var/www/html/admin/scripts/pi-hole/php/teleporter.php(547): PharData->__construct('/tmp/pi-hole-pi...')
2020-07-19 19:25:08: (mod_fastcgi.c.2543) FastCGI-stderr: #1 {main}
2020-07-19 19:25:08: (mod_fastcgi.c.2543) FastCGI-stderr: thrown in /var/www/html/admin/scripts/pi-hole/php/teleporter.php on line 547
root@brains:~#

Having the same issue today on my Pi-4 from terminal running pihole -a -t

PHP Fatal error:  Uncaught UnexpectedValueException: Cannot create phar '/tmp/pi-hole-ralph-teleporter_2020-07-20_10-47-15.tar', file extension (or combination) 
not recognised or the directory does not exist in /var/www/html/admin/scripts/pi-hole/php/teleporter.php:547
Stack trace:
#0 /var/www/html/admin/scripts/pi-hole/php/teleporter.php(547): PharData->__construct('/tmp/pi-hole-ra...')
#1 {main}
  thrown in /var/www/html/admin/scripts/pi-hole/php/teleporter.php on line 547

Tried a restart and a reconfigure and it's still the same. The DNS service itself is unaffected so far.

https://tricorder.pi-hole.net/4mnsntfkbr

Do you have a directory /tmp ?

Yup

seems to be legit.

How are the permissions?

ls -lh / | grep tmp

For standalone Pi 3

drwxrwxrwt 8 root root 4.0K Jul 20 08:35 tmp

For docker Synology:

drwxrwxrwt 29 root root 4.4K Jul 20 08:38 tmp

So this seems correct. Does

sudo -u pihole touch /tmp/pi-hole-ralph-teleporter_2020-07-20_10-47-15.tar

succeed or error?

Runs fine in in both a standalone Pi and Container.

root@ralph:/home/pi# ls -lh / | grep tmp
drwxrwxrwt  15 root root 4.0K Jul 20 17:09 tmp

Success

root@ralph:/home/pi# sudo -u pihole touch /tmp/pi-hole-ralph-teleporter_2020-07-20_10-47-15.tar
root@ralph:/home/pi#

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