[WebService] General Media Access Webservice (4 Viewers)

nip.nyborg

Portal Pro
January 12, 2007
98
9
Home Country
Denmark Denmark
Hi
First thanks for the great work on GMAwebservice.

I use GMA-webservice with aMPdroid, and first reported the problems in that forum, but DieBagger thinks that the problem is in GMA-webservice, so here it is.

There are a few minor things. Maybe you already know and fixed it.

1. Albums with “various artists” as albumartist, have no thumbs/covers, but if I make a copy of the Thumbs and rename them to
like “Various Artists-Now Music 18” then I get the “thumb/Albumcover”.

2. Some Albums are empty, often also albums with various artists. But also all U2 albums are empty, but when I change
id tags “albumartist” from U2 to Band2, it was OK and I got songs in the album.
With the other albums I could not find out why, but I will keep trying to find the reason and report.

Edit: Found out albums with apostrof like "let´s go"= empty album (no songs)
 

Cyrus1896

Portal Pro
November 9, 2009
63
6
Re: Re : [WebService] General Media Access Webservice

Hey ...

I don't know why, but I can't install GmaWebService .... :

> I double click the installer
> I see the progress bar
> .. and then, the install windows desapear, with no (error) message.
In program files directory there is no GMAWebService directory

I install / uninstall / reinstall .NET 4.0 full many times ... My login user is administrator. UAC is OFF ... no firewall, no antivirus
My system is Win 7 x32

If I look in program files directory during install, I see the directory GmaWebService appear ... and disappear

Is there somewhere an install/error log that I can check to see what's happen ?

Thanks for your help

Same Problem here with:

Windows 7 Enterprise x64
Windows Server 2008 R2 (x64)

I tried it with the compatibility mode and with Admin rights, nothing happened.:confused:
 

Mike Lowrey

Portal Pro
February 4, 2009
638
124
Berlin
Home Country
Germany Germany
1. Albums with “various artists” as albumartist, have no thumbs/covers, but if I make a copy of the Thumbs and rename them to
like “Various Artists-Now Music 18” then I get the “thumb/Albumcover”.

Can you please check whether there are any fitting thumbs for these songs(may be with another naming scheme)?
If yes, than it's an issue with the service, if not it's an issue of the MP thumbs management because the service only uses MPs thumbs...


2. Some Albums are empty, often also albums with various artists. But also all U2 albums are empty, but when I change
id tags “albumartist” from U2 to Band2, it was OK and I got songs in the album.
With the other albums I could not find out why, but I will keep trying to find the reason and report.
I will check this :)
 

Oxan

Retired Team Member
  • Premium Supporter
  • August 29, 2009
    1,730
    1,124
    Home Country
    Netherlands Netherlands
    Yeah this isn't something i really like too, but since some parts of the databases do not offer enough possibilities to work around this and i'm not interested in designing a database only to work around these things i haven't had much choice ;)

    My idea to secure the stuff was to start the service under a different user which has only access to the used shared.

    Regarding WebMediaPortal is it possible for you to also look on how to implement streaming for movies? If you have done this once i would be able to to this for the other media types too.

    My "dream" in reference to the whole log in stuff was to access the Windows NTLM system. With this we would have a working default user, a secure way to store username and passwords.
    Yeah, I totally agree that designing another database would be a bad thing. Well, we just have to live with it and the chosen solution is the best I think. Running as a different user sounds good, but I'm afraid that would be quite hard to setup in a installer and maybe you get permissions problems when you try to open the database in MP? No experience though, so this is just a wild guess.

    WebMP: Sure, I'll take a look; it shouldn't be too hard. As for NTLM, wiki says (never heard of it before) that Microsoft discourages use of it in new applications. The idea of integrating authentication with Windows is a nice one though.
     

    Mike Lowrey

    Portal Pro
    February 4, 2009
    638
    124
    Berlin
    Home Country
    Germany Germany
    Running as a different user sounds good, but I'm afraid that would be quite hard to setup in a installer and maybe you get permissions problems when you try to open the database in MP? No experience though, so this is just a wild guess.
    Yeah that's right. Another option would be to check whether the requested path is a subpath of the PictureShare(saved in MediaPortal.xml)
    If it's is than accessing it would be secure, if not the user gets an error message.

    As for NTLM, wiki says (never heard of it before) that Microsoft discourages use of it in new applications.
    Well if they (would) discourage i would wonder why they are using it in their latest product(Windows SBS Essentials/WHS v2 aka. Vail) ;) It seems that wiki is not up to date ;)
     

    DieBagger

    Retired Team Member
  • Premium Supporter
  • September 11, 2007
    2,516
    1,276
    40
    Austria
    Home Country
    Austria Austria
    Just so I don't forget: We have a problem with series names (most likely also movies etc.) that have numerical names (like "24").

    The SafeStr method will throw a System.InvalidCastException exception:

    System.InvalidCastException: Specified cast is not valid.
    at System.Data.SQLite.SQLiteDataReader.VerifyType(Int32 i, DbType typ)
    at System.Data.SQLite.SQLiteDataReader.GetString(Int32 i)
    at GmaWebService.Code.Helper.DatabaseHelperMethods.SafeStr(SQLiteDataReader reader, Int32 idx) in C:\Users\DieBagger\Documents\Projects\MediaPortal\GmaWebService\Source\GmaWebService\GmaWebService\Code\Helper\DatabaseHelperMethods.cs:line 28

    And funny enough, I found a link to forum.team-mediaportal when searching for the error: https://forum.team-mediaportal.com/...ver-mediaportal-71404/index10.html#post520022
     

    dak61

    New Member
    May 21, 2011
    2
    0
    Home Country
    Re: Re : [WebService] General Media Access Webservice

    Hey ...

    I don't know why, but I can't install GmaWebService .... :

    > I double click the installer
    > I see the progress bar
    > .. and then, the install windows desapear, with no (error) message.
    In program files directory there is no GMAWebService directory

    I install / uninstall / reinstall .NET 4.0 full many times ... My login user is administrator. UAC is OFF ... no firewall, no antivirus
    My system is Win 7 x32

    If I look in program files directory during install, I see the directory GmaWebService appear ... and disappear

    Is there somewhere an install/error log that I can check to see what's happen ?

    Thanks for your help

    Same Problem here with:

    Windows 7 Enterprise x64
    Windows Server 2008 R2 (x64)

    I tried it with the compatibility mode and with Admin rights, nothing happened.:confused:

    Hi, I had the same issue. You can activate logging by adding the values below to the registry. (dont forget to delete them when you are finished)

    In my case I had firewall diabled and the installation aborted when it tried to open the firewall port. Solution: start firewall, run installation, stop firewall. I had to go and start the firewall service first.

    Hope this helps


    Here are the steps to enable logging for MSI based installations.

    Click on the Start menu, choose Run, type cmd and click OK
    Run this command in the cmd prompt: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v Debug /t REG_DWORD /d 7 /f
    Run this command in the cmd prompt: reg add "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v Logging /t REG_SZ /d voicewarmupx! /f
    Re-run the setup and let it fail one more time
    Go to your temporary folder (go to the Start menu, choose Run, and type %temp%)
    Locate a file named msi*.log (where * is a randomly generated set of letters and numbers)
    Zip the msi*.log file (because it tends to be very large but since it is text it compresses nicely)
    Run this command in the cmd prompt: reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v Debug /f
    Run this command in the cmd prompt: reg delete "HKLM\SOFTWARE\Policies\Microsoft\Windows\Installer" /v Logging /f
     

    mardup

    Portal Pro
    October 24, 2007
    153
    8
    Toulouse
    Home Country
    France France
    Re : [WebService] General Media Access Webservice

    @dak61 : thanks for your answer and for the tip to enalbe loging

    I tried to see something in the log, but unfortunely I don't know a lot ...

    So here is my log .. if someone want to look in ...

    :D
     

    dak61

    New Member
    May 21, 2011
    2
    0
    Home Country
    Mardup,
    it aborts after this solooks a firewall issue

    ExecFirewallExceptions: Error 0x800706d9: failed to add/update port exception for name 'General MediaAccess WCF Service' on port 44321, protocol 6

    Make sure the firewall service is not disabled or has some other issue.

    Maybe the installer should be modified to ignore this error ?

    Thanks,
    Greg
     

    cederron

    Portal Member
    December 27, 2010
    16
    4
    Home Country
    Spain Spain
    Hello,

    first i want to thank the creators of this software, amazing things can be done with it.

    Now time for the problems, getting the list of movies works ok, but music is not working, i go to:

    http://localhost:44321/GmaWebService/MediaAccessService/json/MP_GetAllAlbums

    and i get the following:

    {"ExceptionType":"System.Data.SQLite.SQLiteException","Message":"SQLite error\u000d\u000ano such table: tracks","StackTrace":" en System.Data.SQLite.SQLite3.Prepare(SQLiteConnection cnn, String strSql, SQLiteStatement previous, UInt32 timeoutMS, String& strRemain)\u000d\u000a en System.Data.SQLite.SQLiteCommand.BuildNextCommand()\u000d\u000a en System.Data.SQLite.SQLiteCommand.GetStatement(Int32 index)\u000d\u000a en System.Data.SQLite.SQLiteDataReader.NextResult()\u000d\u000a en System.Data.SQLite.SQLiteDataReader..ctor(SQLiteCommand cmd, CommandBehavior behave)\u000d\u000a en System.Data.SQLite.SQLiteCommand.ExecuteReader(CommandBehavior behavior)\u000d\u000a en System.Data.SQLite.SQLiteCommand.ExecuteReader()\u000d\u000a en GmaWebService.Code.MPMusic.GetArtists(Int32 start, Int32 end)\u000d\u000a en GmaWebService.MediaAccessService.MP_GetAllArtists()\u000d\u000a en SyncInvokeMP_GetAllArtists(Object , Object[] , Object[] )\u000d\u000a en System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)\u000d\u000a en System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage41(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage4(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage31(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage3(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage2(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage11(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage1(MessageRpc& rpc)\u000d\u000a en System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)"}




    I installed MP a couple days ago, the error says table 'tracks' not found. Can it be a problem with MP configuration??
    But I can listen to my music in MP...
     

    Users who are viewing this thread

    Top Bottom