Comments (38)
+1 rm -rf tmp/miniprofiler solved the issue. Thanks.
from rack-mini-profiler.
Rails 4.2.x
Thanks,
Rob Little.
On Thu, Aug 25, 2016 at 9:07 AM, Prokop Simek [email protected]
wrote:
Rails 4.2.x
Sent from my iPhone
On 25 Aug 2016, at 19:44, Keenan Brock [email protected] wrote:
Sorry to see so many +1 here.
Are the issues still with rails. or are they for Rack / Sinatra / Other
framework apps?—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
#71 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABjJo1SDMaPibQIjdOn3KvTEMiJ-ldoGks5qjefXgaJpZM4BxCLX
.
from rack-mini-profiler.
@sanrodari @murtali
MemoryStorage seems to be broken. FileStorage works, which is default storage for rails.
Rack::MiniProfiler.config.storage = Rack::MiniProfiler::FileStore
Rack::MiniProfiler.config.storage_options = { path: './tmp' }
from rack-mini-profiler.
+1
from rack-mini-profiler.
This still seems to be an issue on Rails 4.2 - @railsme's suggestion above works perfectly.
from rack-mini-profiler.
+1
from rack-mini-profiler.
+1
from rack-mini-profiler.
+1
from rack-mini-profiler.
+1
from rack-mini-profiler.
+1
from rack-mini-profiler.
+1
from rack-mini-profiler.
could it be in my case because the request is being done to http and not https?
from rack-mini-profiler.
sorry in the miniprofiler looks with http, but on the console the post is with https
from rack-mini-profiler.
+1
from rack-mini-profiler.
temporay solve problem by removing files in tmp/miniprofiler/mp_timers_*
in project dir and restart server.
hope this help find permanent solution
from rack-mini-profiler.
+1
from rack-mini-profiler.
rm -fr tmp/miniprofiler
from rack-mini-profiler.
Thanks @Wild-R and @guange2015 , rm -fr tmp/miniprofiler
has worked for me as a temporary solution.
from rack-mini-profiler.
+1 for @Wild-R and @guange2015 for rm -rf tmp/miniprofiler
from rack-mini-profiler.
+1
from rack-mini-profiler.
With http://lotusrb.org/ getting 404 to POST to /mini-profiler-resources/results
from rack-mini-profiler.
Is there desire to make file system the default for all?
Do we need to do something more extravagant than path: './tmp'
like ENV['TMP_DIR']
or something?
from rack-mini-profiler.
@kbrock path depends on framework you are working with. Just do like you want.
File.join(Dir.pwd, 'tmp')
# or
File.join(__dir__, 'tmp')
# or
File.expand_path(File.dirname(__FILE__), 'tmp') # if you are setting it in config.ru
Don't forget to create target directory.
About default engine, I think everybody free to choose one 😄
from rack-mini-profiler.
creating the target directory should be all set with #208
@railsme Setting the default store to FileStore is easy enough. But I still don't know what the gem should set as the default path. every framework wants something different. I agree that the user can pick something easily. But if the default store is file, then either a good default path needs to be chosen, or it will be broken out of the box. (maybe not much of a change)
@sanrodari Is there something like railties for Hanami (Framework Formerly Known as Lotus) where a suitable Hanami defaults can be set?
from rack-mini-profiler.
@kbrock I don't know something like a railtie in Hanami, maybe @jodosha can help us?
from rack-mini-profiler.
@kbrock @sanrodari Hi, Hanami is Rack based, you can use
it in config.ru
.
from rack-mini-profiler.
+1
from rack-mini-profiler.
+1
from rack-mini-profiler.
Sorry to see so many +1 here.
Are the issues still with rails. or are they for Rack / Sinatra / Other framework apps?
from rack-mini-profiler.
For me, it's happening with Rails
from rack-mini-profiler.
@shaneog thanks. and that is rails 4.0 I assume?
from rack-mini-profiler.
@kbrock Apologies, it is. Rails 4.2.7
from rack-mini-profiler.
Rails 4.2.x
Sent from my iPhone
On 25 Aug 2016, at 19:44, Keenan Brock [email protected] wrote:
Sorry to see so many +1 here.
Are the issues still with rails. or are they for Rack / Sinatra / Other framework apps?—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
from rack-mini-profiler.
jFYI: Same with Rails 5.2.2
from rack-mini-profiler.
I'm running into this with a Sinatra app and version 2.3.1 - I know this issue is pretty old, but since it's still open I figured it might be worth a comment.
from rack-mini-profiler.
Same with:
- Rails 6.1.4.1
- puma 5.5.0
- rack-mini-profiler 2.3.3
Rack::MiniProfiler::MemoryStore
from rack-mini-profiler.
Seeing it (HTTP 422) with:
Rails 6.1.7
Puma 5.6.4
rack-mini-profiler 3.0.0
rm -rf tmp/miniprofiler
fixes the issue for now 🩹
from rack-mini-profiler.
I think if we had a simple reproducing app, we could fix this for all storage engines.
from rack-mini-profiler.
Related Issues (20)
- SSL error for Heroku Redis HOT 2
- ERROR Rack::Lint::LintError: Response body must respond to each HOT 4
- Can not get it to work on production HOT 1
- Not working with Rails 7 (foreman) HOT 2
- Supply rack-mini-profiler options via HTTP header HOT 1
- Display ActiveRecord QueryCache hits
- Display EXPLAIN plans
- Rails controller actions should display as ControllerName#action HOT 1
- Choose a code formatter, format the code, and enforce in CI HOT 4
- Validate our responses with Rack::Lint in tests HOT 3
- Fix broken Codecov integration HOT 1
- Infrequent weird output in tests HOT 1
- Intermittent test failure HOT 7
- Clicking "more" in speed badge causes an HTTP request, which doesn't work for HTTPS-only servers
- View previously captured flamegraphs
- Optionally (via config? keyboard shortcut?) show URL or controller action name in the badge itself
- "No snapshots exist" with snapshots enabled
- When `data-vertical-position` is `bottom`, then the popup is not positioned correctly
- always-async-flamegraph mode HOT 1
- Question: Support for tracing forked processes HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rack-mini-profiler.