Code Monkey home page Code Monkey logo

Comments (10)

remram44 avatar remram44 commented on August 25, 2024

Can you post the full error please?

from scp.py.

ElieTaillard avatar ElieTaillard commented on August 25, 2024

On my windows pc :

Traceback (most recent call last):
  File "AutoDeploy.py", line 92, in <module>
    scp.put(files=localPath,remote_path=remotePath,recursive=True)
  File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 199, in put
    self._send_recursive(files)
  File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 367, in _send_recursive
    self._chdir(last_dir, asbytes(root))
  File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 355, in _chdir
    self._send_pushd(to_dir)
  File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 381, in _send_pushd
    self._recv_confirm()
  File "C:\Users\taill\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\scp.py", line 404, in _recv_confirm
    raise SCPException(asunicode(msg[1:]))
scp.SCPException: scp: /var/www/projet41_new: Permission denied

On my linux test machine :
image

from scp.py.

ElieTaillard avatar ElieTaillard commented on August 25, 2024

I feel like I've tried everything...
I will try to do with os.system('scp') for now.
We'll see if it works.

from scp.py.

remram44 avatar remram44 commented on August 25, 2024

Looks like you don't have permission to go into that folder. I don't think there is a bug in scp.py.

from scp.py.

ElieTaillard avatar ElieTaillard commented on August 25, 2024

I do have write permissions on /var/www
Should the remote path point to an existing folder, or will the function create the folder I specify (project41_new) ?

from scp.py.

remram44 avatar remram44 commented on August 25, 2024

What is the exact mode of the folder?

from scp.py.

ElieTaillard avatar ElieTaillard commented on August 25, 2024

I tried chmod 777 on /var/www and it still doesn't work.
It's weird because with the scp command it works

from scp.py.

remram44 avatar remram44 commented on August 25, 2024

Does the mode on /, /var, or /var/www not include the r or x bit?

from scp.py.

ElieTaillard avatar ElieTaillard commented on August 25, 2024

image
image
image

from scp.py.

ElieTaillard avatar ElieTaillard commented on August 25, 2024

SCP works with the instruction : os.system("scp -r " + localPath + " " + VMWEB1_PROD_USERNAME + "@" + VMWEB1_PROD_IP + ":" + remotePath)

from scp.py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.