Community

Subscribe

Blog

Weekdays of IT specialists, talking about the activities of our company

News & releases

Latest news from the world of IT and cloud technologies

Questions & Answers

Use our convenient search tool or ask a question yourself

RELEVANT TODAY

Automate Faster: Peerobyte Now Supports Terraform

We’ve integrated the standard Terraform OpenStack provider into the Peerobyte platform, empowering DevOps engineers and cloud architects to automate and standardise OpenStack-based cloud provisioning.

Knowledge base

See more posts

MongoDB: Key Terms, History, and Success

MongoDB is a widely used NoSQL database designed for fast and efficient data management. Unlike traditional relational databases, it follows a document-oriented model.

Questions & Answers

See more posts

Unable to Access React Application via Main IP Address

After running the npm start and node server.js commands, I am unable to access my React application via the server's IP address and port. The application is set up to run through Nginx on an Ubuntu 22.04 server. The domain servers have already been added to the DNS settings. What could be the issue?
System Versions: OS: Ubuntu 22.04 x64 Node.js: Version 18.13.0 Nginx: Version 1.22.0
Nginx Configuration:
 
server { listen 80 default_server; server_name _; root /var/www/html; index index.html index.htm index.nginx-debian.html; location / { proxy_pass http://localhost:3000; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection 'upgrade'; proxy_set_header Host $host; proxy_cache_bypass $http_upgrade; try_files $uri /index.html; } }

Steps I Took: 1. Installed Nginx:
 
sudo apt-get update sudo apt-get install nginx

2. Modif
Gravatar — онлайн-сервис, позволяющий пользователям Интернета поддерживать постоянную картинку на большинстве сайтов.

Replied 19 days ago

1 reply

5 votes

239 views

How to allow a user to read and edit files in a test folder using PHP?

I want to allow a user to read and edit files in a test folder, but these files are created as "read-only." I can't manually run the chown command, so I need to automate the process of changing file ownership via PHP. How can I use chown in PHP to change file ownership?
Gravatar — онлайн-сервис, позволяющий пользователям Интернета поддерживать постоянную картинку на большинстве сайтов.

Replied 1 month ago

1 reply

4 votes

113 views

Rails Server Fails to Bind to Port Due to Another Process. How to Terminate the Process Using the Port?

I am trying to start the web server for a Ruby on Rails application on Ubuntu 20.04 by running:
 
$ rails server
However, I get the following error:
 
=> Booting Puma => Rails 6.1.3.2 application starting in development => Run `bin/rails server --help` for more startup options Puma starting in single mode... * Puma version: 5.3.2 (ruby 2.7.4-p191) ("Birdie's Version") * Min threads: 5 * Max threads: 5 * Environment: development * PID: 12345 * Listening on http://127.0.0.1:3000 * Listening on http://[::1]:3000 => Booted puma (Server is running on http://127.0.0.1:3000 and http://[::1]:3000) Exiting /usr/local/lib/ruby/gems/2.7.0/gems/puma-5.3.2/lib/puma/binder.rb:277:in `initialize': Address already in use - bind(2) for "127.0.0.1" port 3000 (Errno::EADDRINUSE)
I know I can run the Rails server on a different port, but how can I identify the processes that are blocking this port and terminate them?
Gravatar — онлайн-сервис, позволяющий пользователям Интернета поддерживать постоянную картинку на большинстве сайтов.

Replied 1 month ago

3 replies

6 votes

170 views

How to Fix 504 Timeout Issue in Magento with Apache, PHP-FPM, and Varnish?

I have a Magento website, and when I run a backend process in the admin panel that "might take a long time," I get a 504 timeout error. I increased PHP's max_execution_time to 1500 seconds, but the request still gets interrupted after 60 seconds. The Cloudflare proxy is disabled, but this does not solve the problem. The server is hosted on a VPS. I checked the PHP-FPM and Apache logs but found nothing related to the 504 error.
Gravatar — онлайн-сервис, позволяющий пользователям Интернета поддерживать постоянную картинку на большинстве сайтов.

Replied 1 month ago

1 reply

3 votes

174 views

How to keep a Docker container running after starting several services?

Hi everyone! My name is Stan I’m new to Docker and would like to ask you, as I see many questions on this topic here. What methods do you use to keep a Docker container alive and running when you start multiple services? I create a Docker container where, through the script start-services.sh, services like a web server and additional daemons are started. In the Dockerfile, I write:
 
CMD ["sh", "/opt/start-services.sh"]
The script starts the services successfully, but then it finishes and the container stops immedi
Gravatar — онлайн-сервис, позволяющий пользователям Интернета поддерживать постоянную картинку на большинстве сайтов.

Replied 7 months ago

18 replies

8 votes

219 views

Is it possible to download Docker image without installing Docker on the machine (download image from Docker Hub)?

Hi everyone! I need to fetch images — say, ubuntu:latest — from Docker Hub on a server that doesn't have Docker installed. I need a method to download an image (ideally as a tarball or other portable format) that does not use the Docker CLI. I've reviewed the docs but couldn’t find a suitable solution. Can anyone share examples or tools that download the image not utilizing docker pull?
Gravatar — онлайн-сервис, позволяющий пользователям Интернета поддерживать постоянную картинку на большинстве сайтов.

Replied 8 months ago

15 replies

12 votes

369 views

Best Practices for Terraform Project Structure

Before, I managed all the infrastructure of my Terraform project by writing all the resources in a single main.tf file. Now I want to split the terraform configuration by distributing it from one directory to several subfolders, for example:
 
terraform-project/ ├── network/ │   ├── main.tf │   └── variables.tf ├── compute/ │   ├── main.tf │   └── variables.tf ├── main.tf └── terraform.tfvars
The problem occurs when I use terraform command:
 
terraform apply network
Terraform creates a plan that will remove resources defined outside the network folder. How can I organize the repository so that changes affect only the needed group of resources and the cu
Gravatar — онлайн-сервис, позволяющий пользователям Интернета поддерживать постоянную картинку на большинстве сайтов.

Replied 7 months ago

10 replies

5 votes

171 view

Configuring Jenkins to Send Emails on Pipeline Syntax Errors

In the case of a failed build in my Jenkins Pipeline, I receive an email through the Extended Email plugin. However, when there are syntax errors in the Pipeline, the email is not sent. For example, if I uncomment ensure {} in the code below:
 
#!/usr/bin/env groovy pipeline { agent any stages { stage('Preparation') { steps { echo 'preparing...' } } } post { failure { mailSend body: 'An error was detected', subject: 'Build Failed', to: '[email protected]' } // ensure {} } }
Since ensure {} is placed incorrectly, an error occurs:
 
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: WorkflowScript:19:9: Unexpected input: '{' @ line 19, column 9. ensure {
But an email is not sent in the case of a Pipeline syntax error. How can I ensure that I receive an email when there are syntax errors in the Pipeline?
Gravatar — онлайн-сервис, позволяющий пользователям Интернета поддерживать постоянную картинку на большинстве сайтов.

Replied 8 months ago

7 replies

6 votes

552 views

Infrastructure

See more posts

Subscribe to our newsletter to get articles and news

    Virtualization

    See more posts
    Top 27 DevOps tools you need in 2024

    Top 27 DevOps tools you need in 2024

    I this article we offer our checklist of tools, both foundational and variable, dividing products into categories by functionality: working with code, code storage, configuration management, CI\CD systems.

    Business

    See more posts

    easy start with easyDCIM

    Get started

    The EasyDCIM control panel is there to manage the infrastructure deployed in a Tier III data center. Accessing a dedicated server has never been easier or more reliable.

    Discover more