Network server requires authentication
Posted: Thu Jul 20, 2023 2:04 am
OS PopOS! (Ubuntu)
I have installed libphidget22 using the install script(Non-Root).
Have added the additional packages.
libphidget22-dev
libphidget22extra
phidget22networkserver
libphidget22java
phidget22admin
phidget22wwwjs
No issues, started up phidget22networkserver.
sudo phidget22networkserver -v
Phidget22NetworkServer 1.1
2023-07-20T09:00:03.000 <Info> netsrv[main()] : Phidget22NetworkServer 1.1
I can see the web server and network server are listening
phidget22 463872 root 13u IPv4 1463184 0t0 TCP *:8080 (LISTEN)
phidget22 463872 root 15u IPv4 1470973 0t0 TCP *:5661 (LISTEN)
Using Chrome or Firefox navigating to 127.0.0.1:8080 the page loads but I get a Password prompt modal.
Checked /etc/phidgets/phidget22networkserver.pc
There is no auth present, tried adding a server auth password but it this password does not work.
Added auth
Still cannot login.
Have tried removing all packages and deleting folders. reboot and re install. Still get the password prompt !
phidget22networkserver.log
****************************** Logging Enabled ******************************
* Phidget22 - Version 1.16 - Built Jul 6 2023 22:39:42 *
* Release 1.16 - Linux (64-bit) *
*******************************************************************************
2023-07-19T16:18:39.000 <Info> phidget22usb[PhidgetUSBScanDevices()] : Initializing libusb
2023-07-19T16:18:39.000 <Info> phidget22[deviceAttach()] : (Attach) Dictionary (Dictionary) v100 S/N:2 Label:Phidget22 Control
2023-07-19T16:18:39.000 <Info> phidget22net[setAllowClients()] : Client network connections allowed by default
2023-07-19T16:18:39.000 <Info> phidget22net[PhidgetNet_start()] : Starting Networking
2023-07-19T16:18:39.000 <Info> phidget22usb[PhidgetUSBScanDevices()] : New Phidget found in PhidgetUSBBuildList: 1/6
2023-07-19T16:18:40.000 <Info> phidget22[deviceAttach()] : (Attach) 1017 (PhidgetInterfaceKit 0/0/8) v100 S/N:313651
2023-07-19T16:18:40.000 <Info> phidget22net[startServer()] : Published '_phidget22server._tcp' on port 5661 for discovery
2023-07-19T16:18:40.000 <Info> netsrv[startPhidgetServer()] : Started Phidget Server ellie 127.0.0.1:5661
2023-07-19T16:18:40.000 <Info> www[startWebServer()] : Phidget22 Web Server Starting
2023-07-19T16:18:40.000 <Info> www[startWebServer()] : Started Phidget WWW Server ellie Phidget22 WWW Server 0.0.0.0:8080
2023-07-19T16:18:57.000 <Info> www[handleWWWClient()] : updating 127.0.0.1:46602 to device connection
2023-07-19T16:18:57.000 <ERROR> www[handleWWWClient()] : failed to handle phidgets websocket connection
server.c+632 handleDeviceClient() : (Access Denied) failed to start server connection
network.c+1292 startServerConnection() : (Access Denied) failed to authenticate client
2023-07-19T16:18:58.000 <Info> www[handleWWWClient()] : updating 127.0.0.1:43580 to device connection
2023-07-19T16:18:58.000 <ERROR> www[handleWWWClient()] : failed to handle phidgets websocket connection
server.c+632 handleDeviceClient() : (Access Denied) failed to start server connection
I'm now out of ideas....
Help appreciated.
I have installed libphidget22 using the install script(Non-Root).
Have added the additional packages.
libphidget22-dev
libphidget22extra
phidget22networkserver
libphidget22java
phidget22admin
phidget22wwwjs
No issues, started up phidget22networkserver.
sudo phidget22networkserver -v
Phidget22NetworkServer 1.1
2023-07-20T09:00:03.000 <Info> netsrv[main()] : Phidget22NetworkServer 1.1
I can see the web server and network server are listening
phidget22 463872 root 13u IPv4 1463184 0t0 TCP *:8080 (LISTEN)
phidget22 463872 root 15u IPv4 1470973 0t0 TCP *:5661 (LISTEN)
Using Chrome or Firefox navigating to 127.0.0.1:8080 the page loads but I get a Password prompt modal.
Checked /etc/phidgets/phidget22networkserver.pc
There is no auth present, tried adding a server auth password but it this password does not work.
Code: Select all
phidget {
enabled: true
logging {
level: debug
file: '/var/log/phidget22networkserver.log'
}
network {
ipv4 {
port: 5661
}
publish {
enabled: true
}
}
feature {
control {
enabled: true
}
dictionary {
enabled: true
directory: '/etc/phidgets/dictionary.d'
}
}
www {
enabled: true
docroot: '/var/phidgets/www'
mimetypes: '/etc/phidgets/mimetypes.kv'
logging {
level: debug
accesslog: '/var/log/phidget22access.log'
}
network {
ipv4 {
port: 8080
}
publish {
enabled: true
}
}
phidgets {
enabled: true
}
}
}
Code: Select all
phidget {
enabled: true
auth {
password: 'ABCD'
}
logging {
level: debug
file: '/var/log/phidget22networkserver.log'
}
network {
ipv4 {
port: 5661
}
publish {
enabled: true
}
}
feature {
control {
enabled: true
}
dictionary {
enabled: true
directory: '/etc/phidgets/dictionary.d'
}
}
www {
enabled: true
docroot: '/var/phidgets/www'
mimetypes: '/etc/phidgets/mimetypes.kv'
logging {
level: debug
accesslog: '/var/log/phidget22access.log'
}
network {
ipv4 {
port: 8080
}
publish {
enabled: true
}
}
phidgets {
enabled: true
}
}
}
Have tried removing all packages and deleting folders. reboot and re install. Still get the password prompt !
phidget22networkserver.log
****************************** Logging Enabled ******************************
* Phidget22 - Version 1.16 - Built Jul 6 2023 22:39:42 *
* Release 1.16 - Linux (64-bit) *
*******************************************************************************
2023-07-19T16:18:39.000 <Info> phidget22usb[PhidgetUSBScanDevices()] : Initializing libusb
2023-07-19T16:18:39.000 <Info> phidget22[deviceAttach()] : (Attach) Dictionary (Dictionary) v100 S/N:2 Label:Phidget22 Control
2023-07-19T16:18:39.000 <Info> phidget22net[setAllowClients()] : Client network connections allowed by default
2023-07-19T16:18:39.000 <Info> phidget22net[PhidgetNet_start()] : Starting Networking
2023-07-19T16:18:39.000 <Info> phidget22usb[PhidgetUSBScanDevices()] : New Phidget found in PhidgetUSBBuildList: 1/6
2023-07-19T16:18:40.000 <Info> phidget22[deviceAttach()] : (Attach) 1017 (PhidgetInterfaceKit 0/0/8) v100 S/N:313651
2023-07-19T16:18:40.000 <Info> phidget22net[startServer()] : Published '_phidget22server._tcp' on port 5661 for discovery
2023-07-19T16:18:40.000 <Info> netsrv[startPhidgetServer()] : Started Phidget Server ellie 127.0.0.1:5661
2023-07-19T16:18:40.000 <Info> www[startWebServer()] : Phidget22 Web Server Starting
2023-07-19T16:18:40.000 <Info> www[startWebServer()] : Started Phidget WWW Server ellie Phidget22 WWW Server 0.0.0.0:8080
2023-07-19T16:18:57.000 <Info> www[handleWWWClient()] : updating 127.0.0.1:46602 to device connection
2023-07-19T16:18:57.000 <ERROR> www[handleWWWClient()] : failed to handle phidgets websocket connection
server.c+632 handleDeviceClient() : (Access Denied) failed to start server connection
network.c+1292 startServerConnection() : (Access Denied) failed to authenticate client
2023-07-19T16:18:58.000 <Info> www[handleWWWClient()] : updating 127.0.0.1:43580 to device connection
2023-07-19T16:18:58.000 <ERROR> www[handleWWWClient()] : failed to handle phidgets websocket connection
server.c+632 handleDeviceClient() : (Access Denied) failed to start server connection
I'm now out of ideas....
Help appreciated.