PHPStorm rename remote files failing - symfony

I am using PHPStorm 8.0.1.
I am working on a Symfony Project which runs on an nginx webserver on a debian system.
I have set up Automatic Deployment correctly and everything works very well, except of renaming the remote files.
PHPStorm fails with the message: "Failed to rename file 'filename.extension' to 'filename.extension': could not determine if file 'path to file' is writeable. (Could not get the groups id of the current user (error code: 1))
Can Anybody here point me in the direction on how to solve this error?

I had exactly the same problem. Reason: chroot enabled (thanks BloodandDeath for comment). In my Hestia panel settings, I just switched the SSH user setting from nologin to bash, after which PHPStorm started renaming files without error. By the way, everything worked well in Filezilla without changing the settings, which suggests a bug in PHPStorm ...

Related

Symfony using Mac OS X

I am trying to start a project using Symfony on a Mac Sierra.
I installed Symfony successfully, but I get this warning:
We selected the timezone 'UTC' for now, but please set date.timezone
to select your timezone. in
phar:///usr/local/bin/symfony/src/Symfony/Installer/NewCommand.php on
line 283 ✕ Symfony 3.2.1 was successfully installed but your system
doesn't meet its
technical requirements! Fix the following issues before executing
your Symfony application: * date.timezone setting must be set
> Set the "date.timezone" setting in php.ini* (like Europe/Paris).
I tried to change php.ini with brackets editor on the created project on folders:
project/vendor/doctrine/cache/test/travis/php.ini
project/vendor/doctrine/doctrine-cache-bundle/test/travis/php.ini
Didn't help.
As I read Symfony has built-in Apache Server.
Those php.ini files are totally unrelated to what you have to do.
Open up the Terminal and type php -i | grep "php.ini". That should reveal the location of the php.ini which is used by PHP in console mode.
XAMPP is known for using different php.ini file for the server. In order to find the the one used by the XAMPP, run a sample php file with phpinfo() from browser.
Also, note that Symonfy itself does not have the built-in server. In merely used the one PHP provided from version 5.4 and on.
Hope this helps...
I am Mac user, so , in Finder you need to go to /private/etc, find php.ini.default,
Yo need to copy that file to the desktop. To edit you need to unlock the document. Just click Unlock if asked. Rename to php.ini, set the date.timezone=Europe/YourCountry and do not forget to erase the semicolon before.And finally save it and put it back to etc.
Watch: https://www.youtube.com/watch?v=Wb6Fh-B3W-o

Script does not exist at specified location

"Script does not exist at specified location: /opt/codedeploy-agent/deployment-root/76b33ccc-594b-4d58-a1b8-e40d054c64b7/d-AVYMCK28I/deployment-archive/scripts/Applicationstoptest.sh"
This is the error I am getting can any one please help me how to resolve this issue
Make sure you're using relative paths in your appspec.yml.
I had the same issue. I followed this process and it did helped me.
The ApplicationStop hook is being called from the previously installed deployment before trying to run the current deployment appspec.yml file.
In order to prevent this from happening you'll have to remove any previously installed deployment from the server.
Stop the code deploy agent - sudo service codedeploy-agent stop
clear all deployments under /opt/codedeploy-agent/deployment-root
Restart the code deploy agent - sudo service codedeploy-agent start
copied ans from here so don't have to open new link.
Thanks #paul
The paths used in source in the AppSpec file are relative paths, starting from the root of your revision. Also please make sure the appspec.yml file and the other files in the application bundle are not wrapped inside another folder.
I found my answer here: https://stackoverflow.com/a/27925591/1056283
The application stop hook uses a previous deployment to look for the script to invoke, so if the structure of your deploy package changes, there may not be a script to call at the specified location yet. The deploy fails and the script never arrives at the new location. Look in the linked answer for the steps to resolve it.

RStudio gives "Incorrect function" when setting git as Version control

When I create a new project and select to create a new Git repository, or when I try to change the version control system in project options I receive a RStudio error stating "Incorrect function" with a big X and no extra information.
The below link has a similar issue, but their solution of changing the path for git.exe has not helped (i have tried all three paths)
https://support.rstudio.com/hc/en-us/community/posts/200632528-Git-Error-Incorrect-Function
Some extra notes:
RStudio allows me to clone repository to set new working directory
Also git works in bash, so i feel this is an RStudio issue.
I encountered the same error. For me it also had to do with using a network path not a local directory for the project location (as for lewis1211).
Workaround: Map the network drive. E.g. Map your //server/share to some drive, say Z: (using map network drive, if you are using windows). If you set your project up under Z: then, it works.
If you have already chosen "git.exe" in RStudio --> Tools --> Global Options --> Git/SVN, then try to open Rstudio shell and type git init. In my case it showed "Permission denied", and after running as administrator the problem has gone.
This is only a partial answer if it fixes your problem: I reproduced this when trying to use a network path for a project location. When using a local directory no error occurs. Could indeed be an RStudio issue.
Run you R studio as Project administration.
This solves my issue.
SOLVED.
I had the same problem. The Git-RStudio-Connection fails but git is working perfectly in the CMD. When running the git init command in CMD it works and creates a .git folder. But running the git init command in the RStudio terminal fails with a message Warning: unable to access 'C:/Users/%username%/.gitconfig': Permission denied ... fatal: unknown error occured while reading the configuration files.
The Version Control Sytem (VCS) or git-Panel does not appear in RStudio and selecting it in the projects options leads to the same message Error: Unzulässige Function (eng. Error: Incorrect function).
A closer look into the .gitconfig file should give you a new solution approach hopefully without having administration rights. Comparing the installation on the integration worksation with a productive workstation shows, that on the Test-Machine an incomplete .gitconfig file is on C:/Users/%username%/.gitconfig and on the Productive-Machine a complete gitconfig file is on Z:/.gitconfig. By the way, Z is a mapped drive which is linking to the company's user-profile settings (see CMD > echo %HOMEDRIVE%).
According to this analysis there should be multiple possible solution approaches:
(1) delete the corrupt .gitconfig and hope the the system is correctly looking into your profiles directory
(2) complete the .gitconfig file that all necessary information are there. The message fatal: unknown error occured while reading the configuration files could actually be a hint, that the first message access... permission denied is false and the problem lies in the incomplete file.
(3) Be aware that there can be a confusion between ".gitconfig" as FILE and ".gitconfig" as FOLDER. Check this with changing directory with cd to folder and cat to show the file content. It will tell you that you cannot display a folder as file-content.
(4) Change the location of the config file with git config --file FullnameToGitconfig. e.g. git config --file %USERPROFILE%/.gitconfig or git config --file %USERPROFILE%/.gitconfig/gitconfig or git config --file %HOMEDRIVE%/.gitconfig etc.
[user]
name = DOE John
email = john.doe#acme.com
[merge]
tool = kdiff3
[mergetool "kdiff3"]
path = C:/Program Files/KDiff3/kdiff3.exe
[diff]
guitool = kdiff3
[difftool "kdiff3"]
path = C:/Program Files/KDiff3/kdiff3.exe
[core]
editor = \"C:/Program Files (x86)/GitExtensions/GitExtensions.exe\" fileeditor

Meteor on Windows: meteor command outputs nothing

I installed the MSI file from win.meteor.com
I reboot the computer, and open up CMD and type meteor create app but nothing happens. It doesn't say the command was undefined, so I don't know what's wrong here.
I am using windows 7 64-bit home.
I have discovered an issue with node fibers (on windows) and have a tentative fix - at least it fixed the problem for me, and I would be interested to see if that also fixes it for others.
Ultimately the problem was apparently sudden death due stack overflow and access violation. The root cause however was that the thread locals were not correctly being switched on a fiber switch.
you should check the environment path
add Meteor root directory to PATH
like this
PATH: ...;d:\Meteor;d:\Meteor\bin
METEOR_PATH: d:\Meteor
NODE_PATH: d:\Meteor\lib\node_modules
I have this issue too..
METEOR_PATH = C:\Program Files (x86)\Meteor\
NODE_PATH = C:\Program Files (x86)\Meteor\lib\node_modules
PATH = C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\site\bin;C:\Program Files (x86)\VMware\VMware vSphere CLI\Perl\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Enterprise Vault\EVClient\;C:\Program Files (x86)\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files\Java\jre6\bin\;C:\Program Files\Sublime Text 2;C:\Program Files (x86)\Meteor\;C:\Program Files (x86)\Meteor\bin
When you I run the meteor command, it does open meteor.js in node (if I add console.log('xxx') to meteor.js I see output), but the script finishes with no output.

Adobe Flex Apache module under Linux

I'm attempting to use the Adobe Flex Apache (2.2) module under Linux from here - http://labs.adobe.com/wiki/index.php/Flex_Module_for_Apache_and_IIS (the manual install). I have a perfectly working Apache system, with Ubuntu 8.10 and the Sun JDK v6 update 10 so installing this is not about support tools.
I can't figure out how to make this apache module work.
My httpd.conf shows this:
LoadModule flex_module /usr/lib/apache2/modules/mod_flex.so
AddHandler flex .mxml
The mod_flex.so is in the right place.
I have /usr/bin/compiler.sh:
#!/bin/sh
java -Djava.awt.headless=true -ms128M -mx256M -jar "/home/jamie/Adobe_Flex_Builder_Linux/flexc.jar" ${*} 2>&1
(why on earth would you hardcode the location of this?). This shell script gets executed (e.g. if I put a echo "hi!" >> /tmp/log.txt, it shows up).
But, it just returns to the browser a blank page. So the module is doing something, it just ain't doing it correctly.
The compiler configuration file (which I've put in the same directory as compiler.sh, as the flexc.jar and as the .mxml file being compiled references:
flex_config=/home/jamie/Adobe_Flex_Builder_Linux/sdks/3.0.0/frameworks/flex-config.xml
flex_lib=/home/jamie/Adobe_Flex_Builder_Linux/sdks/3.0.0/frameworks
Now, sometimes I manage to get error output into the browser - it complains about not being able to find the class flash.localization.ILocalizer.
I've managed to squash that error by editing the manifest in flexc.jar to point to the necessary jar files from the 3.0.0 Flex SDK from Adobe (I did try and set the CLASSPATH environment variable to point to the necessary jars, but that didn't work) Now, my latest error is:
An error occured on the server. Server error is: 'Error occurred in server thread; nested exception is: java.lang.NoClassDefFoundError: flex2/linker/SimpleMovie'
This shows up in a nicely formatted "Compilation Results" page in the browser, so obviously now I've got the compiler trying to compile the mxml, and failing because it's missing mxmlc.jar. Adding mxmlc.jar to the flexc.jar manifest has not helped this last problem.
Any help appreciated!
After some googling, I've found one Linux Macromedia Flex on Tomcat-HOWTO, at http://members.cox.net/midian/howto/flex+tomcat.htm It looks pretty simple, from that perspective. Have you installed Tomcat?

Resources