owncloud / music

:notes: Music app for ownCloud
GNU Affero General Public License v3.0
563 stars 197 forks source link

ampache api authentication #384

Open mcumbee opened 9 years ago

mcumbee commented 9 years ago

Cant seem to get any client to work with the ampache api, for either android or ios. It will play music via web access from both windows and linux pc, but no tablets, phones or music apps. The majority of the time I am getting bad password response, or simply no response at all. The key creator in owncloud does not display the key after the popup is cleared, so I am not sure if this key is being generated and saved. Can someone point me in the right direction? The server log on the admin page leaves the flollowing " Accessing the API class is deprecated! Use the appropriate services instead! " I cannot find anything in the apache or owncloud logs that seem to be related to this issue. The music version is .035 the server is oc8.01 running on a opensuse linux box. I am using apache ,mysql(mariadb) and php5.6 Thank-you Dazed and confused........

ghost commented 9 years ago

Hi @mcumbee,

It looks like there is some information missing from your ticket that will be needed in order to diagnose and fix the problem at hand. Please take a look at the Contribution Guidelines, which will tell you exactly what your ticket has to contain in order to be processable.

I'm marking this one now as needing some more information. Please understand that if you do not provide that information within the next two weeks (until 2015-06-15 11:56) I'll close this ticket so it doesn't clutter the bug tracker.

Best regards, ~ Your friendly GitIssueBot

PS: I'm just an automated script, not a human being.

Fraleoni commented 9 years ago

Since I am suffering the same issue, I'give a try to give some more info:

Steps to reproduce

  1. Install ampcache capable music App on an Android device (Tomahawk on Windows can connect without issues)
  2. Create password
  3. Configure app with freshly created pass and try to connect using some (e.g.) Android App (Like Tomahawk for example, but all apps I tried have the same behaviuour)

Expected behaviour

Should be able to play archived music

Actual behaviour

The app show "bad password" response

Server configuration

Operating system: NAME="Ubuntu" VERSION="14.04.2 LTS, Trusty Tahr"

Web server: Apache Database: MySql PHP version: PHP 5.5.9-1ubuntu4.11 (cli) (built: Jul 2 2015 15:17:32) ownCloud version: (see ownCloud admin page) 8.0.4.2 Updated from an older ownCloud or fresh install: Updated from 8.0.3.4

List of activated apps:

If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder

Enabled:

Disabled:

The content of config/config.php:

If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system --public
from within your ownCloud installation folder

or 

Insert your config.php content here
(Without the database password, passwordsalt and secret)

$CONFIG = array ( 'instanceid' => 'oca490076fee', 'passwordsalt' => '***_', 'trusteddomains' => array ( 0 => 'my.domain.it', 1 => 'my.domain.it', 2 => 'my.domain.it', ), 'datadirectory' => '/media/zitzu/extdata/owncloud-data/', 'dbtype' => 'mysql', 'version' => '8.0.4.2', 'dbname' => 'owncloud', 'dbhost' => 'localhost', 'dbtableprefix' => 'oc', 'dbuser' => 'ocadmin', 'dbpassword' => '***_', 'installed' => true, 'theme' => '', 'maintenance' => false, 'mail_from_address' => 'admin', 'mail_smtpmode' => 'smtp', 'maildomain' => '*******_', 'mail_smtpsecure' => 'ssl', 'loglevel' => 2, 'mail_smtpauthtype' => 'PLAIN', 'mail_smtpauth' => true, 'mail_smtphost' => 'smtp.gmail.com', 'mail_smtpport' => '465', 'mailsmtpname' => '****_@gmail.com', 'mail_smtppassword' => '****', 'forcessl' => true, 'secret' => '_**', ); ~

Are you using external storage, if yes which one: local/smb/sftp/... No

Are you using encryption: yes/no No

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... No

Client configuration

Browser: N/A Operating system: N/A

Logs

Web server error log

Insert your webserver log here

ownCloud log (data/owncloud.log)

Insert your ownCloud log here

Pasting only "music" related messages {"reqId":"41f384c20df1510a6ba5b33403c63899","remoteAddr":"2.227.232.32","app":"core","message":"Invalid OCS content returned for app music","level":4,"time":"2015-07-17T19:46:05+00:00"} {"reqId":"9cd24d763cb5a0487d48ef7bd7024ed6","remoteAddr":"2.227.232.32","app":"PHP","message":"Argument 10 passed to OCA\Music\Controller\ApiController::__construct() must be an instance of OCP\Files\Folder, null given, called in \/media\/zitzu\/extdata\/www\/apps\/music\/app\/music.php on line 89 and defined at \/media\/zitzu\/extdata\/www\/apps\/music\/controller\/apicontroller.php#61","level":3,"time":"2015-07-19T13:21:02+00:00"}

Browser log

Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log 
c) ...
igokul1973 commented 6 years ago

Any fix on this issue pending? I have the same problem on owncloud installed as a docker service. Two android clients (Tomahawk and Power Ampache) cannot login, referencing bad credentials... I am wondering if any port should be open in the owncloud docker container expecting authentication to the music app.

paulijar commented 6 years ago

@igokul1973 Sorry, no fixes pending. In my setup, Tomahawk on Win10 and Power Ampache on Android connect to the server without any problems so I really don't know what to fix. I'm not familiar with docker but on my firewall I have opened ports 80 (for http), 443 (for https) and 22 (for ssh). I'm using the ampache api via URI https://<domain>/nextcloud/index.php/apps/music/ampache.

mcumbee commented 6 years ago

I see one difference I am using http as I do not allow access outside of my network.. I eventually just installed ampache as a separate service which works I am just wondering after reading this if not using https could have had anything to do with it. I havent tried it with owncloud in some time.

paulijar commented 5 years ago

@igokul1973 Were you, by any chance, using LDAP for ownCloud login? I just found out recently that in that case the Ampache login must be made using the user UUID instead of the login name. Starting from version 0.9.1, the Music app shows the correct name to use for Ampache login when you generate a new password.

mcumbee commented 5 years ago

No ldap/ local password accounts as it is only used on our home lan. I have a lamp setup. I go straight to ampache now and use the owncloud server to upload additions to our music and photo library. I am soon to move it to a new server and might play with it again after that.

On Sun, Sep 16, 2018 at 4:18 PM, Pauli Järvinen notifications@github.com wrote:

@igokul1973 https://github.com/igokul1973 Were you, by any chance, using LDAP for ownCloud login? I just found out recently that in that case the Ampache login must be made using the user UUID instead of the login name. Starting from version 0.9.1, the Music app shows the correct name to use for Ampache login when you generate a new password.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/owncloud/music/issues/384#issuecomment-421825782, or mute the thread https://github.com/notifications/unsubscribe-auth/AMGlYCBMBqxdF_1ErjphaSc2zCg1EDvlks5ubrINgaJpZM4EySlD .

-- Stamp out MalWare...Delete Windows

igokul1973 commented 5 years ago

Nope, no LDAP has been used. 

Отправлено с устройства Samsung

-------- Исходное сообщение -------- От: Pauli Järvinen notifications@github.com Дата: 16.09.2018 23:18 (GMT+03:00) Кому: owncloud/music music@noreply.github.com Копия: "Igor K." igk19@rambler.ru, Mention mention@noreply.github.com Тема: Re: [owncloud/music] ampache api authentication (#384)

@igokul1973 Were you, by any chance, using LDAP for ownCloud login? I just found out recently that in that case the Ampache login must be made using the user UUID instead of the login name. Starting from version 0.9.1, the Music app shows the correct name to use for Ampache login when you generate a new password.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread. {"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/owncloud/music","title":"owncloud/music","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/owncloud/music"}},"updates":{"snippets":[{"icon":"PERSON","message":"@paulijar in #384: @igokul1973 Were you, by any chance, using LDAP for ownCloud login? I just found out recently that in that case the Ampache login must be made using the user UUID instead of the login name. Starting from version 0.9.1, the Music app shows the correct name to use for Ampache login when you generate a new password."}],"action":{"name":"View Issue","url":"https://github.com/owncloud/music/issues/384#issuecomment-421825782"}}} [ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/owncloud/music/issues/384#issuecomment-421825782", "url": "https://github.com/owncloud/music/issues/384#issuecomment-421825782", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } }, { "@type": "MessageCard", "@context": "http://schema.org/extensions", "hideOriginalBody": "false", "originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB", "title": "Re: [owncloud/music] ampache api authentication (#384)", "sections": [ { "text": "", "activityTitle": "Pauli Järvinen", "activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png", "activitySubtitle": "@paulijar", "facts": [

] } ], "potentialAction": [ { "name": "Add a comment", "@type": "ActionCard", "inputs": [ { "isMultiLine": true, "@type": "TextInput", "id": "IssueComment", "isRequired": false } ], "actions": [ { "name": "Comment", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"owncloud/music\",\n\"issueId\": 384,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}" } ] }, { "name": "Close issue", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"owncloud/music\",\n\"issueId\": 384\n}" }, { "targets": [ { "os": "default", "uri": "https://github.com/owncloud/music/issues/384#issuecomment-421825782" } ], "@type": "OpenUri", "name": "View on GitHub" }, { "name": "Unsubscribe", "@type": "HttpPOST", "target": "https://api.github.com", "body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 80292163\n}" } ], "themeColor": "26292E" } ]