Getting below runtime crash log :
[libc++abi] terminating with uncaught exception of type realm::util::DecryptionFailed: Decryption failed
[libc++abi] Exception backtrace:
[libc++abi]
[libc] Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 18743 (edisize.ida0120), pid 18743 (edisize.ida0120)
Untrusted issuer.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.IdentityModel.Tokens.SecurityTokenException: Untrusted issuer.
Source Error:
**Line 41:
Line 42: throw new SecurityTokenException( "Untrusted issuer." );
Line 43: }
Line 44: }**
Solution:
in TrustedIssuerNameRegistry.cs file change line
**if ( String.Equals( x509Token.Certificate.SubjectName.Name, "CN=localhost" ) )**
to
**if ( String.Equals( x509Token.Certificate.SubjectName.Name, "CN= *replace with the correct CN on your certificate here*" ) )**
My configuration consists of a Wordpress installation with the W3 Total Cache plugin that is set up to cache resources on a CDN (Amazon S3+Cloudfront).
The HTML resources and images are loaded correctly, but the problem is with minified CSS and JS, as they were renamed by the plugin (e.g. style.css renamed to 18704.css).
The problem might be in how I write the URI in the site's HTML code, where the original style.css is referred to, instead of the generated filename:
<link rel='stylesheet' id='wptheme-style-css' href='https://<distribution_id>.cloudfront.net/wp-content/themes/wptheme/style.css.gzip?ver=1.0.1' type='text/css' media='all' />
Cloudfront configuration:
Two origins added example-com.s3.amazonaws.com and example.com
S3 configuration:
Bucket policy:
.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::bucketname/*"
}
]
}
The files stored inside S3 bucket have the correct MIME type, although some may be missing CORS policy:
.
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>
Browser console:
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
(index):96 Uncaught ReferenceError: jQuery is not defined
at (index):96
(anonymous) # (index):96
www.example.com/:199 Uncaught ReferenceError: jQuery is not defined
at (index):199
(anonymous) # (index):199
www.example.com/:1353 Uncaught ReferenceError: jQuery is not defined
at (index):1353
(anonymous) # (index):1353
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
twitter-widgets.js.gzip Failed to load resource: the server responded with a status of 403 ()
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
wp-signup.php:1 Uncaught SyntaxError: Unexpected token <
Chrome's network console:
The actual minified and compressed CSS and JS files in the S3 bucket:
I recently began to add new features on a website that uses Symfony2.
After creating a new bundle that is very similar to the others already working, I created a button to access to the feature.
But then I got the following errors in my browser's developer tool:
GET prod.project.local/bundles/calinobase/css//calino-main-colors.css prod.project.local/:35
GET prod.project.local/bundles/calinobase/css//main-colors.css prod.project.local/:28
GET prod.project.local/bundles/calinobase/css//bootstrap-override-colors.css prod.project.local/:27
GET prod.project.local/bundles/calinobase/css//buttons-colors.css prod.project.local/:29
GET prod.project.local/bundles/calinobase/css//menus-colors.css prod.project.local/:33
GET prod.project.local/bundles/calinobase/css//forms-colors.css prod.project.local/:32
GET prod.project.local/bundles/calinobase/css//content-colors.css prod.project.local/:30
GET prod.project.local/bundles/calinobase/css//mag-colors.css prod.project.local/:31
GET prod.project.local/bundles/calinobase/css//search-colors.css prod.project.local/:34
Plus an error 500 on my page.
After some researches I found that it came from the stylesheets.html.twig file:
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/bootstrap-override-colors.css') }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/main-colors.css') }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/buttons-colors.css') }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/content-colors.css') }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/mag-colors.css') }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/forms-colors.css') }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/menus-colors.css') }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/search-colors.css') }}" type="text/css" media="screen" />
<link rel="stylesheet" href="{{ asset('bundles/calinobase/css/' ~ colorTheme ~ '/calino-main-colors.css') }}" type="text/css" media="screen" />
Apparently it doesn't find the colorTheme, which is set in the layout.html.twig when it uses the stylesheet:
{% block stylesheets %}
{{ include('::stylesheets.html.twig', {colorTheme: app.user.color|default('bfc100')}, with_context = false) }}
{% endblock %}
In my logs I have the following errors:
[2015-01-21 15:22:42] request.INFO: Matched route "calinobase_homepage" (parameters: "_controller": "Calino\BaseBundle\Controller\DefaultController::indexAction", "_route": "calinobase_homepage") [] []
[2015-01-21 15:22:43] security.INFO: Populated SecurityContext with an anonymous Token [] []
[2015-01-21 15:22:43] request.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\TableNotFoundException: "An exception occurred while executing 'SELECT a0_.id AS id0, a0_.creaDate AS creaDate1, a0_.editDate AS editDate2, a0_.title AS title3, a0_.slug AS slug4, a0_.intro AS intro5, a0_.content AS content6, a0_.alaune AS alaune7, a0_.published AS published8, a0_.thread_id AS thread_id9, a0_.articleTheme_id AS articleTheme_id10, a0_.avatar_id AS avatar_id11 FROM article_mag a0_ WHERE a0_.alaune = 1 ORDER BY a0_.creaDate DESC LIMIT 1': SQLSTATE[42S02]: Base table or view not found: 1146 Table 'calinofriendsdb.article_mag' doesn't exist" at /var/www/prod.project.local/htdocs/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 53 {"exception":"[object] (Doctrine\\DBAL\\Exception\\TableNotFoundException(code: 0): An exception occurred while executing 'SELECT a0_.id AS id0, a0_.creaDate AS creaDate1, a0_.editDate AS editDate2, a0_.title AS title3, a0_.slug AS slug4, a0_.intro AS intro5, a0_.content AS content6, a0_.alaune AS alaune7, a0_.published AS published8, a0_.thread_id AS thread_id9, a0_.articleTheme_id AS articleTheme_id10, a0_.avatar_id AS avatar_id11 FROM article_mag a0_ WHERE a0_.alaune = 1 ORDER BY a0_.creaDate DESC LIMIT 1':\n\nSQLSTATE[42S02]: Base table or view not found: 1146 Table 'calinofriendsdb.article_mag' doesn't exist at /var/www/prod.project.local/htdocs/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:53, Doctrine\\DBAL\\Driver\\PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'calinofriendsdb.article_mag' doesn't exist at /var/www/prod.project.local/htdocs/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:106, PDOException(code: 42S02): SQLSTATE[42S02]: Base table or view not found: 1146 Table 'calinofriendsdb.article_mag' doesn't exist at /var/www/prod.project.local/htdocs/current/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOConnection.php:104)"} []
[2015-01-21 15:22:43] security.DEBUG: Write SecurityContext in the session [] []
[2015-01-21 15:22:43] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//forms-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//forms-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
[2015-01-21 15:22:43] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//main-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//main-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
[2015-01-21 15:22:43] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//bootstrap-override-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//bootstrap-override-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
[2015-01-21 15:22:43] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//content-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//content-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
[2015-01-21 15:22:43] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//buttons-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//buttons-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
[2015-01-21 15:22:43] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//mag-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//mag-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
[2015-01-21 15:22:44] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//search-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//search-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
[2015-01-21 15:22:44] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//calino-main-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//calino-main-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
[2015-01-21 15:22:44] request.ERROR: Uncaught PHP Exception Symfony\Component\HttpKernel\Exception\NotFoundHttpException: "No route found for "GET /bundles/calinobase/css//menus-colors.css" (from "http://prod.project.local/")" at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php line 3098 {"exception":"[object] (Symfony\\Component\\HttpKernel\\Exception\\NotFoundHttpException(code: 0): No route found for \"GET /bundles/calinobase/css//menus-colors.css\" (from \"http://prod.project.local/\") at /var/www/prod.project.local/htdocs/current/app/cache/prod/classes.php:3098, Symfony\\Component\\Routing\\Exception\\ResourceNotFoundException(code: 0): at /var/www/prod.project.local/htdocs/current/app/cache/prod/appProdUrlMatcher.php:1498)"} []
I develop with PhpStorm so when I mouseover "calinobase" in my stylesheets.html.twig, it displays "Missing assets" so I tried to use php app/console assets:install --verbose but I got:
Installing assets as hard copies.
Installing assets for Symfony\Bundle\FrameworkBundle into web/bundles/framework
[Symfony\Component\Filesystem\Exception\IOException]
Failed to remove file "web/bundles/framework/images/blue_picto_more.gif".
Exception trace:
() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:173
Symfony\Component\Filesystem\Filesystem->remove() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:160
Symfony\Component\Filesystem\Filesystem->remove() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Component/Filesystem/Filesystem.php:160
Symfony\Component\Filesystem\Filesystem->remove() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Command/AssetsInstallCommand.php:98
Symfony\Bundle\FrameworkBundle\Command\AssetsInstallCommand->execute() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Component/Console/Command/Command.php:253
Symfony\Component\Console\Command\Command->run() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:882
Symfony\Component\Console\Application->doRunCommand() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:195
Symfony\Component\Console\Application->doRun() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:96
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at /home/kemps/dev2/calinofriends/vendor/symfony/symfony/src/Symfony/Component/Console/Application.php:126
Symfony\Component\Console\Application->run() at /home/kemps/dev2/calinofriends/app/console:22
assets:install [--symlink] [--relative] [target]
Not knowing what to do to handle thoses errors, I will be glad to have any help. Thanks in advance to anyone who will help me.
EDIT: my Symfony project is on a virtual machine installed with Vagrant, configured with Puppetmaster and it has NFS shared folders
Failed to remove file "web/bundles/framework/images/blue_picto_more.gif".
there is something wrong with your permissions,
if the blue_picto_more.gif was uploaded from the website that means the permissions are set to the webserver account.
usually "nginx or www-data".
if you are only using this site locally or your development server you can just set the web folder to 777 (don't do this on production though).
use this on the command line:
chmod -R 777 /pathto/web
this one is production-friendly:
change the permissions to the account you're logging into from the console
chown -R the_user web
I am creating Costume DNN Module but I have "General Exception" happening recently. just want to ask if anyone get this error " General Exception" and how to fix it
AssemblyVersion: 7.0.5
PortalID: -1
PortalName:
UserID: -1
UserName:
ActiveTabID: -1
ActiveTabName:
RawURL:
AbsoluteURL:
AbsoluteURLReferrer:
UserAgent:
DefaultDataProvider: DotNetNuke.Data.SqlDataProvider, DotNetNuke
ExceptionGUID: 19286ea9-9154-4453-93d3-f58e3e143f64
InnerException: Error Creating BusinessControllerClass 'DotNetNuke.Modules.ResourceModule.Components.FeatureController' of module(ResourceModule) id=(637) in tab(144) and portal(0)
FileName:
FileLineNumber: 0
FileColumnNumber: 0
Method: System.Activator.CreateInstance
StackTrace:
Message: System.Exception: Error Creating BusinessControllerClass 'DotNetNuke.Modules.ResourceModule.Components.FeatureController' of module(ResourceModule) id=(637) in tab(144) and portal(0) ---> System.ArgumentNullException: Value cannot be null. Parameter name: type at System.Activator.CreateInstance(Type type, Boolean nonPublic) at System.Activator.CreateInstance(Type type) at DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 PortalID) --- End of inner exception stack trace --- at DotNetNuke.Services.Search.ModuleIndexer.GetModuleList(Int32 PortalID)
Source:
Server Name:
That is an easy one, fixed in the next Template release. https://christoctemplate.codeplex.com/discussions/440995
Basically, update your .DNN file to include the proper namespace for your BusinessController class, I left a hardcoded one in there by mistake in one of the templates.