sa2blv / SVXportal

A web portal for svxlink reflector
http://svxportal.sm2ampr.net/
19 stars 13 forks source link

Failure to interact with the database. #23

Closed f5vmr closed 1 year ago

f5vmr commented 3 years ago

I have to say that although the concept appears to be working live - I've seen it.... I cannot achieve the same results. I admit to being very confused, as throughout the files the spelling of certain words is not correct For example languge should be language, and I wonder if the variables as a result are not corresponding correctly. There are other words that in some variables are spelled correctly and others with the same name that are not.

I have correctly set the database, and I can view the database with phpmyadmin, but it contains none of the expected data from my svxreflector, the stations connected or the talkgroups. I will try the 2.5 versions to see if there is an improvement, but 2.4 just does not work. I'll keep you appraised.

sa2blv commented 3 years ago

Hi the language is not the issue since it works in Sweden. I have a theory that the php robots aren't running.

check with screen -x that robots are running

are this line put in to crontab

screen -d -m bash -c 'cd /var/www/ ; watch -n 20 php station_heartbeat.php;' screen -d -m bash -c 'cd /var/www/ ; watch -n 1 php logdeamon.php;'

please check the reflector_proxy /config.php is configured for your reflector server. and http enable

f5vmr commented 3 years ago

Hi Peter, I have the cron running, however Checking the screen -x shows the two are detached. Seeing what I can do to restart them. @.***:/var/www/html $ sudo screen -x There are several suitable screens on: 830..SvxPortal (11/08/21 20:05:40) (Detached) 831..SvxPortal (11/08/21 20:05:40) (Detached) Type "screen [-d] -r [pid.]tty.host" to resume one of them.

Tried that - re run the individual command too. No changes.

Chris

sa2blv commented 3 years ago

try open 830..SvxPortal to se what message it printsout

sa2blv commented 3 years ago

is there any way to interact with the website to see ?

f5vmr commented 3 years ago

I am still working on pushing the one portal I have working to a ddns.net address, but I have to take a break now until tomorrow whenI will try again. It has to be on a ddns, as I have a dynamic IP address here.

I will push it to you and Adrian VK4TUX when it’s going.

73 Chris

On 15 Aug 2021, at 18:26, Peter @.***> wrote:

is there any way to interact with the website to see ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-899084859, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5FAPFRN2MAGSZ3DH3LT472DLANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

ok i'm almost done with 2.5 maybe we can try an beta installation on your page

f5vmr commented 3 years ago

Peter, thanks very much.

I’ll do this by making a pull in the morning.

Many thanks

Chris

On 15 Aug 2021, at 18:55, Peter @.***> wrote:

ok i'm almost done with 2.5 maybe we can try an beta installation on your page

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-899088640, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5GIT7O6ACCKS6EHZQTT475RJANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

I’m ready for a try of your Beta 2.5 - is it the current Master?

Chris

On 15 Aug 2021, at 18:55, Peter @.***> wrote:

ok i'm almost done with 2.5 maybe we can try an beta installation on your page

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-899088640, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5GIT7O6ACCKS6EHZQTT475RJANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

it is not public on the repo i can mail you an tar file

f5vmr commented 3 years ago

Yes please Peter. I've tried all ways to read my database file with the current version. According to a phpreader there are some errors in the PHP that cannot locate certain files of refers to like css.php for one, and cookie references that are missing or wrongly configured. This included the location of the database it self. I really want this to work, so I will persevere. The first errors I found were my fault, as I found apache2 was trying and failing to work as lighttpd was already running. I shut down this service and I then could see the dashboard, but still could not edit or register or log in...... or see any of my operational server content.

Regards Chris

On Mon, 16 Aug 2021, 20:45 Peter, @.***> wrote:

it is not public on the repo i can mail you an tar file

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-899771958, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5BTUMCPMNC7V6N3BB3T5FTD3ANCNFSM5CD3FV5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

sa2blv commented 3 years ago

You can't have two http servers on the computer with the same port ( apache2 , lighttpd) for database check config.php in www directory.

the protal is verry database heavy it not recomended for slow computers and absolutely not "SD cards" please check this before we proseed to update to 2.5

f5vmr commented 3 years ago

Indeed. But I didn't install lighttpd, or set it running, it must have been another process. I was working only with Apache, or so I thought. It's now fixed. Apache only.

On Tue, 17 Aug 2021, 19:55 Peter, @.***> wrote:

You can't have two http servers on the computer with the same port ( apache2 , lighttpd) for database check config.php in www directory.

the protal is verry database heavy it not recomended for slow computers and absolutely not "SD cards"

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-900551635, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5HYXD4CM2ERUA2LKN3T5KWD7ANCNFSM5CD3FV5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

f5vmr commented 3 years ago

Cannot log a new user into the svxportal : > This erro reported.

Uncaught ReferenceError: generate_coulor is not defined at HTMLDocument. (requset_reflector_login.php:1144) at j (jquery.min.js:2) at Object.fireWith [as resolveWith] (jquery.min.js:2) at Function.ready (jquery.min.js:2) at HTMLDocument.J (jquery.min.js:2)

sa2blv commented 3 years ago

bild

does your porlta look like this? the it is an db conection issue check config.php

f5vmr commented 3 years ago

Yes, I get the the point of adding a repeater, but the apply button at the button remains light in colour and I cannot proceed further. I have been able to register a user. The log is not being read into the portal either.

Chris

On Thu, 19 Aug 2021, 20:14 Peter, @.***> wrote:

[image: bild] https://user-images.githubusercontent.com/10690071/130130310-f27fd4ad-7660-4245-ad02-cddbb6bdc9ed.png

does your porlta look like this? the it is an db conection issue check config.php

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902173510, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5AKHBPTF4FN43MPDR3T5VJ2XANCNFSM5CD3FV5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

sa2blv commented 3 years ago

can you send mi an image of you phpadmin

sa2blv commented 3 years ago

that feature you are trying to use is not yet implemented i svxreflector. the nodes are simply added in svxrefector.conf.

repeater will be added to database using deamon . please se the last message and send me an dadabase image from php my admin so i can se if there is any problem in the db table.

f5vmr commented 3 years ago

It will be tomorrow now, I've ceased operations for today. But yes I will. Thanks Chris

On Thu, 19 Aug 2021, 20:31 Peter, @.***> wrote:

can you send mi an image of you phpadmin

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902183556, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5GUKU7GLTBZHKP3YSLT5VLY5ANCNFSM5CD3FV5A . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email .

f5vmr commented 3 years ago

Good Morning.

Firstly I had a problem with the database that I have rectified, but it is still not reading the /var/log/svxreflector.log on the one node I have attached for testing.

Here is the phpmyadmin screen shot. Regards

Chris

On 19 Aug 2021, at 20:34, Peter @.***> wrote:

that feature you are trying to use is not yet implemented i svxreflector. the nodes are simply added in svxrefector.conf.

repeater will be added to database using deamon . please se the last message and send me an dadabase image from php my admin so i can se if there is any problem in the db table.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902185804, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5CWCKSEVFBZXYXA2BDT5VMF5ANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

I add my log.

On 19 Aug 2021, at 20:34, Peter @.***> wrote:

that feature you are trying to use is not yet implemented i svxreflector. the nodes are simply added in svxrefector.conf.

repeater will be added to database using deamon . please se the last message and send me an dadabase image from php my admin so i can se if there is any problem in the db table.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902185804, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5CWCKSEVFBZXYXA2BDT5VMF5ANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

A little bit about my SVXportal and SVXreflector. They are running on the same raspberry pi 3b. This is not the active portal yet, but I have connected my one node to it to test and to give a log some context.

Chris

On 19 Aug 2021, at 20:34, Peter @.***> wrote:

that feature you are trying to use is not yet implemented i svxreflector. the nodes are simply added in svxrefector.conf.

repeater will be added to database using deamon . please se the last message and send me an dadabase image from php my admin so i can se if there is any problem in the db table.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902185804, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5CWCKSEVFBZXYXA2BDT5VMF5ANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

I think you got it from the wrong foot. svxportal dosent read the /var/log/svxreflector.log I uses an log deamoan that reads the reflector data. thats the prosesses running in the screen.

have you added the json data to the node ? in node_info.json. you can use the tool in the protal to generate the file. it located under my stations.

sa2blv commented 3 years ago

image

Our system work like the the system i build to be able to work with multiple servers and multi locations.

f5vmr commented 3 years ago

It has all become clear now - Thanks fro your explanation. Many thanks - I’ll get back to you when It’s working, Chris

On 20 Aug 2021, at 09:08, Peter @.***> wrote:

https://user-images.githubusercontent.com/10690071/130201625-0bb491ee-7318-4d26-9cc8-236c0d925d7b.png Our system work like the the system i build to be able to work with multiple servers and multi locations.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902515461, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5H2UXLSWVYZEM2XACDT5YEPRANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

i need to fix the installation script for 2.5 the i can upload the public Relese canidate

f5vmr commented 3 years ago

OK What have I broken ? - This is a result from screen command.

Could not open input file: /var/www/website-location/logdeamon.php

Something I think in your terminology I am not interpreting correctly.

It is all to do with the server addresses.

Chris

On 20 Aug 2021, at 09:12, Peter @.***> wrote:

i need to fix the installation script for 2.5 the i can upload the public Relese canidate

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902518178, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5BBEGG2SSFK54L6RZLT5YFABANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

chanhge /var/www/"website-location" in crontab to your svxlportal install folder mine is /var/www/svxportal and then reboot

f5vmr commented 3 years ago

Sorry - I had already done that - Still reports the same error.

Chris

On 20 Aug 2021, at 10:52, Peter @.***> wrote:

chanhge /var/www/"website-location" in crontab to your svxlportal install folder mine is /var/www/svxportal

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902576743, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5AB5ZEWDSINTMZHUQTT5YQVTANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

PHP Warning: file_put_contents(tmp/cache_json.txt): failed to open stream: No such file or directory in /var/www/SVXportal/logdeamon.php on line 75 PHP Warning: fopen(tmp/cache_json.txt): failed to open stream: No such file or directory in /var/www/SVXportal/logdeamon.php on line 79 PHP Warning: filesize(): stat failed for cache_json.txt in /var/www/SVXportal/logdeamon.php on line 80 PHP Warning: fread() expects parameter 1 to be resource, bool given in /var/www/SVXportal/logdeamon.php on line 80 PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/SVXportal/logdeamon.php on line 81 write data!PHP Warning: fopen(tmp/cache_json.txt): failed to open stream: No such file or directory in /var/www/SVXportal/logdeamon.php on line 63 PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /var/www/SVXportal/logdeamon.php on line 64 PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/SVXportal/logdeamon.php on line 65 PHP Notice: Trying to get property 'nodes' of non-object in /var/www/SVXportal/logdeamon.php on line 110 PHP Warning: Invalid argument supplied for foreach() in /var/www/SVXportal/logdeamon.php on line 110

On 20 Aug 2021, at 10:53, Chris Jackson @.***> wrote:

Sorry - I had already done that - Still reports the same error.

Chris

On 20 Aug 2021, at 10:52, Peter @. @.>> wrote:

chanhge /var/www/"website-location" in crontab to your svxlportal install folder mine is /var/www/svxportal

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902576743, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5AB5ZEWDSINTMZHUQTT5YQVTANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

I then changed the tmp/ to /tmp/ in the logdeamon.php and station_heartbeat.php and got this.

PHP Warning: filesize(): stat failed for cache_json.txt in /var/www/SVXportal/logdeamon.php on line 80 PHP Warning: fread(): Length parameter must be greater than 0 in /var/www/SVXportal/logdeamon.php on line 80 write data!PHP Notice: Trying to get property 'nodes' of non-object in /var/www/SVXportal/logdeamon.php on line 110 PHP Warning: Invalid argument supplied for foreach() in /var/www/SVXportal/logdeamon.php on line 110

On 20 Aug 2021, at 10:58, Chris Jackson @.***> wrote:

PHP Warning: file_put_contents(tmp/cache_json.txt): failed to open stream: No such file or directory in /var/www/SVXportal/logdeamon.php on line 75 PHP Warning: fopen(tmp/cache_json.txt): failed to open stream: No such file or directory in /var/www/SVXportal/logdeamon.php on line 79 PHP Warning: filesize(): stat failed for cache_json.txt in /var/www/SVXportal/logdeamon.php on line 80 PHP Warning: fread() expects parameter 1 to be resource, bool given in /var/www/SVXportal/logdeamon.php on line 80 PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/SVXportal/logdeamon.php on line 81 write data!PHP Warning: fopen(tmp/cache_json.txt): failed to open stream: No such file or directory in /var/www/SVXportal/logdeamon.php on line 63 PHP Warning: fwrite() expects parameter 1 to be resource, bool given in /var/www/SVXportal/logdeamon.php on line 64 PHP Warning: fclose() expects parameter 1 to be resource, bool given in /var/www/SVXportal/logdeamon.php on line 65 PHP Notice: Trying to get property 'nodes' of non-object in /var/www/SVXportal/logdeamon.php on line 110 PHP Warning: Invalid argument supplied for foreach() in /var/www/SVXportal/logdeamon.php on line 110

On 20 Aug 2021, at 10:53, Chris Jackson @. @.>> wrote:

Sorry - I had already done that - Still reports the same error.

Chris

On 20 Aug 2021, at 10:52, Peter @. @.>> wrote:

chanhge /var/www/"website-location" in crontab to your svxlportal install folder mine is /var/www/svxportal

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902576743, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5AB5ZEWDSINTMZHUQTT5YQVTANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

Not satisfied that I hadn’t screwed something up, I rebuilt the SVXportal in /var/www/html - changing the parameters in sites-available in apache2. I am satisfied the parameters in my node G4NAB are correct in the node_info.json in the /etc/svxlink/ directory on the node - and that node correctly addresses the svxreflector - they are on the same network.

I have reset the crontab and everything, inducing the /tmp/cache_json.txt but this error still is declared by screen.

Every 1.0s: php /var/www/html/logdeamon.php raspberrypi: Fri Aug 20 11:59:49 2021

PHP Warning: filesize(): stat failed for cache_json.txt in /var/www/html/logdeamon.php on line 80 PHP Warning: fread(): Length parameter must be greater than 0 in /var/www/html/logdeamon.php on line 80 write data!PHP Notice: Trying to get property 'nodes' of non-object in /var/www/html/logdeamon.php on line 110 PHP Warning: Invalid argument supplied for foreach() in /var/www/html/logdeamon.php on line 110

Chris

On 20 Aug 2021, at 10:52, Peter @.***> wrote:

chanhge /var/www/"website-location" in crontab to your svxlportal install folder mine is /var/www/svxportal

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902576743, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5AB5ZEWDSINTMZHUQTT5YQVTANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

I noticed the /var/www/html was missing from the screen command and the crontab and I have added those, but I still have this error.

PHP Warning: filesize(): s tat failed for cache_json.txt in /var/www/html/logdeamon.php on line 80 PHP Warning: fread(): Length parameter must be greater than 0 in /var/www/html/logdeamon.php on line 80 write data!PHP Notice: Trying to get property 'nodes' of non-object in /var/www/html/logdeamon.php on line 110 PHP Warning: Invalid argument supplied for foreach() in /var/www/html/logdeamon.php on line 110

On 20 Aug 2021, at 10:52, Peter @.***> wrote:

chanhge /var/www/"website-location" in crontab to your svxlportal install folder mine is /var/www/svxportal

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902576743, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5AB5ZEWDSINTMZHUQTT5YQVTANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

logdeamon.zip This zip contains the updated version to fix this problem if it still not works try use echo "" > /tmp/cache_json.txt and check premissions maby you nead to use chmod 777 /tmp/cache_json.txt

f5vmr commented 3 years ago

I’ve reinstall the new deamon.php and I get this

write data!PHP Notice: Trying to get property 'nodes' of non-object in /var/www/html/logdeamon.php on line 111 PHP Warning: Invalid argument supplied for foreach() in /var/www/html/logdeamon.php on line 111

On 20 Aug 2021, at 12:32, Peter @.***> wrote:

logdeamon.zip https://github.com/sa2blv/SVXportal/files/7021192/logdeamon.zip This zip contains the updated version to fix this problem if it still not works try use echo "" > /tmp/cache_json.txt and check premissions maby you nead to use chmod 777 /tmp/cache_json.txt

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902628711, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5HPLPYSF54JXURSAQDT5Y4LLANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

I updated the permissions for the /tmp/cache_json.txt too but no changes there.

f5vmr commented 3 years ago

Echo command produces nothing at all

Chris

On 20 Aug 2021, at 12:32, Peter @.***> wrote:

logdeamon.zip https://github.com/sa2blv/SVXportal/files/7021192/logdeamon.zip This zip contains the updated version to fix this problem if it still not works try use echo "" > /tmp/cache_json.txt and check premissions maby you nead to use chmod 777 /tmp/cache_json.txt

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902628711, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5HPLPYSF54JXURSAQDT5Y4LLANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

what data do you get when you load the url for the proxy?

http://url/reflector_proxy/index.php

f5vmr commented 3 years ago

That doesn’t react - I have url in this as localhost in the config.php, I’ve then changed it to its own IP address (also local) and still nothing. What is the significance of port 8181? Does this have a bearing? Svxreflector and the svxportal are running on the same host.

Chris

On 20 Aug 2021, at 13:00, Peter @.***> wrote:

what data do you get when you load the url for the proxy?

http://url/reflector_proxy/index.php http://url/reflector_proxy/index.php — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902641184, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5BRG3TW6ZDA6D7GERDT5Y7UNANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

I have just performed the changes to the SVXportal on the live Reflector, and I am getting the same two line errors.

write data!PHP Notice: Trying to get property 'nodes' of non-object in /var/www/html/logdeamon.php on line 111 PHP Warning: Invalid argument supplied for foreach() in /var/www/html/logdeamon.php on line 111

All the nodes connected to the reflector are correctly configured with the node_info.json. I had svxrdb partly working and it was displaying the node info. Bu that reflector portal does not have your superlative display.

Chris

On 20 Aug 2021, at 13:00, Peter @.***> wrote:

what data do you get when you load the url for the proxy?

http://url/reflector_proxy/index.php http://url/reflector_proxy/index.php — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902641184, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5BRG3TW6ZDA6D7GERDT5Y7UNANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

there are two config files one for reflector_proxy the shoud pont to the reflector server and the main config.php shout point to the proxy.

the error Trying to get property 'nodes' of non-object in / meas that no data is available from the reflectorsever

check that you get data from the reflektor_proxy

ex.

in main config.php $serveradress ="http://Your_url/reflektor_proxy/";

reflector_proxy/config.php

$Svx_reflector_address = "http://reflektorserver:8181/status ";

avoud using localhost use DNS or ip

f5vmr commented 3 years ago

http://svxportal-uk.ddns.net/index.php http://svxportal-uk.ddns.net/index.php

Finally - However it will not show my node although it is connected to the same svxportal and the node_info.json is correct. I did all the rest of those with which I am sysop. I cannot understand why mine is not showing. Chris

On 20 Aug 2021, at 14:43, Peter @.***> wrote:

there are two config files one for reflector_proxy the shoud pont to the reflector server and the main config.php shout point to the proxy.

the error Trying to get property 'nodes' of non-object in / meas that no data is available from the reflectorsever

check that you get data from the reflektor_proxy

ex.

in main config.php $serveradress ="http://Your_url/reflektor_proxy/";

reflector_proxy/config.php

$Svx_reflector_address = "http://reflektorserver:8181/status http://reflektorserver:8181/status ";

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902702311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5D6CULE7WIGUACNKTTT5ZLXLANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

Sorted my node - I had Hidden = true in the node_info.json…. So it’s now complete and running on a Raspberry Pi 3B.

There will be two or three more nodes joining in the next couple of weeks from the Warwick Area in the UK. Three repeaters and a simplex test node.

Regards and Good Night

Chris G4NAB

On 20 Aug 2021, at 14:43, Peter @.***> wrote:

there are two config files one for reflector_proxy the shoud pont to the reflector server and the main config.php shout point to the proxy.

the error Trying to get property 'nodes' of non-object in / meas that no data is available from the reflectorsever

check that you get data from the reflektor_proxy

ex.

in main config.php $serveradress ="http://Your_url/reflektor_proxy/";

reflector_proxy/config.php

$Svx_reflector_address = "http://reflektorserver:8181/status http://reflektorserver:8181/status ";

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-902702311, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5D6CULE7WIGUACNKTTT5ZLXLANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

sa2blv commented 3 years ago

i have made an self check for the 2.5 version i will probably get the relese canidate out this weeken it just the databas update scipt that i neadad to be fixed

sa2blv commented 3 years ago

think you nead to install the languge-packs :)

sudo apt-get install gettext
sudo locale-gen uk_UA
sudo locale-gen sv_SE
sudo locale-gen nb_NO
sudo locale-gen it_IT
sudo locale-gen de_DE
sudo locale-gen de_DE.utf8
sudo locale-gen tr_TR.UTF-8
sudo locale-gen ft_FR.UTF-8

sudo locale-gen ft_FR

if you use apache sudo service apache2 restart

f5vmr commented 3 years ago

That’s odd because I see the page in English on my MacBook and Swedish on my tablet. Peter has built-in the language pages of the explanation page. Only the English is installed in the SVXportal.

Chris.

On 21 Aug 2021, at 22:05, Peter @.***> wrote:

think you nead to install the languge-packs :)

sudo apt-get install gettext sudo locale-gen uk_UA sudo locale-gen sv_SE sudo locale-gen nb_NO sudo locale-gen it_IT sudo locale-gen de_DE sudo locale-gen de_DE.utf8 sudo locale-gen tr_TR.UTF-8 sudo locale-gen ft_FR.UTF-8 sudo locale-gen ft_FR

if you use apache sudo service apache2 restart

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-903176302, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5DRR4TYQXVEJYKLSD3T6AIJ7ANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email.

f5vmr commented 3 years ago

It is working but there are still issues on receivers or recivers as you have put it. Not everything is displaying other than the headline screen as it should and I haven't got it streaming yet.

f5vmr commented 3 years ago

you can view the results here - svxportal-uk.ddns.net

f5vmr commented 3 years ago

And suddenly all the receivers appears. It is a setting in one of the repeaters - I just changed it.

sa2blv commented 3 years ago

this adress must be public avalebel nocal lik 192.168.1.2

$serveradress ="http://sk3w.se/svxreflektor/reflektor%20proxy/";

f5vmr commented 3 years ago

That’s is corrected - however I get default Swedish page at System Information even when I select English……

Can you help there?

Chris

On 3 Sep 2021, at 21:53, Peter @.***> wrote:

this adress must be public avalebel nocal lik 192.168.1.2

$serveradress ="http://sk3w.se/svxreflektor/reflektor%20proxy/ http://sk3w.se/svxreflektor/reflektor%20proxy/";

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sa2blv/SVXportal/issues/23#issuecomment-912804128, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACAKA5HDJFFIGYD5FJREBDDUAEYTPANCNFSM5CD3FV5A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

sa2blv commented 3 years ago

The feature with english description is implemented in version 2.5. ut ugrade to rc canidate use

git clone https://github.com/sa2blv/SVXportal.git "if you havend none it allready " git checkout svxportal2.5 git pull

you need to run update.php after file update