Open juliusg opened 11 years ago
In your config file, what does ampache.url
look like... it should be like this:
{
"ampache": {
"url": "http://example.com:1234/ampache/server/xml.server.php"
}
}
i have the same issue.. tried your suggestion but i get a "Failed to authenticate!" error below are the logs. Any help would be appreciated... thanks.. BTW i am running it on raspberry pi and i can access ampache web interface from my laptop via 'http://meisterpi.in/ampache-3.7.0'
pi@meisterpi /var/www/ampache-3.7.0 $ cat ~/.webamp/config.json { "ampache": { "user": "admin", "pass": "root", "url": "http://meisterpi.in/ampache-3.7.0/index.php", "ping": 600000, "debug": false }, "web": { "log": true, "host": "localhost", "port": 8076 }, "cache": { "artwork": true } } pi@meisterpi /var/www/ampache-3.7.0 $ webamp [2014-06-20T16:56:24.826Z] Server running at http://localhost:8076/ [2014-06-20T16:56:27.100Z] Successfully Authenticated! [2014-06-20T16:56:27.107Z] Populating cache [2014-06-20T16:56:28.651Z] You are running the latest version 0.0.25 [2014-06-20T16:56:30.224Z] Loaded artists from remote source [2014-06-20T16:56:31.018Z] Loaded albums from remote source [2014-06-20T16:56:31.034Z] Calculating albums by artist
TypeError: Cannot read property '@' of undefined
at /usr/local/lib/node_modules/webamp/server.js:186:31
at Array.forEach (native)
at cache_x_by_y (/usr/local/lib/node_modules/webamp/server.js:185:25)
at try_to_process (/usr/local/lib/node_modules/webamp/server.js:145:38)
at /usr/local/lib/node_modules/webamp/server.js:138:7
at /usr/local/lib/node_modules/webamp/node_modules/ampache/index.js:156:7
at Parser.
pi@meisterpi /var/www/ampache-3.7.0 $ webamp [2014-06-20T16:59:53.117Z] Server running at http://localhost:8076/ [2014-06-20T16:59:54.088Z] You are running the latest version 0.0.25 [2014-06-20T16:59:54.517Z] Failed to authenticate! [2014-06-20T16:59:54.528Z] Username: admin [2014-06-20T16:59:54.533Z] Password: **** [2014-06-20T16:59:54.535Z] URL: http://meisterpi.in/ampache-3.7.0/server/xml.server.php
null pi@meisterpi /var/www/ampache-3.7.0 $ nano ~/.webamp/config.json pi@meisterpi /var/www/ampache-3.7.0 $ cat ~/.webamp/config.json { "ampache": { "user": "admin", "pass": "root", "url": "http://meisterpi.in/ampache-3.7.0/server/xml.server.php", "ping": 600000, "debug": false }, "web": { "log": true, "host": "localhost", "port": 8076 }, "cache": { "artwork": true } }
I installed webamp according to the instuctions and all seems to be working fine for the first few seconds but then...
linuxserver:~ # webamp [2013-10-06T08:55:08.248Z] Server running at http://192.168.2.1:8076/ [2013-10-06T08:55:08.423Z] You are running the latest version 0.0.25 [2013-10-06T08:55:08.747Z] Successfully Authenticated! [2013-10-06T08:55:08.749Z] Populating cache [2013-10-06T08:55:24.234Z] Loaded artists from remote source [2013-10-06T08:55:24.268Z] Loaded albums from remote source [2013-10-06T08:55:24.272Z] Calculating albums by artist
TypeError: Cannot read property '@' of undefined at /usr/lib/node_modules/webamp/server.js:186:31 at Array.forEach (native) at cache_x_by_y (/usr/lib/node_modules/webamp/server.js:185:25) at try_to_process (/usr/lib/node_modules/webamp/server.js:145:38) at /usr/lib/node_modules/webamp/server.js:138:7 at /usr/lib/node_modules/webamp/node_modules/ampache/index.js:156:7 at Parser. (/usr/lib/node_modules/webamp/node_modules/ampache/node_modules/xml2js/lib/xml2js.js:199:18)
at Parser.EventEmitter.emit (events.js:95:17)
at Object.saxParser.onclosetag (/usr/lib/node_modules/webamp/node_modules/ampache/node_modules/xml2js/lib/xml2js.js:183:24)
at emit (/usr/lib/node_modules/webamp/node_modules/ampache/node_modules/xml2js/node_modules/sax/lib/sax.js:602:33)
Any suggestions anyone? please? Thankyou!