Weird exception Issue in logs for Firebase Cloud messaging

434 views
Skip to first unread message

Josh

unread,
Mar 8, 2017, 10:42:30 AM3/8/17
to Firebase Google Group
I get a weird exception that I can't figure out. This same exception gets printed out several more times after this. I just cut it really short b/c it's the same exception that gets printed. I can't tell if this is bad or not, but I know this isn't suppose to happen.

03-08 10:17:20.989  7612  7636 E Unity   : System.UnauthorizedAccessException: Access to the path "/.config" is denied.
03-08 10:17:20.989  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006e] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:135
03-08 10:17:20.989  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectory (System.String path) [0x0009a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96
03-08 10:17:20.989  7612  7636 E Unity   :   at System.IO.DirectoryInfo.Create () [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141
03-08 10:17:20.989  7612  7636 E Unity   :   at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
03-08 10:17:20.989  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:116
03-08 10:17:20.989  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectory (System.String path) [0x0009a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96
03-08 10:17:20.989  7612  7636 E Unity   :   at System.IO.DirectoryInfo.Create () [0x00000] in /Users/builduser/buildsl03-08 10:17:20.995  7612  7636 E Unity   : System.UnauthorizedAccessException: Access to the path "/.config" is denied.
03-08 10:17:20.995  7612  7636 E Unity   : System.UnauthorizedAccessException: Access to the path "/.config" is denied.
03-08 10:17:20.995  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006e] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:135
03-08 10:17:20.995  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectory (System.String path) [0x0009a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96
03-08 10:17:20.995  7612  7636 E Unity   :   at System.IO.DirectoryInfo.Create () [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141
03-08 10:17:20.995  7612  7636 E Unity   :   at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
03-08 10:17:20.995  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:116
03-08 10:17:20.995  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectory (System.String path) [0x0009a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96
03-08 10:17:20.995  7612  7636 E Unity   :   at System.IO.DirectoryInfo.Create () [0x00000] in /Users/builduser/buildsl
03-08 10:17:21.000  7612  7636 E Unity   : System.UnauthorizedAccessException: Access to the path "/.config" is denied.
03-08 10:17:21.000  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x0006e] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:135
03-08 10:17:21.000  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectory (System.String path) [0x0009a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96
03-08 10:17:21.000  7612  7636 E Unity   :   at System.IO.DirectoryInfo.Create () [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/DirectoryInfo.cs:141
03-08 10:17:21.000  7612  7636 E Unity   :   at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:Create ()
03-08 10:17:21.000  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00039] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:116
03-08 10:17:21.000  7612  7636 E Unity   :   at System.IO.Directory.CreateDirectory (System.String path) [0x0009a] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/Directory.cs:96
03-08 10:17:21.000  7612  7636 E Unity   :   at System.IO.DirectoryInfo.Create () [0x00000] in /Users/builduser/buildsl


Benjamin Wulfe

unread,
Mar 8, 2017, 6:21:01 PM3/8/17
to Firebase Google Group
Where are you running when you see this?  Is this the editor?  Also, do you have the latest SDK?

Kato Richardson

unread,
Mar 9, 2017, 12:45:01 PM3/9/17
to Firebase Google Group
Hi Josh,

I'm a bit lost on the context here since Firebase doesn't even appear in the stack trace. Can you elaborate a bit on what due diligence you did to isolate this back to Firebase and what Firebase was doing at the time?

☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/504795ba-d578-483f-a11f-e60146b4e6fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

Thomas Krüger

unread,
May 9, 2017, 4:38:41 PM5/9/17
to Firebase Google Group
I were running into the same issue with the latest Firebase SDK.
It's happens on iOS right before I "+= OnTokenReceived"

2017-05-09 20:42:32.686 [1088] <Debug> [Firebase/Core][I-COR000001] Configuring the default app.\
2017-05-09 20:42:32.698 [1088:501] <FIRAnalytics/INFO> Firebase Analytics v.3600000 started\
2017-05-09 20:42:32.699 [1088:501] <FIRAnalytics/INFO> To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/Y0Yjwu)\
\
System.UnauthorizedAccessException: Access to the path "/private/var/mobile/Containers/Data/Application/XXXXX-XXXXX-XXXXX/.config" is denied.\
  at System.IO.DirectoryInfo..ctor (System.String path, Boolean simpleOriginalPath) [0x00000] in <filename unknown>:0 \
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 \
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 \
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 \
  at Mono.Security.X509.X509Store.CheckStore (System.String path, Boolean throwException) [0x00000] in <filename unknown>:0 \
  at Mono.Security.X509.X509Store.Import (Mono.Security.X509.X509Certificate certificate) [0x00000] in <filename unknown>:0 \
  at System.Security.Cryptography.X509Certificates.X509Store.Add (System.Security.Cryptography.X509Certificates.X509Certificate2 certificate) [0x00000] in <filename unknown>:0 \
  at Firebase.Unity.InstallRootCerts.Install (Firebase.FirebaseApp app) [0x00000] in <filename unknown>:0 \
  at Firebase.FirebaseApp.CreateAndTrack (Firebase.CreateDelegate createDelegate) [0x00000] in <filename unknown>:0 \
  at Firebase.Messaging.FirebaseMessaging+Listener..ctor () [0x00000] in <filename unknown>:0 \
  at Firebase.Messaging.FirebaseMessaging+Listener.Create () [0x00000] in <filename unknown>:0 \
  at Firebase.Messaging.FirebaseMessaging..cctor () [0x00000] in <filename unknown>:0 \
  at OnlineData.AllowPush () [0x00000] in <filename unknown>:0 \
  at Interact_ScriptThing+<EnableObject>c__Iterator5E.MoveNext () [0x00000] in <filename unknown>:0 \
  at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 \
  at Interact_ScriptThing+<RunYield>c__Iterator5D.MoveNext () [0x00000] in <filename unknown>:0 \
  at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 \
  at InteractableElement+<RunBehaviours>c__Iterator74.MoveNext () [0x00000] in <filename unknown>:0 \
  at UnityEngine.SetupCoroutine.InvokeMoveNext (IEnumerator enumerator, IntPtr returnValueAddress) [0x00000] in <filename unknown>:0 \
  at InteractableElement.ButtonGotActivated () [0x00000] in <filename unknown>:0 \
  at InputManagerScript.UpdateInputs () [0x00000] in <filename unknown>:0 \
  at InputManagerScript.Update () [0x00000] in <filename unknown>:0 \
 \
(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)\
\
Added\
2017-05-09 20:42:33.034 [1088:471771] FCM: Initialize Firebase Messaging\
FCM: Initialize Firebase Messaging\
2017-05-09 20:42:33.034 [1088:471771] FCM: Using FCM senderID xxxxxxxxxxxxxx\
FCM: Using FCM senderID xxxxxxxxxxxxxx\
2017-05-09 20:42:33.040 [1088:471771] FCM: Retrieve registration token\
FCM: Retrieve registration token\
2017-05-09 20:42:33.083 [1088] <Debug> [Firebase/Core][I-COR000019] Clearcut post completed.\
2017-05-09 20:42:34.527 [1088:501] <FIRAnalytics/INFO> Firebase Analytics enabled\
2017-05-09 20:42:35.897 [1088:471771] FCM: registration token needs to be changed.\
FCM: registration token needs to be changed.\
2017-05-09 20:42:35.898 [1088:471771] FCM: Retrieve registration token\
FCM: Retrieve registration token}

As you can see, a Token is received, but Messaging is not working at all.

Best wishes,
Thomas
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/504795ba-d578-483f-a11f-e60146b4e6fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thomas Krüger

unread,
May 10, 2017, 9:54:59 PM5/10/17
to Firebase Google Group
After a few changes, I'm able to receive notifications in foreground and background again - but this exception still occurs. Hopefully this is not a rejection reason for Apple.

Josh

unread,
Jun 5, 2017, 3:18:38 PM6/5/17
to Firebase Google Group
This stopped happening for me once I added code to fix dependency issues. I found this on their github and I feel like this should be in their docs too because it seems like this is needed.

private DependencyStatus _dependencyStatus = DependencyStatus.UnavailableOther;

  public void Init()
  {
    _dependencyStatus = FirebaseApp.CheckDependencies();
    if (_dependencyStatus != DependencyStatus.Available)
    {
      FirebaseApp.FixDependenciesAsync().ContinueWith(task =>
      {
        _dependencyStatus = FirebaseApp.CheckDependencies();
        if (_dependencyStatus == DependencyStatus.Available)
        {
          // init
        }
        else
        {
          Debug.LogErrorFormat("Could no resolve all Firebase dependencies: {0}\n", _dependencyStatus);
        }
      });
Reply all
Reply to author
Forward
0 new messages