Questions tagged [fog]
fog describes itself as 'the Ruby cloud services library'.
497
questions
-3
votes
0
answers
12
views
i am creating a new project in eclipse ide and that project is a mobfogsim simulator. when i run the example of this folder this type of error occurs?
Starting VRGame...
-1157408321
758500184
379066948
-1667228448
5.1
5.1
5.1
5.1
Controller 0.0 Submitted application vr_game
java.lang.NullPointerException: Cannot invoke "java.util.Map.get(Object)...
0
votes
0
answers
24
views
updating carrierwave attribute after storing another file at same location
I have a usecase, where I have uploaded a file using carrierwave fog-google on GCS bucket. However using some other code, I am processing the same file then re-uploading it after changing size and ...
0
votes
0
answers
19
views
if overriding filename method in carrierwave fog_google, upload file is not working
In my uploader, if I am overriding the filename method present in Store.rb library of carrierwave, then upload functionality is not working. It is showing code executed properly but file was not ...
0
votes
1
answer
48
views
how to test carrierwave fog google in rspec with setting up the configuration
I have below configuration and I wanted to write TC for it in ruby. I am new to ruby and wanted to understand how we can set the configuration of Fog to point to mock and use it in test-case.
class ...
0
votes
0
answers
14
views
iFogSim: changing the default number of proxies or even any middle layer
I'm working on a simulation scenario where I need to have a certain number of nodes in the middle layers, such as proxies and gateways.
I saw in the refernce article of iFogSim2 that the number of ...
0
votes
1
answer
39
views
uploading large file on google cloud bucket failing
I am uploading a large file from my local system or an remote_url to google bucket. However everytime I am getting the below error.
/usr/local/lib/ruby/3.0.0/openssl/buffering.rb:345:in `syswrite': ...
0
votes
1
answer
21
views
Monterey OSX. `const_defined?': uninitialized constant Fog::Rackspace::CDN (NameError)
I have recently upgraded my OS. from Big sur to Montery.
When I was running my ruby application I am getting an error with careerwave
.rvm/gems/ruby-2.3.1/gems/fog-core-2.3.0/lib/fog/core/provider.rb:...
0
votes
0
answers
94
views
Net::SFTP::StatusException (5, "bad message") While Sending Chunks Of A Large File:
Short Version:
Sending files from S3 in more than one chunk to SFTP server fails with a Net::SFTP::StatusException (5, "bad message") error.
Long Version:
I'm trying to send a large file ...
1
vote
0
answers
77
views
Carrierwave uploading file using fog to google cloud storage without making bucket public and control access fine-grained in rails
Is there a way i can upload files while keeping bucket private and access control uniform?
as i am trying to use carrierwave with fog for this purpose and followed carrierwave gem instructions but i ...
1
vote
1
answer
64
views
Difference between Fog and Edge computing
I am confused between these two terms because they both seem very similar. Both process the data close to the IoT devices. Same hardware/ software can be used for fog and edge. So where exactly does ...
1
vote
2
answers
65
views
I need to define 3 kinds of messages in omnet
I want to define 3 kinds of messages in omnet
I know I have to use messagekind but I couldnt
please help me
I want help message, control message and jobs, which jobs should be processed
thank you so ...
0
votes
0
answers
18
views
Using an existing image on s3 with Carrierwave?
I'm trying to use existing images on my s3 and relate them to a carrierwave object. These images are stored in a different location from the store_dir of my uploader.
I currently have my migration ...
0
votes
1
answer
52
views
Fog computing with veins
Can fog computing be used with veins and inet for an omnet++ project?
I want to build an omnet++ project, in which I can send and receive messages between OBUs and RSUs, but with RSU as a fog node in ...
0
votes
0
answers
9
views
Unable to update FOG using browser on Ubuntu 20.04 after fresh install [duplicate]
I have installed Fog onto Ubuntu and I am getting the below error:
enter image description here
When accessing the browser http://ip_address/fog/management, it seems to be trying to connect with an ...
1
vote
1
answer
154
views
How do I open a CSV file that I uploaded with Carrierwave and Fog to Amazon S3?
I have a model called client_billing_file where I use Carrierwave to upload a CSV file like this:
mount_uploader :billing_file_name, UsageFileUploader
and I schedule a job to run 5 minutes after ...
0
votes
0
answers
42
views
Can't find "key" attribute in model with CarrierWaveDirect gem
I've been trying to implement direct upload with AWS and CarrierWave direct. I'm following the documentation.
I have a model: AppNotice. It has a column called image.
However, it seems like even ...
0
votes
0
answers
58
views
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI is not working
I set up AWS_CONTAINER_CREDENTIALS_RELATIVE_URI environment variable and try to upload images on AWS S3 private bucket but I am getting 403 Access Denied Error.
Excon::Error::Forbidden Expected(200) &...
0
votes
0
answers
40
views
Rspec - Testing a Carrierwave uploader
I need to test the my custom fog_public method for my uploader.
def fog_public
return false if mounted_as == :pdf_file
super
end
This uploader is being used at multiple places, but I ...
0
votes
0
answers
16
views
How to attach Elastic Inference accelerator using Fog::Compute::AWS
We currently use Fog::Compute::AWS to fire up compute nodes to perform tasks.
One of our tasks now requires elastic inference. I cannot determine how to get Fog to attach an elastic inference ...
1
vote
0
answers
115
views
Carrierwave uploading file saves the file to AWS but the data doesnt persist after reload
Rails 6.1 with carrierwave 1.2.3 and fog 2.1.0
I'm attaching pdfs to a Document class internally using a DocsUploader. When saved everything looks to work fine and the document is uploaded to AWS and ...
-1
votes
1
answer
110
views
How do I create a Near Edge computing system? (Send sensor data with Raspberry Pi/DHT11 sensor)
I am working on edge computing for IoT applications and expected to create a system that acts as a near edge computer with the use of a raspberry pi hooked up to a dht11 sensor. How do I send this ...
2
votes
1
answer
263
views
Sinatra CarrierWave Fog - NameError: uninitialized constant Fog
I have been trying to setup CarrierWave with Sinatra and Fog for S3 File Management. I constantly keep running into issues around Fog being undefined. This works fine the moment I change the storage ...
0
votes
0
answers
173
views
Rails Fog create a file based on a remote link
I have Rails application and use fog gem to upload files to cloud storage (Rackspace). As of now I have been successfully uploading local files to cloud storage.
@service = Fog::Storage.new(options)
...
0
votes
0
answers
137
views
Readability Scores for Multiple Text Files in R
I am very new to R. I would be very thankful if you could share a code to help me with the following.
I want to calculate readability scores (such as: FOG Index, SMOG Index, Flesch–Kincaid Score etc.) ...
1
vote
1
answer
130
views
Can't specify digitalocean endpoint in sitemap_generator s3 aws adaptor
I am using sitemap_generator in our Rails application & trying to create and upload the sitemaps to DigitalOcean spaces (which is s3 compatible as far as I know) but I can't override the endpoint ...
1
vote
1
answer
249
views
vagrant-share plugin installation error -- fog-core gem mismatch
I'm learning Vagrant's vagrant-share plugin and ran into a Bundler error:
"conflicting dependencies fog-core (~> 1.43.0) and fog-core (= 1.45.0). activated fog-core-1.45.0 which does not match ...
0
votes
2
answers
192
views
Difference between offloading decision and task scheduling in context of fog computing
In context of fog computing, the computation offloading decision decides where to offload- on cloud or on fog or execute it locally. While task scheduling also decides where to execute task on fog or ...
0
votes
2
answers
481
views
Unpermitted parameter: :format when saving image with Google Cloud Storage
I am trying to save my image files with carrierwave, fog, and google cloud storage.
So when I submit the data and the image field
<ActionDispatch::Http::UploadedFile>
but getting error "...
1
vote
2
answers
143
views
Fog/aws gem for IBM Cloud Object Storage is not working
As Softlayer or IBM Cloud has moved from Swift based Object Storage to S3 based Cloud Object Storage. I am using fog/aws instead of fog/softlayer.
The below is the code:
require 'fog/aws'
...
13
votes
2
answers
2k
views
Fog deprecation warnings when starting Rails server
I migrated my Rails app to Rails 6.0.1 and every time I startup the server I get these Fog deprecation warnings. How can I get rid of them?
Funny enough I have a cloned version of this app, which ...
0
votes
1
answer
528
views
How to copy all files in a folder on s3 using Fog in Ruby
How do I copy all the files present in an s3 directory(same prefix) to another directory in the same bucket using fog?
For eg: Copy all files with prefix <bucket>/foo/ to <bucket>/bar/
0
votes
1
answer
21
views
Is storage in fog similar to the cloud? Does the fog node do some processing on the data before sending to the cloud?
Does the fog node do the processing before sending the data to cloud for storage? If so what kind of processing is been done?
1
vote
2
answers
764
views
Configuring Fog to install in Ruby on Rails project
I'm learning ruby on rails and have had my project hosted on c9.io. In the process of migrating over to Amazon AWS Cloud9 I'm having to reinstall my gems to my project. I am getting a config error ...
0
votes
0
answers
121
views
"Access Denied" error appears in $ heroku logs --tail when I upload a picture in my APP to AWS with fog gem
unable to upload a picture file into S3 bucket in my APP with fog gem, even though I could upload locally.
I still can log into AWS successfully with correct IAM user name, who has ...
0
votes
1
answer
310
views
Processing Latency
Hello Everybody please help me ,
I would like to compute the processing latency over different layer in the network , especialy on the cloud server. I want a mathematical function to compute the ...
5
votes
1
answer
485
views
CarrierWave url nil after upgrading from Rails 3 to Rails 4
While upgrading our app from Rails 3.2.22 to Rails 4.2.11, several CarrierWave methods that worked prior to the upgrade now return nil, such as .url and .file. We are hosting our assets on AWS S3 and ...
1
vote
2
answers
1k
views
How can I temporarily store (cache) images before uploading to S3?
My rails app is using CarrierWave and Fog to upload images to S3. Remote URLs are working fine, HOWEVER I need to temporarily store local images (from the device it's being uploaded) before I can ...
0
votes
0
answers
52
views
Rails API - Local file is not uploading to s3/Heroku
These are the parameters that are being passed to my HTTP POST request, as so:
Parameters: {
"vision"=>{
"description"=>"dsfsfdsfdsfsd",
"image"=>"file:///Users/ozgecokyasar/Library/...
0
votes
0
answers
424
views
in `validate_options': Missing required arguments: aws_access_key_id, aws_secret_access_key (ArgumentError)
Everything has been great. Until I checked out a new branch, and now I get this error. I use figaro which generated an application.yml to store the env variables for the aws credentials. I have ...
0
votes
2
answers
1k
views
NameError: uninitialized constant CarrierWave::Storage::Fog, heroku
I am trying to use carrierwave, fog and AWS for my image uploading on Heroku. Pretty common...I even have it set up successfully for another app. However when I delpoy to heroku I'm getting this error:...
0
votes
1
answer
362
views
ENV variables when doing Rails commands (migration, others)
Using Carrierwave and fog and everything working fine with AWS but when I try and do a migration and some other rails commands I get:
lib/fog/core/service.rb:244:in validate_options: Missing required ...
0
votes
0
answers
401
views
Rails Fog storage : NameError: uninitialized constant Azure::Core
I previously an app with Fog Storage on Rails 5.0.
Now i'm creating a new rails app in Rails 5.2 with active storage and fog storage.
I want that rails app upload, attach and download some files and ...
0
votes
2
answers
529
views
File does not get stored (mounted) if processing of versions fails
I upgraded carrierwave from 0.11.0 to 1.2.3 and realised that a, for me crucial, behaviour has changed and broke my logic. Here is the example of my uploader.
class FileUploader < CarrierWave::...
0
votes
0
answers
991
views
Excon::Error::RequestEntityTooLarge: Expected(200) <=> Actual(413 Request Entity Too Large) : Fog google storage ruby
I have a rails app 5.2, ruby 2.3.4 with fog-google (1.3.3).
It was working great on dev, test and prod environnement since a long time to upload and download file.
But now fog storage refuse to ...
0
votes
1
answer
851
views
CarrierWave customize original filename
I am attempting to customize the original filename for an image uploaded through CarrierWave by appending some sort of unique UUID. The problem is that I do not want this UUID to also be appended onto ...
9
votes
4
answers
1k
views
"Excon::Error::Forbidden" error when trying to save files to Google Cloud Storage with Fog and Carrierwave
I'm using Carrierwave and Fog to store images on the cloud. I was previously using Amazon S3 for the actual storage, which worked with no issues. But I switched over to Google Cloud Storage, and now I'...
1
vote
0
answers
115
views
Load Balancing in fog computing
I have been trying to use fog sim to try and compare different load balancing algorithms and to check for efficiency, power, and distribution of tasks but i am not able to find java code for load ...
1
vote
1
answer
3k
views
HTTParty: Upload files
How would I do the following curl call using HTTParty?
$ curl -u andrew.lunny@nitobi.com -F keystore=@android.keystore -F 'data={"title":"Android Key","alias":"release", "key_pw":"90123456","...
1
vote
0
answers
475
views
Why an AccessDenied error on S3 files?
Some of the files uploaded on S3 can't be read because of an AccessDenied error. It was working well so far...
Gemfile
ruby '2.2.0'
gem 'rails', '3.2.22.2'
gem 'pg', '0.18.4'
gem 'sprockets', '2.2.3'...
1
vote
1
answer
135
views
"fog openstack" authentification error
Trying to connect locally deployed openstack (pike) with fog.
Firstly, curl connection works well with the command:
https://hastebin.com/fihojuqize.scala
With this in mind, i've created fog ...