M
M
Maxim Timofeev2015-12-17 19:04:26
Yii
Maxim Timofeev, 2015-12-17 19:04:26

What does error 40: Too many levels of symbolic links mean?

In the server logs for each request, I get the following errors:

2015/12/17 18:57:41 [crit] 31474#0: *2422 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/e4fd1f1f/css/bootstrap.css" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/e4fd1f1f/css/bootstrap.css HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2422 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/e4fd1f1f/css/bootstrap.css" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/e4fd1f1f/css/bootstrap.css HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2425 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/3b87e6f4/css/font-awesome.min.css" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/3b87e6f4/css/font-awesome.min.css HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2425 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/3b87e6f4/css/font-awesome.min.css" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/3b87e6f4/css/font-awesome.min.css HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2424 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/e0656321/jquery.js" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/e0656321/jquery.js HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2424 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/e0656321/jquery.js" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/e0656321/jquery.js HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2426 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/22f46baa/yii.js" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/22f46baa/yii.js HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2426 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/22f46baa/yii.js" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/22f46baa/yii.js HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2420 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/e4fd1f1f/js/bootstrap.js" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/e4fd1f1f/js/bootstrap.js HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"
2015/12/17 18:57:41 [crit] 31474#0: *2420 openat() "/var/www/wokster/data/www/tmstudent.tk//assets/e4fd1f1f/js/bootstrap.js" failed (40: Too many levels of symbolic links), client: 37.235.228.90, server: tmstudent.tk, request: "GET /assets/e4fd1f1f/js/bootstrap.js HTTP/1.1", host: "tmstudent.tk", referrer: "http://tmstudent.tk/user/ogafarov/profile"

What is it and how to deal with it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Artyomov, 2016-05-12
@webinar

Something tells me that you have nginx.
And possibly ISPmanager.
Remove in nginx host config: disable_symlinks if_not_owner

A
Alexander Tsymbal, 2022-04-10
@AlexanderTsymbal

See who is the author of the symlinks. Probably the author of the symlinks is one user, and the author of the directories they link to is another. Recreate the symlinks by logging in with the same user who created the directories.
If it doesn’t help, then try what Anton Artyomov advised Anton Artyomov . But disable_symlinks if_not_owner may not just be set there.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question