The problem is when my rails project is deployed, it can't find these assets when on admin page:
active_admin.self-f64966142a2c9e51b2886966eb553d7f410652b962c208bb464dd60c738c42d5.css Failed to load resource: the server responded with a status of 404 (Not Found)
jquery3.self-06c43429d1047ce3f355da574d8a9750209971b8b1b8f264f91f5518c5fcc060.js Failed to load resource: the server responded with a status of 404 (Not Found)
version.self-c8e3d1203da26ea7efdf83c1eabb3f0ba55cb68e463f5ccf0d77bd15ce6a8e61.js Failed to load resource: the server responded with a status of 404 (Not Found)
keycode.self-ad63cd20acf49dd333bbbc537454d7d475bd610eb5b88de0dca009f0c3d314b1.js Failed to load resource: the server responded with a status of 404 (Not Found)
datepicker.self-2af0dec09da99d687c31fc224e940687a4eb3694e7b38b0871bba475cad86120.js Failed to load resource: the server responded with a status of 404 (Not Found)
widget.self-fca20bcec06d192f97cffa6e734e24360e227237b8ae7d7e7e60754df7d5444f.js Failed to load resource: the server responded with a status of 404 (Not Found)
controlgroup.self-0b7409f97114a33de116bd5429e9df199cbdea3f276d8bd725c4c2c60f244711.js Failed to load resource: the server responded with a status of 404 (Not Found)
checkboxradio.self-0b7409f97114a33de116bd5429e9df199cbdea3f276d8bd725c4c2c60f244711.js Failed to load resource: the server responded with a status of 404 (Not Found)
button.self-659b51f6fb5303f90ed8cf551509063770a50168a15795ba834b08f8bf2e0ce0.js Failed to load resource: the server responded with a status of 404 (Not Found)
ie.self-163eb039dcb1e0c3471b7d91386eabb8753da6906e84824c019f9ff56bdb83a6.js Failed to load resource: the server responded with a status of 404 (Not Found)
mouse.self-f0790a202dcf54fab051e71b042335d5346f9cceb0f645223c1dab93f349a04b.js Failed to load resource: the server responded with a status of 404 (Not Found)
data.self-2067c82e6fe39a9cba5623206a5dc28d5c60d26b95cd100855b78cacf72865b8.js Failed to load resource: the server responded with a status of 404 (Not Found)
plugin.self-d8f576c8e073ca51f095505f47bd09d306b875404cd90afcbb6338287cfb0247.js Failed to load resource: the server responded with a status of 404 (Not Found)
safe-active-element.self-a1f1a1a7dae3269ce03f6fffb2dcc9b4a7490f5d546c65d54417bec3be24b668.js Failed to load resource: the server responded with a status of 404 (Not Found)
safe-blur.self-2cc24c46132d51c7724f6371154241b0a81c9bae5d5681d8f62b01ce46236726.js Failed to load resource: the server responded with a status of 404 (Not Found)
scroll-parent.self-38e26a71a450a29fb63425e8f589a7046862f927eb0a1dbf6a6c44da05196d2e.js Failed to load resource: the server responded with a status of 404 (Not Found)
draggable.self-42c3eda0b49f105628cea7580fe38c7ed77467cee384bb2c4e095a2bd0a172e6.js Failed to load resource: the server responded with a status of 404 (Not Found)
disable-selection.self-5675f71f2fbbc6857ea700ba843af748b50dbc0150cc87932a7d05ec016bb659.js Failed to load resource: the server responded with a status of 404 (Not Found)
resizable.self-1a46c2f5b876918e02bf979080e56f57846590cd880721bca5058e84f7f60bae.js Failed to load resource: the server responded with a status of 404 (Not Found)
focusable.self-426e99e67d1f1bd4cb444fd878ee63a6de1f5d1d61451e43022c86214b9eec64.js Failed to load resource: the server responded with a status of 404 (Not Found)
position.self-1b49c8c521e67a4a88bfdad6b4d944d33686d25009a0e40a1e170acdd7b6962a.js Failed to load resource: the server responded with a status of 404 (Not Found)
tabbable.self-f3f62ceed772d3a325cebd6a03221f8a8cb02c6150f4feba738c6525a2953690.js Failed to load resource: the server responded with a status of 404 (Not Found)
unique-id.self-66e85ac85cd0b6b8b1bb89369fc65f608f716869dc0930862a8d421a57a9580a.js Failed to load resource: the server responded with a status of 404 (Not Found)
dialog.self-2bd687f9580c0be4213c50b4bb1211c28ceedb045eba954e63d40bfbb4d1affd.js Failed to load resource: the server responded with a status of 404 (Not Found)
sortable.self-6e5e1f07a29b5a89ec1d359363d2800904e3ae548a38ab2f8eded36746d1adbe.js Failed to load resource: the server responded with a status of 404 (Not Found)
escape-selector.self-43e4d61501e4ffb1ecba387affbae1eb3e1c863ab0b0e71897851cddd246e50e.js Failed to load resource: the server responded with a status of 404 (Not Found)
tabs.self-b7f60535e992224ca66c3f11dc943eba9ef42a9605241e27b9dba24c7efb287e.js Failed to load resource: the server responded with a status of 404 (Not Found)
base.self-ab2cb3098b53fe7d229937d768d701e8f4013f2a5aea7988d8f2149fa40426db.js Failed to load resource: the server responded with a status of 404 (Not Found)
batch_actions.self-38f91c8a2e79d0d334f22e68440137ecad0a081f21e35bf9532de1e409f78e8a.js Failed to load resource: the server responded with a status of 404 (Not Found)
checkbox-toggler.self-f3ac78175da0b7357ada35c7b7db4cd119ac305ab118a7effb24b1c5da629e07.js Failed to load resource: the server responded with a status of 404 (Not Found)
dropdown-menu.self-5794b6ca26364ce522cb47a8ef050870fda0b886cfeef69ec27ef116900f1984.js Failed to load resource: the server responded with a status of 404 (Not Found)
flash.self-8f05a5d9328ea28fca100b057787fbfb567986513c5f1735ea48fad8f9571c10.js Failed to load resource: the server responded with a status of 404 (Not Found)
has_many.self-ece319debdc01ca5096ae8ac6c130ffc0decab382543b4b94e18591375d3d3bb.js Failed to load resource: the server responded with a status of 404 (Not Found)
modal_dialog.self-5dfc6e87bae26cd4a021eb86951d3691ed07e6d2bf242a8eb65dc6965e12096c.js Failed to load resource: the server responded with a status of 404 (Not Found)
per_page.self-ac2a7829e00b21d672b908a9a64b42aef7632ff1dac9a90dda0e779706c71256.js Failed to load resource: the server responded with a status of 404 (Not Found)
table-checkbox-toggler.self-411adb7e5ac7ce5602bfedc685bb1253aa41b0f687599f11312f15805f9856f0.js Failed to load resource: the server responded with a status of 404 (Not Found)
jquery-ui.self-f96f2ec2a32c4bc4da4292cc74bddeca0bb223d81a421c98c4d613632860945e.js Failed to load resource: the server responded with a status of 404 (Not Found)
jquery.self-da8dafbbe883092bcae73f35a8caf4ae6170fe7d8130ae7039a233f9b509c757.js Failed to load resource: the server responded with a status of 404 (Not Found)
batch_actions.self-f693d7e31a910829186af20c64f91da55574e3385b12465c151da4d63f7d9883.js Failed to load resource: the server responded with a status of 404 (Not Found)
datepicker.self-305bbf9fc8b1de2fd07ea201cef994db1e32c3cc29b711f9f5fa13ea70681444.js Failed to load resource: the server responded with a status of 404 (Not Found)
filters.self-a0ee45912355fd1c2122b7c9f94e2fcda6b78cd20723f85cd26d10016b060128.js Failed to load resource: the server responded with a status of 404 (Not Found)
tabs.self-5bccad3e0e615bd96bf323490a71829beec067511af628e9808993bb6beeb3a5.js Failed to load resource: the server responded with a status of 404 (Not Found)
active_admin.self-877aef30ae1b040ab8a3aba4e3e309a11d7f2612f44dde450b5c157aa5f95c05.js Failed to load resource: the server responded with a status of 404 (Not Found)
jquery_ujs.self-784a997f6726036b1993eb2217c9cb558e1cbb801c6da88105588c56f13b466a.js Failed to load resource: the server responded with a status of 404 (Not Found)
print.self-ae36e3283f23f7975609f7096668f7c63b5df69478c7b56d511dbdd316aa15b4.css Failed to load resource: the server responded with a status of 404 (Not Found)
base.self-ab2cb3098b53fe7d229937d768d701e8f4013f2a5aea7988d8f2149fa40426db.js Failed to load resource: the server responded with a status of 404 (Not Found)
batch_actions.self-38f91c8a2e79d0d334f22e68440137ecad0a081f21e35bf9532de1e409f78e8a.js Failed to load resource: the server responded with a status of 404 (Not Found)
checkbox-toggler.self-f3ac78175da0b7357ada35c7b7db4cd119ac305ab118a7effb24b1c5da629e07.js Failed to load resource: the server responded with a status of 404 (Not Found)
dropdown-menu.self-5794b6ca26364ce522cb47a8ef050870fda0b886cfeef69ec27ef116900f1984.js Failed to load resource: the server responded with a status of 404 (Not Found)
flash.self-8f05a5d9328ea28fca100b057787fbfb567986513c5f1735ea48fad8f9571c10.js Failed to load resource: the server responded with a status of 404 (Not Found)
has_many.self-ece319debdc01ca5096ae8ac6c130ffc0decab382543b4b94e18591375d3d3bb.js Failed to load resource: the server responded with a status of 404 (Not Found)
modal_dialog.self-5dfc6e87bae26cd4a021eb86951d3691ed07e6d2bf242a8eb65dc6965e12096c.js Failed to load resource: the server responded with a status of 404 (Not Found)
per_page.self-ac2a7829e00b21d672b908a9a64b42aef7632ff1dac9a90dda0e779706c71256.js Failed to load resource: the server responded with a status of 404 (Not Found)
table-checkbox-toggler.self-411adb7e5ac7ce5602bfedc685bb1253aa41b0f687599f11312f15805f9856f0.js Failed to load resource: the server responded with a status of 404 (Not Found)
jquery-ui.self-f96f2ec2a32c4bc4da4292cc74bddeca0bb223d81a421c98c4d613632860945e.js Failed to load resource: the server responded with a status of 404 (Not Found)
jquery.self-da8dafbbe883092bcae73f35a8caf4ae6170fe7d8130ae7039a233f9b509c757.js Failed to load resource: the server responded with a status of 404 (Not Found)
batch_actions.self-f693d7e31a910829186af20c64f91da55574e3385b12465c151da4d63f7d9883.js Failed to load resource: the server responded with a status of 404 (Not Found)
datepicker.self-305bbf9fc8b1de2fd07ea201cef994db1e32c3cc29b711f9f5fa13ea70681444.js Failed to load resource: the server responded with a status of 404 (Not Found)
filters.self-a0ee45912355fd1c2122b7c9f94e2fcda6b78cd20723f85cd26d10016b060128.js Failed to load resource: the server responded with a status of 404 (Not Found)
tabs.self-5bccad3e0e615bd96bf323490a71829beec067511af628e9808993bb6beeb3a5.js Failed to load resource: the server responded with a status of 404 (Not Found)
active_admin.self-877aef30ae1b040ab8a3aba4e3e309a11d7f2612f44dde450b5c157aa5f95c05.js Failed to load resource: the server responded with a status of 404 (Not Found)
active_admin.self-f64966142a2c9e51b2886966eb553d7f410652b962c208bb464dd60c738c42d5.css Failed to load resource: the server responded with a status of 404 (Not Found)
print.self-ae36e3283f23f7975609f7096668f7c63b5df69478c7b56d511dbdd316aa15b4.css Failed to load resource: the server responded with a status of 404 (Not Found)
I've already tried adding to production.rb and development.rb config.assets.precompile = true and config.assets.precompile += %w[active_admin.css active_admin.js], also I tried an advice to remove "require tree" from application.js, nothing helped. I've been searching for a week, how to compile these assets? :(
Thank you in advance!
In my production environment, i had encounter similar issue. Even in my case self was getting added in asset resource name. issue resolved after disabling following property
config.assets.debug = false
for info http://edgeguides.rubyonrails.org/asset_pipeline.html
Related
I updated DSE to 5.1.2 and enabled DSE Unified Authentication.
When I run "dse -u xxx -p xxx spark", I get a shell, but if i submit a query using "spark.sql" I get an error:
scala> val result = spark.sql("SELECT id FROM xxx.yyy")
java.lang.RuntimeException: com.datastax.bdp.fs.client.InternalServerException: Server returned HTTP error response 500 (Internal Server Error)
Caused by: com.datastax.bdp.fs.client.InternalServerException: Server returned HTTP error response 500 (Internal Server Error)
at com.datastax.bdp.fs.client.DseFsClient$stateMachine$macro$1$1.apply(DseFsClient.scala:132)
In /var/log/cassandra/system.log I see:
WARN [Native-Transport-Requests-2] 2017-08-31 12:05:29,057 DseAuthenticator.java:659 - Plain text authentication without client / server encryption is strongly discouraged
ERROR [dsefs-netty-worker-4] 2017-08-31 12:05:29,842 DSEFS RestServerHandler.scala:287 - [id: 0x1810ea2d, L:/10.225.155.31:5598 - R:/10.225.155.31:58006] RestHandler invocation failed
java.util.concurrent.ExecutionException: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)
at com.google.common.util.concurrent.AbstractFuture$Sync.getValue(AbstractFuture.java:299) ~[guava-18.0.jar:na]
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)
Any idea how to fix this. By the way, dse spark-submit works...
The problem was solved by enabling dsefs in dse.yaml.
I followed the instruction and added two files as "Embedded Resources" in my Swagger folder:
APIDemo
|
|------ Swagger
|
|----index.html
|----style.css
My SwaggerConfig.cs:
.EnableSwaggerUi(c =>
{
c.InjectStylesheet(thisAssembly, "APIDemo.Swagger.style.css");
c.CustomAsset("index", thisAssembly, "APIDemo.Swagger.index.html");
But I got the following error messages when I run the project:
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:53670/swagger/ui/lib/underscore-min-js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:53670/swagger/ui/lib/handlebars-2-0-0-js
Failed to load resource: the server responded with a status of 404 (Not Found) http://localhost:53670/swagger/ui/lib/underscore-min-js
Failed to load resource: the server responded with a status of 404 (Not Found) backbone-min-js:3 Uncaught TypeError: Cannot read property 'each' of undefined swagger-ui-js:9
Uncaught ReferenceError: Handlebars is not defined http://localhost:53670/swagger/ui/lib/highlight-7-3-pack-js Failed to load resource: the server responded with a status of 404 (Not Found) index:54
Uncaught ReferenceError: SwaggerUi is not defined
What could be the reason? Thanks.
Not sure why getting this failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in Youtube API
If I try public api - it works
but if I use server ip and referer domain. its showing error
Warning: file_get_contents(https://www.googleapis.com/youtube/v3/search?part=snippet&order=viewCount&maxResults=5&q=Sydney&key={mykey}): failed to open stream: HTTP request failed! HTTP/1.0 403 Forbidden in filepath.php on line 8
Can anyone help me, how can I resolve this issue
I've tried
driver.removeApp("com.my.app");
but getting an exception :
Exception in thread "main" org.openqa.selenium.WebDriverException: undefined status object (WARNING: The server did not provide any stacktrace information)
and the appium log :
info: --> POST /wd/hub/session/71a4c5ca-92b5-4e94-99f5-f8a795671d82/appium/device/remove_app {"bundleId":"com.my.app"}
info: [debug] Responding to client with error: {"status":1,"value":{"message":"undefined status object"},"sessionId":"71a4c5ca-92b5-4e94-99f5-f8a795671d82"}
info: <-- POST /wd/hub/session/71a4c5ca-92b5-4e94-99f5-f8a795671d82/appium/device/remove_app 500 1.802 ms - 109
any idea why it doesn't work ?
thanks
I'm developing an application where a user can upload 1-3 images at some point. However, this does not work. When submitting the form, nothing will come through to Unicorn. The only piece of log information I have is this from nginx:
2014/09/24 15:28:05 [error] 7301#0: *23953 readv() failed (104: Connection reset by peer) while reading upstream, client: <my IP>, server: localhost, request: "POST /products HTTP/1.1", upstream: "http://unix:/tmp/<appname>/unicorn.sock:/products", host: "<domain>", referrer: "<domain>/products/new"
Also, my browser will try to load the page for some time, and then show a blank page, with the response header giving a 500.
EDIT: okay, as it seems, rack causes a crash when processing file uploads:
E, [2014-09-24T21:22:33.505511 #18252] ERROR -- : app error: invalid byte sequence in UTF-8 (ArgumentError)
E, [2014-09-24T21:22:33.506288 #18252] ERROR -- : kernel/common/string.rb:103:in `=~'
E, [2014-09-24T21:22:33.506392 #18252] ERROR -- : /srv/<appname>/.rvm/gems/rbx-2.2.10/gems/rack-1.5.2/lib/rack/multipart/parser.rb:92:in 'get_current_head_and_filename_and_content_type_and_name_and_body'
Check your unicorn configuration in unicorn.rb and try to modify the timeout