Comments (9)
Hi @apair,
Can you please provide the following details to help me look into your issue further?
- Your Tinx version (
composer info ajthinking/tinx
) - Your PHP version (
php -v
) - Your Laravel version (
php artisan -V
) - Your operating system and version (If Mac,
sw_vers
? Windows? etc)
If you're able to provide your composer.json
file, that may help too!
You may want to check your storage/tinx
directory permissions…
ls -la [path to application root]/storage/tinx/
Also, is this the exact error message you're seeing…
file_put_contents(/var/www/html/---/----/storage/tinx/.gitignore): failed to open stream: Permission denied
…or is the ---/----
part of the path you hiding project-sensitive details?
Cheers.
from tinx.
Hey
- Tinx version : v2.1.7
- PHP 7.2.13
- 5.6.39
- Ubunto 16.04
- Composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": "^7.1.3",
"ajthinking/tinx": "^2.1",
"arcanedev/log-viewer": "4.5.x",
"backpack/crud": "^3.4",
"backpack/permissionmanager": "2.1.27",
"backpack/settings": "^2.1",
"barryvdh/laravel-elfinder": "^0.3.12",
"barryvdh/laravel-snappy": "^0.4.1",
"bugsnag/bugsnag-laravel": "^2.0",
"checkout/checkout-php-api": "^1.2",
"chumper/zipper": "^1.0",
"czim/laravel-localization-route-cache": "^0.9.6",
"davejamesmiller/laravel-breadcrumbs": "5.x",
"dees040/laravel-api-responses": "^0.2.3",
"dirape/token": "dev-master",
"doctrine/dbal": "^2.7",
"fideloper/proxy": "^4.0",
"graham-campbell/markdown": "^10.2",
"guzzlehttp/guzzle": "^6.3",
"h4cc/wkhtmltopdf-amd64": "0.12.x",
"intercom/intercom-php": "^3.2",
"intervention/image": "^2.4",
"intervention/imagecache": "^2.3",
"laravel/framework": "5.6.*",
"laravel/horizon": "^2.0",
"laravel/tinker": "^1.0",
"league/flysystem-sftp": "^1.0",
"maatwebsite/excel": "^2.1",
"mcamara/laravel-localization": "^1.3",
"morilog/jalali": "^2.3",
"nikaia/translation-sheet": "^1.2",
"phpseclib/phpseclib": "^2.0",
"predis/predis": "^1.1",
"spatie/array-to-xml": "^2.8",
"spatie/data-transfer-object": "^1.7",
"spatie/laravel-backup": "^5.10",
"spatie/laravel-newsletter": "^4.2",
"spatie/laravel-sitemap": "^5.2",
"torann/geoip": "^1.0",
"weidner/goutte": "^1.0"
},
"require-dev": {
"awssat/laravel-sync-migration": "^0.1.2",
"backpack/generators": "^1.1",
"barryvdh/laravel-debugbar": "^3.2",
"barryvdh/laravel-ide-helper": "^2.4",
"filp/whoops": "^2.0",
"fzaninotto/faker": "^1.4",
"laracasts/generators": "dev-master",
"mockery/mockery": "^1.0",
"nunomaduro/collision": "^2.0",
"phpunit/phpunit": "^7.0",
"sempro/phpunit-pretty-print": "^1.0"
},
"autoload": {
"classmap": [
"database/seeds",
"database/factories"
],
"psr-4": {
"App\\": "app/"
},
"files": [
"app/helpers.php"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"extra": {
"laravel": {
"dont-discover": [
]
}
},
"scripts": {
"post-root-package-install": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\""
],
"post-create-project-cmd": [
"@php artisan key:generate"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover",
"php artisan ide-helper:generate",
"php artisan ide-helper:meta"
]
},
"config": {
"preferred-install": "dist",
"sort-packages": true,
"optimize-autoloader": true
},
"minimum-stability": "dev",
"prefer-stable": true
}
Permission is :
drwxrwxrwx+ 2 www-data www-data 4096 march 12 17:11 .
drwxrwxrwx 8 www-data www-data 4096 march 12 11:03 ..
-rwxrw-r-x 1 apa apa 13 march 25 10:33 .gitignore
-rwxrwxrwx 1 www-data www-data 13 jan 31 15:04 .gitignore.org
-rwxrwxrwx 1 www-data www-data 59208 march 18 16:28 includes.php
-rwxrwxrwx 1 www-data www-data 14 march 18 16:28 state
and ---/----
is not the path.
from tinx.
Are you running this in a container like docker?
from tinx.
Are you running this in a container like docker?
Nope
from tinx.
Hi @apair,
Thanks for sharing your environment details.
Your issue might relate to PR #57 (patched by release v2.1.8).
Looking at your storage/tinx/.gitignore
file…
-rwxrw-r-x 1 apa apa 13 march 25 10:33 .gitignore
…have you tried changing its permissions to match the other files in that directory?
chown www-data:www-data .gitignore
chmod 777 .gitignore
You might need to prefix the above commands with sudo
if they throw permission errors.
Also, are you able to upgrade Tinx to a later version?
For example, v2.1.8
(PR #57 patch)…
composer require ajthinking/tinx=v2.1.8
…or ideally, v2.3.1
(the latest version)…
composer require ajthinking/tinx=v2.3.1
Make sure you update Composer's autoloader if you update Tinx:
composer dump -o
Let me know how you go!
from tinx.
Thanks for your follow up,
As you mentioned it's all about regenerating .gitignore file that has been fixed in PR#57.
I'm gonna upgrade version to fix it.
from tinx.
Hi @apair,
Did you end up fixing the issue by upgrading?
I'm keen to close the issue if the problem is now resolved.
Cheers!
from tinx.
Hey @furey ,
I did not get this error anymore after upgrading.
from tinx.
@apair Awesome, glad to hear!
from tinx.
Related Issues (20)
- Contact details HOT 1
- re() doesn't reload observers code HOT 5
- Tinx does not remember command history HOT 4
- Reload does not reload files HOT 4
- Cursor Navigation in prompt HOT 1
- Shortcut gets 'undefined variable in Psy Shell' HOT 2
- PDO::prepare(): send of 40 bytes failed with errno=32 Broken pipe HOT 1
- re() doesn't reload changes in models located at app folder HOT 3
- Lumen 5.3 "Class Illuminate\Foundation\Bootstrap\LoadConfiguration does not exist" HOT 1
- Running php artisan tinx prints the banner and exits. HOT 1
- re() doesn't reload route changes HOT 1
- Is it safe to use Tinx in production environments? HOT 2
- Flare config is not loaded HOT 5
- Conflict with Facade/Ignition HOT 1
- Method get does not exist HOT 2
- Class 'Arr' not found on start up HOT 2
- Faker not being loaded. HOT 1
- Support use of Thinker V2.0.0 HOT 1
- Call to undefined function Ajthinking/Tinx/Console/str_plural() HOT 1
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 tinx.