Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RouteNotFoundException once after app deactivation #8361

Closed
MorrisJobke opened this issue Apr 25, 2014 · 14 comments · Fixed by #18840
Closed

RouteNotFoundException once after app deactivation #8361

MorrisJobke opened this issue Apr 25, 2014 · 14 comments · Fixed by #18840

Comments

@MorrisJobke
Copy link
Contributor

I got following messages once after app deactivation (music and news have been disabled) It seems that the apps are loaded when they get deactivated. (looks like the navigation build step)

{"app":"index","message":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException: Route \"music_index\" does not exist.","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #1 \/srv\/http\/core\/lib\/private\/urlgenerator.php(41): OC\\Route\\Router->generate('music_index', Array)","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #2 \/srv\/http\/core\/lib\/private\/helper.php(44): OC\\URLGenerator->linkToRoute('music_index', Array)","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #3 \/srv\/http\/core\/lib\/public\/util.php(211): OC_Helper::linkToRoute('music_index', Array)","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #4 \/srv\/http\/core\/apps\/music\/appframework\/core\/api.php(239): OCP\\Util::linkToRoute('music_index', Array)","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #5 \/srv\/http\/core\/apps\/music\/appinfo\/app.php(41): OCA\\Music\\AppFramework\\Core\\API->linkToRoute('music_index')","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #6 \/srv\/http\/core\/lib\/private\/app.php(317): require('\/srv\/http\/core\/...')","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #7 \/srv\/http\/core\/settings\/ajax\/navigationdetect.php(9): OC_App::getAppNavigationEntries('music')","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #8 \/srv\/http\/core\/lib\/private\/route\/route.php(135) : runtime-created function(1): require_once('\/srv\/http\/core\/...')","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #9 [internal function]: __lambda_func(Array)","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #10 \/srv\/http\/core\/lib\/private\/route\/router.php(206): call_user_func('\\x00lambdabda_2, Array)","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #11 \/srv\/http\/core\/lib\/base.php(744): OC\\Route\\Router->match('\/settings\/ajax\/...')","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #12 \/srv\/http\/core\/index.php(28): OC::handleRequest()","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Exception: #13 {main}","level":4,"time":"2014-04-25T15:25:46+00:00"}
{"app":"index","message":"Symfony\\Component\\Routing\\Exception\\RouteNotFoundException: Route \"news.page.index\" does not exist.","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #1 \/srv\/http\/core\/lib\/private\/urlgenerator.php(41): OC\\Route\\Router->generate('news.page.index', Array)","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #2 \/srv\/http\/core\/lib\/private\/helper.php(44): OC\\URLGenerator->linkToRoute('news.page.index', Array)","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #3 \/srv\/http\/core\/lib\/public\/util.php(211): OC_Helper::linkToRoute('news.page.index', Array)","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #4 \/srv\/http\/news\/appinfo\/app.php(27): OCP\\Util::linkToRoute('news.page.index')","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #5 \/srv\/http\/core\/lib\/private\/app.php(317): require('\/srv\/http\/news\/...')","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #6 \/srv\/http\/core\/settings\/ajax\/navigationdetect.php(9): OC_App::getAppNavigationEntries('news')","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #7 \/srv\/http\/core\/lib\/private\/route\/route.php(135) : runtime-created function(1): require_once('\/srv\/http\/core\/...')","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #8 [internal function]: __lambda_func(Array)","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #9 \/srv\/http\/core\/lib\/private\/route\/router.php(206): call_user_func('\\x00lambdabda_2, Array)","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #10 \/srv\/http\/core\/lib\/base.php(744): OC\\Route\\Router->match('\/settings\/ajax\/...')","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #11 \/srv\/http\/core\/index.php(28): OC::handleRequest()","level":4,"time":"2014-04-25T15:28:46+00:00"}
{"app":"index","message":"Exception: #12 {main}","level":4,"time":"2014-04-25T15:28:46+00:00"}
@karlitschek
Copy link
Contributor

@MorrisJobke Is this still valid?

@MorrisJobke
Copy link
Contributor Author

@karlitschek yes. Current log on deactivate:

{"reqId":"b642ef6878a0c7b3e3a0a7d23d23f148","remoteAddr":"127.0.0.1","app":"index","message":"Exception: {\"Message\":\"Unable to generate a URL for the named route \\\"news.page.index\\\" as such route does not exist.\",\"Code\":0,\"Trace\":\"#0 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/lib\\\/private\\\/route\\\/router.php(281): Symfony\\\\Component\\\\Routing\\\\Generator\\\\UrlGenerator->generate('news.page.index', Array, false)\\n#1 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/lib\\\/private\\\/urlgenerator.php(42): OC\\\\Route\\\\Router->generate('news.page.index', Array)\\n#2 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/apps2\\\/news\\\/config\\\/appconfig.php(118): OC\\\\URLGenerator->linkToRoute('news.page.index')\\n#3 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/apps2\\\/news\\\/appinfo\\\/app.php(29): OCA\\\\News\\\\Config\\\\AppConfig->registerNavigation()\\n#4 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/lib\\\/private\\\/app.php(373): require('\\\/home\\\/mjob\\\/Proj...')\\n#5 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/settings\\\/ajax\\\/navigationdetect.php(9): OC_App::getAppNavigationEntries('news')\\n#6 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/lib\\\/private\\\/route\\\/route.php(135) : runtime-created function(1): require_once('\\\/home\\\/mjob\\\/Proj...')\\n#7 [internal function]: __lambda_func(Array)\\n#8 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/lib\\\/private\\\/route\\\/router.php(249): call_user_func('\\\\x00lambda_2071', Array)\\n#9 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/lib\\\/base.php(732): OC\\\\Route\\\\Router->match('\\\/settings\\\/ajax\\\/...')\\n#10 \\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/index.php(28): OC::handleRequest()\\n#11 {main}\",\"File\":\"\\\/home\\\/mjob\\\/Projekte\\\/owncloud\\\/master\\\/3rdparty\\\/symfony\\\/routing\\\/Symfony\\\/Component\\\/Routing\\\/Generator\\\/UrlGenerator.php\",\"Line\":134}","level":4,"time":"2014-12-06T10:32:38+00:00","method":"GET","url":"\/master\/index.php\/settings\/ajax\/navigationdetect.php?app=news"}

Better readable:

Exception: {
    "Message":"Unable to generate a URL for the named route "news.page.index" as such route does not exist.",
    "Code":0,
    "Trace":"
        #0 lib/private/route/router.php(281): Symfony\Component\Routing\Generator\UrlGenerator->generate('news.page.index', Array, false)
        #1 lib/private/urlgenerator.php(42): OC\Route\Router->generate('news.page.index', Array)
        #2 apps2/news/config/appconfig.php(118): OC\URLGenerator->linkToRoute('news.page.index')
        #3 apps2/news/appinfo/app.php(29): OCA\News\Config\AppConfig->registerNavigation()
        #4 lib/private/app.php(373): require('/home/mjob/Proj...')
        #5 settings/ajax/navigationdetect.php(9): OC_App::getAppNavigationEntries('news')
        #6 lib/private/route/route.php(135) : runtime-created function(1): require_once('/home/mjob/Proj...')
        #7 [internal function]: __lambda_func(Array)
        #8 lib/private/route/router.php(249): call_user_func('\x00lambda_2071', Array)
        #9 lib/base.php(732): OC\Route\Router->match('/settings/ajax/...')
        #10 index.php(28): OC::handleRequest()
        #11 {main}","File":"3rdparty/symfony/routing/Symfony/Component/Routing/Generator/UrlGenerator.php
    ",
    "Line":134
}

@DeepDiver1975
Copy link
Member

well - both music and news are single page apps - they will continue to operate even in case the app is disabled. The apps will still send requests to the server and the server cannot process them.

Won't finx in core from my understanding - the apps have to take care of this case properly.

@DeepDiver1975
Copy link
Member

this is anyway a corner case

@MorrisJobke
Copy link
Contributor Author

well - both music and news are single page apps - they will continue to operate even in case the app is disabled. The apps will still send requests to the server and the server cannot process them.

They aren't loaded in any tab. I just have gone to the apps management and clicked "disable". Then this is printed to the log. It's more a log pollution.

@MorrisJobke MorrisJobke reopened this Mar 21, 2015
@DeepDiver1975
Copy link
Member

Apc or any other cache fu enabled?

@MorrisJobke
Copy link
Contributor Author

Is just once for a deactivation.

@LukasReschke
Copy link
Member

Can reproduce this on stable8.1 branch and I think I also talked with @PVince81 about this today.

@LukasReschke LukasReschke reopened this Jul 2, 2015
@LukasReschke LukasReschke modified the milestones: 8.1.1-next-maintenance, 8.1-current Jul 2, 2015
@LukasReschke
Copy link
Member

Moving to 8.1.1-next-maintenance.

@MorrisJobke
Copy link
Contributor Author

@PVince81 @LukasReschke Status of this?

@DeepDiver1975
Copy link
Member

8.1.2 - not that critical - maybe even 8.2

@DeepDiver1975 DeepDiver1975 modified the milestones: 8.2-current, 8.1.1-current-maintenance Jul 17, 2015
@MorrisJobke
Copy link
Contributor Author

Reproduced in #17736 (comment)

@MorrisJobke
Copy link
Contributor Author

Similiar to #18224

@LukasReschke
Copy link
Member

Probably fixed with #18844? (if not please reopen)

@lock lock bot locked as resolved and limited conversation to collaborators Aug 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants