sergei-mironov / asterisk-dongle-setup

Playground project aimed at setting up Asterisk server and the GSM stack on Nix.
29 stars 4 forks source link

Python Dongleman Spool Error #6

Open AlphaJosh opened 2 years ago

AlphaJosh commented 2 years ago

After everything is compiled, I got an error about saying the Dongleman "Message pool should be a valid directory, got /tmp/dongleman/spool"

/nix/store/041r220sp8pfiv9i0pmymyg0j845zd8q-python-scripts-1.0/bin/.dongleman_daemon.py-wrapped line 25: SPOOL="/tmp/dongleman/spool" line 26: assert isspool(SPOOL), f"Message pool should be a valid directory, got {SPOOL}"

I confirmed that the folder /tmp/dongleman/spool existed, after going through the python module (asterisk-dongle-setup/python/lib/dongleman/spool.py), I could see that the python module is already assuming that the /tmp/.

So I commented out line 26 and dealt with the errors: It wanted the following directories: sudo mkdir -p '/tmp/dongleman/spool/tmp' sudo mkdir -p '/tmp/dongleman/spool/queue' sudo mkdir -p '/tmp/dongleman/spool/attaches'

I hope that that workaround is correct

sergei-mironov commented 2 years ago

Hm, could be. I need to add the similar code to the script. Please just create them for now.